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_sha1.c | |
parent | fb6c764921dff3322b33ed2f5169b4c23f84bd9c (diff) | |
download | nginx-c60b61a290960c1411d4da34d7f9265a43fd831b.tar.gz nginx-c60b61a290960c1411d4da34d7f9265a43fd831b.zip |
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_sha1.c')
-rw-r--r-- | src/core/ngx_sha1.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/core/ngx_sha1.c b/src/core/ngx_sha1.c index fd665fd73..f00dc52d6 100644 --- a/src/core/ngx_sha1.c +++ b/src/core/ngx_sha1.c @@ -4,8 +4,6 @@ * Copyright (C) Nginx, Inc. * * An internal SHA1 implementation. - * It is not expected to be optimal and is used only - * if no SHA1 implementation was found in system. */ @@ -14,8 +12,6 @@ #include <ngx_sha1.h> -#if !(NGX_HAVE_SHA1) - static const u_char *ngx_sha1_body(ngx_sha1_t *ctx, const u_char *data, size_t size); @@ -296,5 +292,3 @@ ngx_sha1_body(ngx_sha1_t *ctx, const u_char *data, size_t size) return p; } - -#endif |