ngtcp2: fix picky compiler warnings with wolfSSL for QUIC
Follow-up to 8a13be227e
Closes #9315
This commit is contained in:
parent
c031ec53f8
commit
e65187e188
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user