summaryrefslogtreecommitdiff
path: root/data/lighttpd/lighttpd-1.4.53/src/sys-crypto.h
diff options
context:
space:
mode:
Diffstat (limited to 'data/lighttpd/lighttpd-1.4.53/src/sys-crypto.h')
-rw-r--r--data/lighttpd/lighttpd-1.4.53/src/sys-crypto.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/data/lighttpd/lighttpd-1.4.53/src/sys-crypto.h b/data/lighttpd/lighttpd-1.4.53/src/sys-crypto.h
new file mode 100644
index 000000000..8158abac5
--- /dev/null
+++ b/data/lighttpd/lighttpd-1.4.53/src/sys-crypto.h
@@ -0,0 +1,19 @@
+#ifndef LI_SYS_CRYPTO_H
+#define LI_SYS_CRYPTO_H
+#include "first.h"
+
+#if defined HAVE_LIBSSL && defined HAVE_OPENSSL_SSL_H
+#define USE_OPENSSL_CRYPTO
+#endif
+
+#ifdef HAVE_WOLFSSL_SSL_H
+#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
+ * these defines are necessary for wolfSSL headers to expose sufficient openssl
+ * compatibility layer for wolfSSL to be able to provide an openssl substitute
+ * for use by lighttpd */
+#include <wolfssl/options.h>
+#endif
+
+#endif