Mercurial > hg > nginx
comparison src/core/ngx_md5.c @ 6603:9eefb38f0005
Internal md5 and sha1 implementations are now always used.
This reduces the number of moving parts in ABI compatibility checks.
Additionally, it also allows to use OpenSSL in FIPS mode while still
using md5 for non-security tasks.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 30 Jun 2016 18:57:39 +0300 |
parents | 21167183825d |
children |
comparison
equal
deleted
inserted
replaced
6602:bcd442b585f0 | 6603:9eefb38f0005 |
---|---|
1 | 1 |
2 /* | 2 /* |
3 * An internal implementation, based on Alexander Peslyak's | 3 * An internal implementation, based on Alexander Peslyak's |
4 * public domain implementation: | 4 * public domain implementation: |
5 * http://openwall.info/wiki/people/solar/software/public-domain-source-code/md5 | 5 * http://openwall.info/wiki/people/solar/software/public-domain-source-code/md5 |
6 * It is not expected to be optimal and is used only | |
7 * if no MD5 implementation was found in system. | |
8 */ | 6 */ |
9 | 7 |
10 | 8 |
11 #include <ngx_config.h> | 9 #include <ngx_config.h> |
12 #include <ngx_core.h> | 10 #include <ngx_core.h> |
13 #include <ngx_md5.h> | 11 #include <ngx_md5.h> |
14 | 12 |
15 | |
16 #if !(NGX_HAVE_MD5) | |
17 | 13 |
18 static const u_char *ngx_md5_body(ngx_md5_t *ctx, const u_char *data, | 14 static const u_char *ngx_md5_body(ngx_md5_t *ctx, const u_char *data, |
19 size_t size); | 15 size_t size); |
20 | 16 |
21 | 17 |
283 ctx->c = c; | 279 ctx->c = c; |
284 ctx->d = d; | 280 ctx->d = d; |
285 | 281 |
286 return p; | 282 return p; |
287 } | 283 } |
288 | |
289 #endif |