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 edd573d980 #16167
Closes #17056
This commit is contained in:
Viktor Szakats 2025-04-15 02:17:07 +02:00
parent 3fbabec53c
commit 00e8ebf567
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View File

@ -1467,7 +1467,7 @@ wssl_connect_step1(struct Curl_cfilter *cf, struct Curl_easy *data)
if(result) if(result)
return result; return result;
#ifdef HAS_ALPN #ifdef HAVE_ALPN
if(connssl->alpn && (connssl->state != ssl_connection_deferred)) { if(connssl->alpn && (connssl->state != ssl_connection_deferred)) {
struct alpn_proto_buf proto; struct alpn_proto_buf proto;
memset(&proto, 0, sizeof(proto)); memset(&proto, 0, sizeof(proto));