]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: ssl: Define HAVE_VANILLA_OPENSSL if openssl is used.
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 3 Jul 2025 16:12:19 +0000 (18:12 +0200)
committerOlivier Houchard <cognet@ci0.org>
Wed, 20 Aug 2025 16:33:10 +0000 (18:33 +0200)
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

index 7b072bec8af09d590f9f36c7e5a0ef496d2dccce..630678eeb781bcf7ffeb87fbe3a0b7646025dd66 100644 (file)
@@ -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