summaryrefslogtreecommitdiff
path: root/src/sys-crypto.h
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2020-02-25 00:39:23 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2020-07-08 19:54:30 -0400
commitb28a3714c46d96e4c561a582966465beeeebe73b (patch)
tree60279ab4e010a0089348e000f46198bf3391e3ea /src/sys-crypto.h
parentaf836b94d30d088b02899789b74a1d41a35b9eac (diff)
downloadlighttpd-git-b28a3714c46d96e4c561a582966465beeeebe73b.tar.gz
[multiple] ./configure --with-nettle to use Nettle
./configure --with-nettle to use Nettle crypto lib for algorithms, instead of OpenSSL or wolfSSL. Note: Nettle does not provide TLS. x-ref: "How to use SHA-256 without OpenSSL?" https://redmine.lighttpd.net/boards/2/topics/8903
Diffstat (limited to 'src/sys-crypto.h')
-rw-r--r--src/sys-crypto.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sys-crypto.h b/src/sys-crypto.h
index 8158abac..5d15533c 100644
--- a/src/sys-crypto.h
+++ b/src/sys-crypto.h
@@ -3,10 +3,12 @@
#include "first.h"
#if defined HAVE_LIBSSL && defined HAVE_OPENSSL_SSL_H
+#define USE_LIB_CRYPTO
#define USE_OPENSSL_CRYPTO
#endif
#ifdef HAVE_WOLFSSL_SSL_H
+#define USE_LIB_CRYPTO
#define USE_OPENSSL_CRYPTO
/* wolfSSL needs to be built with ./configure --enable-lighty for lighttpd.
* Doing so defines OPENSSL_EXTRA and HAVE_LIGHTY in <wolfssl/options.h>, and
@@ -16,4 +18,9 @@
#include <wolfssl/options.h>
#endif
+#ifdef HAVE_NETTLE_NETTLE_TYPES_H
+#define USE_LIB_CRYPTO
+#define USE_NETTLE_CRYPTO
+#endif
+
#endif