Add checks to for CONFIG_MBEDTLS_SSL_ALPN

Merges https://github.com/espressif/esp-idf/pull/2569
This commit is contained in:
Stephen Bird
2018-11-08 15:57:13 +05:30
committed by Mahavir Jain
parent b5c58557fc
commit 0c9f7271a9
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -252,9 +252,11 @@ static int create_ssl_handle(esp_tls_t *tls, const char *hostname, size_t hostle
goto exit;
}
#ifdef CONFIG_MBEDTLS_SSL_ALPN
if (cfg->alpn_protos) {
mbedtls_ssl_conf_alpn_protocols(&tls->conf, cfg->alpn_protos);
}
#endif
if (cfg->use_global_ca_store == true) {
if (global_cacert == NULL) {