2018-09-26 12:23:36 +00:00
|
|
|
#ifndef LI_SYS_CRYPTO_H
|
|
|
|
#define LI_SYS_CRYPTO_H
|
|
|
|
#include "first.h"
|
|
|
|
|
|
|
|
#if defined HAVE_LIBSSL && defined HAVE_OPENSSL_SSL_H
|
2020-02-25 05:39:23 +00:00
|
|
|
#define USE_LIB_CRYPTO
|
2018-09-26 12:23:36 +00:00
|
|
|
#define USE_OPENSSL_CRYPTO
|
|
|
|
#endif
|
|
|
|
|
2018-10-08 00:07:03 +00:00
|
|
|
#ifdef HAVE_WOLFSSL_SSL_H
|
2020-02-25 05:39:23 +00:00
|
|
|
#define USE_LIB_CRYPTO
|
2018-10-08 00:07:03 +00:00
|
|
|
#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
|
|
|
|
|
2020-03-19 03:21:19 +00:00
|
|
|
#ifdef HAVE_LIBMBEDCRYPTO
|
|
|
|
#define USE_LIB_CRYPTO
|
|
|
|
#define USE_MBEDTLS_CRYPTO
|
|
|
|
#include <mbedtls/config.h>
|
|
|
|
#endif
|
|
|
|
|
2020-02-25 05:39:23 +00:00
|
|
|
#ifdef HAVE_NETTLE_NETTLE_TYPES_H
|
|
|
|
#define USE_LIB_CRYPTO
|
|
|
|
#define USE_NETTLE_CRYPTO
|
|
|
|
#endif
|
|
|
|
|
2020-05-14 06:03:14 +00:00
|
|
|
#ifdef HAVE_GNUTLS_CRYPTO_H
|
|
|
|
#define USE_LIB_CRYPTO
|
|
|
|
#define USE_GNUTLS_CRYPTO
|
|
|
|
#endif
|
|
|
|
|
2018-09-26 12:23:36 +00:00
|
|
|
#endif
|