From cccd8d0888aa5c98a7b07f5a1bd84b0ba015d427 Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Wed, 15 Dec 2010 10:23:19 +0100
Subject: [PATCH 1/2] 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.
---
 lib/axtls.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/lib/axtls.c b/lib/axtls.c
index 80c3554..855b554 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;
   }
-- 
1.7.2.3

