From 2382816a84adf6e18a482a8d19db20bf9470b054 Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Fri, 22 Jul 2016 11:54:30 +0100 Subject: [PATCH] Fix default hostname for verification used in ssl_client1 --- programs/ssl/ssl_client1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/ssl/ssl_client1.c b/programs/ssl/ssl_client1.c index 591f737ae..fa7043173 100644 --- a/programs/ssl/ssl_client1.c +++ b/programs/ssl/ssl_client1.c @@ -180,7 +180,7 @@ int main( void ) goto exit; } - if( ( ret = mbedtls_ssl_set_hostname( &ssl, "mbed TLS Server 1" ) ) != 0 ) + if( ( ret = mbedtls_ssl_set_hostname( &ssl, SERVER_NAME ) ) != 0 ) { mbedtls_printf( " failed\n ! mbedtls_ssl_set_hostname returned %d\n\n", ret ); goto exit;