]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: ssl: add 'secure_memcmp' converter for WolfSSL and awslc
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 9 Oct 2023 13:44:50 +0000 (15:44 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 9 Oct 2023 13:44:50 +0000 (15:44 +0200)
CRYPTO_memcmp is supported by both awslc and wolfssl, lets add the
suport for the 'secure_memcmp' converter into the build.

include/haproxy/openssl-compat.h

index 50344e65cfa08f26ba2b629968d7726bd3556c43..c87b65f2e7c0631b454e7f006423b9e83d230835 100644 (file)
@@ -90,7 +90,7 @@
 #define HAVE_SSL_CTX_get0_privatekey
 #endif
 
-#if HA_OPENSSL_VERSION_NUMBER >= 0x1000104fL
+#if HA_OPENSSL_VERSION_NUMBER >= 0x1000104fL || defined(USE_OPENSSL_WOLFSSL) || defined(USE_OPENSSL_AWSLC)
 /* CRYPTO_memcmp() is present since openssl 1.0.1d */
 #define HAVE_CRYPTO_memcmp
 #endif