aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_sha1.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2016-06-30 18:57:39 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2016-06-30 18:57:39 +0300
commitc60b61a290960c1411d4da34d7f9265a43fd831b (patch)
treea9b68ca1d34e2c2399adc243f9b8274f718d1694 /src/core/ngx_sha1.c
parentfb6c764921dff3322b33ed2f5169b4c23f84bd9c (diff)
downloadnginx-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.c6
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