Mercurial > hg > nginx
comparison src/os/unix/ngx_user.c @ 3922:9c057d5e1c27
"$apr1", "{PLAIN}", and "{SSHA}" password methods in auth basic module
patch by Maxim Dounin
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 16 May 2011 14:54:50 +0000 |
parents | 7dec2852e8fd |
children | d620f497c50f |
comparison
equal
deleted
inserted
replaced
3921:bab3488bd113 | 3922:9c057d5e1c27 |
---|---|
21 #if (NGX_CRYPT) | 21 #if (NGX_CRYPT) |
22 | 22 |
23 #if (NGX_HAVE_GNU_CRYPT_R) | 23 #if (NGX_HAVE_GNU_CRYPT_R) |
24 | 24 |
25 ngx_int_t | 25 ngx_int_t |
26 ngx_crypt(ngx_pool_t *pool, u_char *key, u_char *salt, u_char **encrypted) | 26 ngx_libc_crypt(ngx_pool_t *pool, u_char *key, u_char *salt, u_char **encrypted) |
27 { | 27 { |
28 char *value; | 28 char *value; |
29 size_t len; | 29 size_t len; |
30 ngx_err_t err; | 30 ngx_err_t err; |
31 struct crypt_data cd; | 31 struct crypt_data cd; |
56 } | 56 } |
57 | 57 |
58 #else | 58 #else |
59 | 59 |
60 ngx_int_t | 60 ngx_int_t |
61 ngx_crypt(ngx_pool_t *pool, u_char *key, u_char *salt, u_char **encrypted) | 61 ngx_libc_crypt(ngx_pool_t *pool, u_char *key, u_char *salt, u_char **encrypted) |
62 { | 62 { |
63 char *value; | 63 char *value; |
64 size_t len; | 64 size_t len; |
65 ngx_err_t err; | 65 ngx_err_t err; |
66 | 66 |