diff options
author | Igor Sysoev <igor@sysoev.ru> | 2011-05-27 13:30:53 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2011-05-27 13:30:53 +0000 |
commit | 36aadf7ebac51359f714b32fb8588985cb286794 (patch) | |
tree | 499c3b3e4ae96e4558831727f6302264b61a42ac /src/core/ngx_crypt.c | |
parent | e620fdac652e1cbb6a22b5a2cb1ce8edd29bd3b8 (diff) | |
download | nginx-36aadf7ebac51359f714b32fb8588985cb286794.tar.gz nginx-36aadf7ebac51359f714b32fb8588985cb286794.zip |
fix building on FreeBSD 6 or earlier against system md5
Diffstat (limited to 'src/core/ngx_crypt.c')
-rw-r--r-- | src/core/ngx_crypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ngx_crypt.c b/src/core/ngx_crypt.c index 029a48529..9564c3618 100644 --- a/src/core/ngx_crypt.c +++ b/src/core/ngx_crypt.c @@ -75,7 +75,7 @@ ngx_crypt_apr1(ngx_pool_t *pool, u_char *key, u_char *salt, u_char **encrypted) ngx_md5_init(&md5); ngx_md5_update(&md5, key, keylen); - ngx_md5_update(&md5, "$apr1$", sizeof("$apr1$") - 1); + ngx_md5_update(&md5, (u_char *) "$apr1$", sizeof("$apr1$") - 1); ngx_md5_update(&md5, salt, saltlen); ngx_md5_init(&ctx1); |