23
24
#if (NGX_HAVE_GNU_CRYPT_R)
26
ngx_crypt(ngx_pool_t *pool, u_char *key, u_char *salt, u_char **encrypted)
27
ngx_libc_crypt(ngx_pool_t *pool, u_char *key, u_char *salt, u_char **encrypted)
36
34
/* work around the glibc bug */
37
35
cd.current_salt[0] = ~salt[0];
39
37
value = crypt_r((char *) key, (char *) salt, &cd);
53
ngx_log_error(NGX_LOG_CRIT, pool->log, err, "crypt_r() failed");
51
ngx_log_error(NGX_LOG_CRIT, pool->log, ngx_errno, "crypt_r() failed");