mirror of
https://github.com/espressif/mbedtls.git
synced 2026-08-21 18:59:51 +00:00
Check the status of mbedtls_ssl_set_hostname()
Signed-off-by: Gilles Peskine <[email protected]>
This commit is contained in:
@@ -865,6 +865,7 @@ int mbedtls_test_ssl_endpoint_init(
|
||||
|
||||
if (MBEDTLS_SSL_IS_CLIENT == endpoint_type) {
|
||||
ret = mbedtls_ssl_set_hostname(&(ep->ssl), "localhost");
|
||||
TEST_EQUAL(ret, 0);
|
||||
}
|
||||
|
||||
#if defined(MBEDTLS_SSL_PROTO_DTLS) && defined(MBEDTLS_SSL_SRV_C)
|
||||
|
||||
Reference in New Issue
Block a user