From: Viktor Szakats Date: Tue, 15 Apr 2025 00:17:07 +0000 (+0200) Subject: wolfssl: fix to enable ALPN when available X-Git-Tag: curl-8_14_0~301 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00e8ebf5679ecfa687f5f80157bcf543b7b4b6e6;p=thirdparty%2Fcurl.git 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 --- 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));