summaryrefslogtreecommitdiff
path: root/src/sys-crypto-md.h
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2021-01-16 15:51:49 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2021-01-16 15:51:49 -0500
commitfdf45433c8e487f5a70a14a6e91873bc27e7dfb2 (patch)
tree5569a3cdb9e064a52c8bc62b67e20c2ab46832fe /src/sys-crypto-md.h
parent2d94d56fe53ecc7dc331fc7ed6133cb545cd4c69 (diff)
downloadlighttpd-git-fdf45433c8e487f5a70a14a6e91873bc27e7dfb2.tar.gz
[core] check ifdef WOLFSSL_SHA512 for SHA512 avail
Diffstat (limited to 'src/sys-crypto-md.h')
-rw-r--r--src/sys-crypto-md.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sys-crypto-md.h b/src/sys-crypto-md.h
index 4701f11e..7a086972 100644
--- a/src/sys-crypto-md.h
+++ b/src/sys-crypto-md.h
@@ -391,6 +391,7 @@ SHA256_Update(SHA256_CTX *ctx, const void *data, size_t length)
#endif
#ifndef NO_SHA512
+#ifdef WOLFSSL_SHA512
#include <wolfssl/wolfcrypt/sha512.h>
#include <wolfssl/openssl/sha.h>
#undef SHA512_Init
@@ -415,6 +416,7 @@ SHA512_Update(SHA512_CTX *ctx, const void *data, size_t length)
return 1;
}
#endif
+#endif
#elif defined(USE_OPENSSL_CRYPTO)