Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ffa9749

Browse files
committed
Merge branch 'bugfix/fix_use_wolfssl_build_error' into 'master'
fix(tls): wolfSSL_set_tlsext_host_name function not support in wolfssl lib in... See merge request sdk/ESP8266_RTOS_SDK!1348
2 parents 4af60b5 + cf256a2 commit ffa9749

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/esp-tls/esp_tls_wolfssl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ static esp_err_t set_client_config(const char *hostname, size_t hostlen, esp_tls
231231
}
232232

233233
if (!cfg->skip_common_name) {
234+
#ifdef HAVE_SNI
234235
char *use_host = NULL;
235236
if (cfg->common_name != NULL) {
236237
use_host = strdup(cfg->common_name);
@@ -248,6 +249,7 @@ static esp_err_t set_client_config(const char *hostname, size_t hostlen, esp_tls
248249
return ESP_ERR_WOLFSSL_SSL_SET_HOSTNAME_FAILED;
249250
}
250251
free(use_host);
252+
#endif /* HAVE_SNI */
251253
}
252254

253255
if (cfg->alpn_protos) {

0 commit comments

Comments
 (0)