mirror of
https://github.com/curl/curl.git
synced 2025-09-09 21:52:40 +03:00
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:
parent
3fbabec53c
commit
00e8ebf567
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user