From 00e8ebf5679ecfa687f5f80157bcf543b7b4b6e6 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 15 Apr 2025 02:17:07 +0200 Subject: [PATCH] wolfssl: fix to enable ALPN when available wolfSSL headers publish the `HAVE_ALPN` macro to tell if it has ALPN support compiled in. Use that instead of `HAS_ALPN`, which was never set. Follow-up to edd573d98046963eb970a78bd1cd02de7f20349b #16167 Closes #17056 --- lib/vtls/wolfssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vtls/wolfssl.c b/lib/vtls/wolfssl.c index 5550dfb1f3..a29267054f 100644 --- a/lib/vtls/wolfssl.c +++ b/lib/vtls/wolfssl.c @@ -1467,7 +1467,7 @@ wssl_connect_step1(struct Curl_cfilter *cf, struct Curl_easy *data) if(result) return result; -#ifdef HAS_ALPN +#ifdef HAVE_ALPN if(connssl->alpn && (connssl->state != ssl_connection_deferred)) { struct alpn_proto_buf proto; memset(&proto, 0, sizeof(proto));