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_WOLFSSL_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_NSS3_NSS_H 28 #define USE_NSS_CRYPTO 29 #endif 30 31 #ifdef HAVE_NETTLE_NETTLE_TYPES_H 32 #define USE_LIB_CRYPTO 33 #define USE_NETTLE_CRYPTO 34 #endif 35 36 #ifdef HAVE_GNUTLS_CRYPTO_H 37 #define USE_LIB_CRYPTO 38 #define USE_GNUTLS_CRYPTO 39 #endif 40 41 #endif 42