Check the status of mbedtls_ssl_set_hostname()

Signed-off-by: Gilles Peskine <[email protected]>
This commit is contained in:
Gilles Peskine
2025-04-08 09:44:34 +02:00
parent 3b819cf22f
commit 55b8bb43e7
+1
View File
@@ -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)