]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: ssl: fix two remaining occurrences of #if USE_OPENSSL
authorWilly Tarreau <w@1wt.eu>
Mon, 30 Aug 2021 07:35:18 +0000 (09:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 30 Aug 2021 07:39:24 +0000 (09:39 +0200)
One was in backend.c and the other one in hlua.c. No other candidate
was found with "git grep '^#if\s*USE'". It's worth noting that 3
other such tests exist for SSL_OP_NO_{SSLv3,TLSv1_1,TLSv1_2} but
that these ones are properly set to 0 in openssl-compat.h when not
defined.

src/backend.c
src/hlua.c

index adbd60605ab98081a526ac6c1f9c4f283672cbc3..7143ba65d036273c8c45dc490a0b28bdafdd44c0 100644 (file)
@@ -1662,7 +1662,7 @@ skip_reuse:
                }
        }
 
-#if USE_OPENSSL && (defined(OPENSSL_IS_BORINGSSL) || (HA_OPENSSL_VERSION_NUMBER >= 0x10101000L))
+#if defined(USE_OPENSSL) && (defined(OPENSSL_IS_BORINGSSL) || (HA_OPENSSL_VERSION_NUMBER >= 0x10101000L))
 
        if (!reuse && cli_conn && srv && srv_conn->mux &&
            (srv->ssl_ctx.options & SRV_SSL_O_EARLY_DATA) &&
index 7b280884db9d5f5d902e43a70dcff0e57481379d..039ebeca7741610ba787e415d2f2467eefaa5059 100644 (file)
@@ -10952,7 +10952,7 @@ int hlua_post_init()
        struct hlua_function *fcn;
        struct hlua_reg_filter *reg_flt;
 
-#if USE_OPENSSL
+#if defined(USE_OPENSSL)
        /* Initialize SSL server. */
        if (socket_ssl->xprt->prepare_srv) {
                int saved_used_backed = global.ssl_used_backend;