]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
wolfssl: fix to enable ALPN when available
authorViktor Szakats <commit@vsz.me>
Tue, 15 Apr 2025 00:17:07 +0000 (02:17 +0200)
committerViktor Szakats <commit@vsz.me>
Tue, 15 Apr 2025 10:34:18 +0000 (12:34 +0200)
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

index 5550dfb1f3563d488c2b89ae2364dc99d5c0edfc..a29267054fb979dfb5b010ac772987f65c0888d1 100644 (file)
@@ -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));