aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-12-15 10:23:19 +0100
committerDaniel Stenberg <daniel@haxx.se>2010-12-15 16:05:17 +0100
commit9035709e25232b0a256684626405e0d0b4c15099 (patch)
tree1067d0bf15ccb2aae2ae9a513a07c951648668c3 /lib
parentb88ead62e72813d24888efea3d45d56ceb7f3947 (diff)
axTLS: allow "default" SSL version as well
When no explicit version is selected we should try to use whatever is best for us, and in the axTLS case that means TLSv1.
Diffstat (limited to 'lib')
-rw-r--r--lib/axtls.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/axtls.c b/lib/axtls.c
index 80c3554ee..855b554b4 100644
--- a/lib/axtls.c
+++ b/lib/axtls.c
@@ -164,7 +164,12 @@ Curl_axtls_connect(struct connectdata *conn,
return CURLE_OK;
/* axTLS only supports TLSv1 */
- if(data->set.ssl.version != CURL_SSLVERSION_TLSv1) {
+ /* check to see if we've been told to use an explicit SSL/TLS version */
+ switch(data->set.ssl.version) {
+ case CURL_SSLVERSION_DEFAULT:
+ case CURL_SSLVERSION_TLSv1:
+ break;
+ default:
failf(data, "axTLS only supports TLSv1");
return CURLE_SSL_CONNECT_ERROR;
}