fixed ssl hostname handling

pull/12729/head
Teppo Järvelin 2020-02-20 11:07:01 +02:00 committed by Antti Kauppila
parent 17e513891b
commit 0f889c3764
1 changed files with 2 additions and 2 deletions

View File

@ -169,7 +169,7 @@ nsapi_error_t TLSSocketWrapper::start_handshake(bool first_call)
return continue_handshake();
}
#ifdef MBEDTLS_X509_CRT_PARSE_C
#if defined(MBEDTLS_X509_CRT_PARSE_C) && !defined(MBEDTLS_X509_REMOVE_HOSTNAME_VERIFICATION)
tr_info("Starting TLS handshake with %s", _ssl.hostname);
#else
tr_info("Starting TLS handshake");
@ -261,7 +261,7 @@ nsapi_error_t TLSSocketWrapper::continue_handshake()
}
}
#ifdef MBEDTLS_X509_CRT_PARSE_C
#if defined(MBEDTLS_X509_CRT_PARSE_C) && !defined(MBEDTLS_X509_REMOVE_HOSTNAME_VERIFICATION)
/* It also means the handshake is done, time to print info */
tr_info("TLS connection to %s established", _ssl.hostname);
#else