We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7dc0d7 commit 811e8c1Copy full SHA for 811e8c1
examples/wifi/sta/wifi_https/https/src/https.c
@@ -200,7 +200,9 @@ int32_t bl_TcpSslConnect(const char *dst, uint16_t port)
200
printf("mbedtls_ssl_setup returned -0x%x\r\n", -ret);
201
return BL_TCP_CREATE_CONNECT_ERR;
202
}
203
-
+#ifdef MBEDTLS_SSL_SERVER_NAME_INDICATION
204
+ mbedtls_ssl_set_hostname(&bl_hsbuf->ssl, dst);
205
+#endif
206
mbedtls_net_init(&bl_hsbuf->server_fd);
207
208
bl_hsbuf->server_fd.fd = socket(AF_INET, SOCK_STREAM, 0);
0 commit comments