From 7836fe8fe3b192fc63bc5bc3dbd41111652944d6 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Thu, 3 Jul 2025 18:12:19 +0200 Subject: [PATCH] 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. --- include/haproxy/openssl-compat.h | 5 +++++ 1 file changed, 5 insertions(+) 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