Change a few ssl_conf return types to void
diff --git a/programs/ssl/ssl_client2.c b/programs/ssl/ssl_client2.c index 6620d4e..8d04b9a 100644 --- a/programs/ssl/ssl_client2.c +++ b/programs/ssl/ssl_client2.c
@@ -1183,24 +1183,10 @@ #endif if( opt.min_version != DFL_MIN_VERSION ) - { - ret = mbedtls_ssl_conf_min_version( &conf, MBEDTLS_SSL_MAJOR_VERSION_3, opt.min_version ); - if( ret != 0 ) - { - mbedtls_printf( " failed\n ! selected min_version is not available\n" ); - goto exit; - } - } + mbedtls_ssl_conf_min_version( &conf, MBEDTLS_SSL_MAJOR_VERSION_3, opt.min_version ); if( opt.max_version != DFL_MAX_VERSION ) - { - ret = mbedtls_ssl_conf_max_version( &conf, MBEDTLS_SSL_MAJOR_VERSION_3, opt.max_version ); - if( ret != 0 ) - { - mbedtls_printf( " failed\n ! selected max_version is not available\n" ); - goto exit; - } - } + mbedtls_ssl_conf_max_version( &conf, MBEDTLS_SSL_MAJOR_VERSION_3, opt.max_version ); #if defined(MBEDTLS_SSL_FALLBACK_SCSV) if( opt.fallback != DFL_FALLBACK )