]> granicus.if.org Git - curl/commitdiff
wolfssl: fixup for SNI use
authorDaniel Stenberg <daniel@haxx.se>
Mon, 10 Jun 2019 10:40:25 +0000 (12:40 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 10 Jun 2019 11:04:53 +0000 (13:04 +0200)
follow-up from deb9462ff2de8

Closes #4007

lib/vtls/wolfssl.c

index 30e3756bffadd7876e4c748f22d39028cb893019..d8fd379ef860df4ae60147623f230fad89e39ccc 100644 (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");