mirror of
https://github.com/curl/curl.git
synced 2026-08-25 10:23:34 +03:00
vtls: fix compile warning when ALPN is not available
Ref: https://curl.se/mail/lib-2024-11/0013.html Closes #15515
This commit is contained in:
parent
f4ee7bafda
commit
1f6767e7a0
1 changed files with 2 additions and 2 deletions
|
|
@ -3674,14 +3674,14 @@ CURLcode Curl_ossl_ctx_init(struct ossl_ctx *octx,
|
|||
SSL_CTX_set_mode(octx->ssl_ctx, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);
|
||||
#endif
|
||||
|
||||
#ifdef HAS_ALPN
|
||||
if(alpn && alpn_len) {
|
||||
#ifdef HAS_ALPN
|
||||
if(SSL_CTX_set_alpn_protos(octx->ssl_ctx, alpn, (int)alpn_len)) {
|
||||
failf(data, "Error setting ALPN");
|
||||
return CURLE_SSL_CONNECT_ERROR;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
if(ssl_cert || ssl_cert_blob || ssl_cert_type) {
|
||||
if(!result &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue