mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-15 06:22:13 +02:00
BUILD: ssl: define HAVE_CRYPTO_memcmp() based on the library version
The build fails on versions older than 1.0.1d which is the first one introducing CRYPTO_memcmp(), so let's have a define for this instead of enabling it whenever USE_OPENSSL is set. One could also wonder why we're relying on openssl for such a trivial thing, and a simple local implementation could also allow to restore lexicographic ordering.
This commit is contained in:
@@ -65,6 +65,11 @@
|
||||
#define HAVE_SSL_CTX_get0_privatekey
|
||||
#endif
|
||||
|
||||
#if HA_OPENSSL_VERSION_NUMBER >= 0x1000104fL
|
||||
/* CRYPTO_memcmp() is present since openssl 1.0.1d */
|
||||
#define HAVE_CRYPTO_memcmp
|
||||
#endif
|
||||
|
||||
#if (defined(SN_ct_cert_scts) && !defined(OPENSSL_NO_TLSEXT))
|
||||
#define HAVE_SSL_SCTL
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user