Buy commercial curl support. We
help you work out your issues, debug your libcurl applications, use the API,
port to new platforms, add new features and more. With a team lead by the
curl founder Daniel himself.
[PATCH] vtls: Fix compile warning when ALPN is not available.
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Ben Greear via curl-library <curl-library_at_lists.haxx.se>
Date: Thu, 7 Nov 2024 08:54:54 -0800
From: Ben Greear <greearb_at_candelatech.com>
Warning was about unused parameter for alpn and alpn_len.
Signed-off-by: Ben Greear <greearb_at_candelatech.com>
Date: Thu, 7 Nov 2024 08:54:54 -0800
From: Ben Greear <greearb_at_candelatech.com>
Warning was about unused parameter for alpn and alpn_len.
Signed-off-by: Ben Greear <greearb_at_candelatech.com>
---
lib/vtls/openssl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index e8be5d0..f94e941 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
_at__at_ -3674,14 +3674,14 _at__at_ 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 &&
--
1.9.3
--
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html
Received on 2024-11-07