diff options
| author | Maxim Dounin <mdounin@mdounin.ru> | 2016-06-30 18:57:39 +0300 |
|---|---|---|
| committer | Maxim Dounin <mdounin@mdounin.ru> | 2016-06-30 18:57:39 +0300 |
| commit | c60b61a290960c1411d4da34d7f9265a43fd831b (patch) | |
| tree | a9b68ca1d34e2c2399adc243f9b8274f718d1694 /src/core/ngx_md5.c | |
| parent | fb6c764921dff3322b33ed2f5169b4c23f84bd9c (diff) | |
| download | nginx-c60b61a290960c1411d4da34d7f9265a43fd831b.tar.gz nginx-c60b61a290960c1411d4da34d7f9265a43fd831b.tar.bz2 | |
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.
Diffstat (limited to 'src/core/ngx_md5.c')
| -rw-r--r-- | src/core/ngx_md5.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/core/ngx_md5.c b/src/core/ngx_md5.c index 440c75bca..c25d0025d 100644 --- a/src/core/ngx_md5.c +++ b/src/core/ngx_md5.c @@ -3,8 +3,6 @@ * An internal implementation, based on Alexander Peslyak's * public domain implementation: * http://openwall.info/wiki/people/solar/software/public-domain-source-code/md5 - * It is not expected to be optimal and is used only - * if no MD5 implementation was found in system. */ @@ -13,8 +11,6 @@ #include <ngx_md5.h> -#if !(NGX_HAVE_MD5) - static const u_char *ngx_md5_body(ngx_md5_t *ctx, const u_char *data, size_t size); @@ -285,5 +281,3 @@ ngx_md5_body(ngx_md5_t *ctx, const u_char *data, size_t size) return p; } - -#endif |
