diff options
Diffstat (limited to 'lib/vtls/polarssl.c')
-rw-r--r-- | lib/vtls/polarssl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/vtls/polarssl.c b/lib/vtls/polarssl.c index 4e41315b6..a6a769091 100644 --- a/lib/vtls/polarssl.c +++ b/lib/vtls/polarssl.c @@ -272,7 +272,6 @@ polarssl_connect_step1(struct connectdata *conn, } switch(data->set.ssl.version) { - default: case CURL_SSLVERSION_DEFAULT: case CURL_SSLVERSION_TLSv1: ssl_set_min_version(&connssl->ssl, SSL_MAJOR_VERSION_3, @@ -309,6 +308,9 @@ polarssl_connect_step1(struct connectdata *conn, case CURL_SSLVERSION_TLSv1_3: failf(data, "PolarSSL: TLS 1.3 is not yet supported"); return CURLE_SSL_CONNECT_ERROR; + default: + failf(data, "Unrecognized parameter passed via CURLOPT_SSLVERSION"); + return CURLE_SSL_CONNECT_ERROR; } ssl_set_endpoint(&connssl->ssl, SSL_IS_CLIENT); |