Fix default hostname for verification used in ssl_client1

This commit is contained in:
Paul Bakker 2016-07-22 11:54:30 +01:00 committed by Simon Butcher
parent aca11a071d
commit 2382816a84

View file

@ -180,7 +180,7 @@ int main( void )
goto exit; 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 ); mbedtls_printf( " failed\n ! mbedtls_ssl_set_hostname returned %d\n\n", ret );
goto exit; goto exit;