From: Olivier Houchard Date: Thu, 3 Jul 2025 16:12:19 +0000 (+0200) Subject: MINOR: ssl: Define HAVE_VANILLA_OPENSSL if openssl is used. X-Git-Tag: v3.3-dev7~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7836fe8fe3b192fc63bc5bc3dbd41111652944d6;p=thirdparty%2Fhaproxy.git MINOR: ssl: Define HAVE_VANILLA_OPENSSL if openssl is used. If we're using OpenSSL as our crypto library, so add a define, HAVE_VANILLA_OPENSSL, to make it easier to differentiate between the various crypto libs. --- diff --git a/include/haproxy/openssl-compat.h b/include/haproxy/openssl-compat.h index 7b072bec8..630678eeb 100644 --- a/include/haproxy/openssl-compat.h +++ b/include/haproxy/openssl-compat.h @@ -128,6 +128,11 @@ enum ssl_encryption_level_t { #define HAVE_CRYPTO_memcmp #endif +#if !defined(USE_OPENSSL_WOLFSSL) && !defined(OPENSSL_IS_AWSLC) && !defined(OPENSSL_IS_BORINGSSL) && !defined(LIBRESSL_VERSION_NUMBER) +/* Defined if our SSL lib is really OpenSSL */ +#define HAVE_VANILLA_OPENSSL +#endif + #if (defined(SN_ct_cert_scts) && !defined(OPENSSL_NO_TLSEXT)) #define HAVE_SSL_SCTL #endif