BUILD: ssl: use SSL_CTRL_GET_RAW_CIPHERLIST instead of OpenSSL versions
let us use SSL_CTRL_GET_RAW_CIPHERLIST for feature detection instead
of versions
[wla: SSL_CTRL_GET_RAW_CIPHERLIST was introduced by OpenSSL commit
94a209 along with SSL_CIPHER_find. It was removed in boringSSL.]
Signed-off-by: William Lallemand <wlallemand@haproxy.org>
diff --git a/src/ssl_sample.c b/src/ssl_sample.c
index fe45ce9..46f5450 100644
--- a/src/ssl_sample.c
+++ b/src/ssl_sample.c
@@ -1249,7 +1249,7 @@
static int
smp_fetch_ssl_fc_cl_str(const struct arg *args, struct sample *smp, const char *kw, void *private)
{
-#if (HA_OPENSSL_VERSION_NUMBER >= 0x1000200fL)
+#if defined(OPENSSL_IS_BORINGSSL) || defined(SSL_CTRL_GET_RAW_CIPHERLIST)
struct buffer *data;
int i;