1 #ifndef LI_SYS_CRYPTO_H 2 #define LI_SYS_CRYPTO_H 3 #include "first.h" 4 5 #if defined HAVE_LIBSSL && defined HAVE_OPENSSL_SSL_H 6 #define USE_LIB_CRYPTO 7 #define USE_OPENSSL_CRYPTO 8 #endif 9 10 #ifdef HAVE_WOLFSSL_SSL_H 11 #define USE_LIB_CRYPTO 12 #define USE_OPENSSL_CRYPTO 13 /* wolfSSL needs to be built with ./configure --enable-lighty for lighttpd. 14 * Doing so defines OPENSSL_EXTRA and HAVE_LIGHTY in <wolfssl/options.h>, and 15 * these defines are necessary for wolfSSL headers to expose sufficient openssl 16 * compatibility layer for wolfSSL to be able to provide an openssl substitute 17 * for use by lighttpd */ 18 #include <wolfssl/options.h> 19 #endif 20 21 #ifdef HAVE_LIBMBEDCRYPTO 22 #define USE_LIB_CRYPTO 23 #define USE_MBEDTLS_CRYPTO 24 #include <mbedtls/config.h> 25 #endif 26 27 #ifdef HAVE_NETTLE_NETTLE_TYPES_H 28 #define USE_LIB_CRYPTO 29 #define USE_NETTLE_CRYPTO 30 #endif 31 32 #ifdef HAVE_GNUTLS_CRYPTO_H 33 #define USE_LIB_CRYPTO 34 #define USE_GNUTLS_CRYPTO 35 #endif 36 37 #endif 38