From 002e2068cc3429ba259ffc20b4ef77d774a065df Mon Sep 17 00:00:00 2001 From: William Lallemand <wlallemand@haproxy.org> Date: Thu, 18 Nov 2021 15:25:16 +0100 Subject: [PATCH] CLEANUP: ssl: fix wrong #else commentary The else is not for boringSSL but for the lack of Client Hello callback. Should have been changed in 1fc44d4 ("BUILD: ssl: guard Client Hello callbacks with HAVE_SSL_CLIENT_HELLO_CB macro instead of openssl version"). Could be backported in 2.4. --- src/ssl_sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssl_sock.c b/src/ssl_sock.c index d53a3873f..bc515cc13 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -2700,7 +2700,7 @@ allow_early: #endif } -#else /* OPENSSL_IS_BORINGSSL */ +#else /* ! HAVE_SSL_CLIENT_HELLO_CB */ /* Sets the SSL ctx of <ssl> to match the advertised server name. Returns a * warning when no match is found, which implies the default (first) cert