From: Daniel Stenberg Date: Mon, 15 Aug 2022 06:53:11 +0000 (+0200) Subject: ngtcp2: fix picky compiler warnings with wolfSSL for QUIC X-Git-Tag: curl-7_85_0~60 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e65187e18805cab14ffd9e54f616cc62a6b14883;p=thirdparty%2Fcurl.git ngtcp2: fix picky compiler warnings with wolfSSL for QUIC Follow-up to 8a13be227eede2 Closes #9315 --- diff --git a/lib/vquic/ngtcp2.c b/lib/vquic/ngtcp2.c index 7a1414f46e..9e7f99e872 100644 --- a/lib/vquic/ngtcp2.c +++ b/lib/vquic/ngtcp2.c @@ -211,12 +211,14 @@ static int keylog_callback(gnutls_session_t session, const char *label, return 0; } #elif defined(USE_WOLFSSL) +#if defined(HAVE_SECRET_CALLBACK) static void keylog_callback(const WOLFSSL *ssl, const char *line) { (void)ssl; Curl_tls_keylog_write_line(line); } #endif +#endif static int init_ngh3_conn(struct quicsocket *qs); @@ -430,7 +432,7 @@ static WOLFSSL_CTX *quic_ssl_ctx(struct Curl_easy *data) return NULL; } - if(wolfSSL_CTX_set1_groups_list(ssl_ctx, QUIC_GROUPS) != 1) { + if(wolfSSL_CTX_set1_groups_list(ssl_ctx, (char *)QUIC_GROUPS) != 1) { failf(data, "SSL_CTX_set1_groups_list failed"); return NULL; } @@ -503,7 +505,7 @@ static int quic_init_ssl(struct quicsocket *qs) /* set SNI */ wolfSSL_UseSNI(qs->ssl, WOLFSSL_SNI_HOST_NAME, - hostname, strlen(hostname)); + hostname, (unsigned short)strlen(hostname)); return 0; }