]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: SSL: guard TLS13 ciphersuites with HAVE_SSL_CTX_SET_CIPHERSUITES
authorIlya Shipitsin <chipitsine@gmail.com>
Thu, 7 Jan 2021 06:55:45 +0000 (11:55 +0500)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 7 Jan 2021 09:19:56 +0000 (10:19 +0100)
accidently src/server.c still used earlier guarding

src/server.c

index 9463882fe08bc167710e569da57e2269532feed7..1c4ad7aaf21edf28bc052600cc4c6ee6697dde65 100644 (file)
@@ -1553,7 +1553,7 @@ static void srv_ssl_settings_cpy(struct server *srv, struct server *src)
        if (src->ssl_ctx.methods.max)
                srv->ssl_ctx.methods.max = src->ssl_ctx.methods.max;
 
-#if (HA_OPENSSL_VERSION_NUMBER >= 0x10101000L && !defined OPENSSL_IS_BORINGSSL)
+#ifdef HAVE_SSL_CTX_SET_CIPHERSUITES
        if (src->ssl_ctx.ciphersuites != NULL)
                srv->ssl_ctx.ciphersuites = strdup(src->ssl_ctx.ciphersuites);
 #endif