1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 08:38:49 -05:00

wolfssl: fixup for SNI use

follow-up from deb9462ff2

Closes #4007
This commit is contained in:
Daniel Stenberg 2019-06-10 12:40:25 +02:00
parent 027c065f3c
commit 4da5794d81
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -324,7 +324,7 @@ wolfssl_connect_step1(struct connectdata *conn,
#ifdef ENABLE_IPV6
(0 == Curl_inet_pton(AF_INET6, hostname, &addr6)) &&
#endif
(wolfssl_CTX_UseSNI(BACKEND->ctx, WOLFSSL_SNI_HOST_NAME, hostname,
(wolfSSL_CTX_UseSNI(BACKEND->ctx, WOLFSSL_SNI_HOST_NAME, hostname,
(unsigned short)hostname_len) != 1)) {
infof(data, "WARNING: failed to configure server name indication (SNI) "
"TLS extension\n");