File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ nsapi_error_t TLSSocketWrapper::start_handshake(bool first_call)
175
175
return continue_handshake ();
176
176
}
177
177
178
- #ifdef MBEDTLS_X509_CRT_PARSE_C
178
+ #if defined( MBEDTLS_X509_CRT_PARSE_C) && !defined(MBEDTLS_X509_REMOVE_HOSTNAME_VERIFICATION)
179
179
tr_info (" Starting TLS handshake with %s" , _ssl.hostname );
180
180
#else
181
181
tr_info (" Starting TLS handshake" );
@@ -267,7 +267,7 @@ nsapi_error_t TLSSocketWrapper::continue_handshake()
267
267
}
268
268
}
269
269
270
- #ifdef MBEDTLS_X509_CRT_PARSE_C
270
+ #if defined( MBEDTLS_X509_CRT_PARSE_C) && !defined(MBEDTLS_X509_REMOVE_HOSTNAME_VERIFICATION)
271
271
/* It also means the handshake is done, time to print info */
272
272
tr_info (" TLS connection to %s established" , _ssl.hostname );
273
273
#else
You can’t perform that action at this time.
0 commit comments