mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-03-20 19:21:09 +01:00
Check the status of mbedtls_ssl_set_hostname()
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
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