aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-11-05 14:06:42 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-11-05 14:06:42 +0000
commit2f77b0a4c674958ab716954ddec816069a773a39 (patch)
tree31874e4da6266a03792e1987451724a1b98b8413
parent08ad385e0eaae73cce890b09d957fd6ff053ce5f (diff)
we can now tell ssl to use TLSv1 protocol, and we now use defines instead
of real integers for versions, the defines are added to curl.h
-rw-r--r--lib/ssluse.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c
index 11ef17728..b872f231b 100644
--- a/lib/ssluse.c
+++ b/lib/ssluse.c
@@ -540,15 +540,21 @@ Curl_SSLConnect(struct connectdata *conn)
/* Make funny stuff to get random input */
random_the_seed(conn);
-
+
+ /* check to see if we've been told to use an explicit SSL/TLS version */
switch(data->set.ssl.version) {
default:
+ case CURL_SSLVERSION_DEFAULT:
+ /* we try to figure out version */
req_method = SSLv23_client_method();
break;
- case 2:
+ case CURL_SSLVERSION_TLSv1:
+ req_method = TLSv1_client_method();
+ break;
+ case CURL_SSLVERSION_SSLv2:
req_method = SSLv2_client_method();
break;
- case 3:
+ case CURL_SSLVERSION_SSLv3:
req_method = SSLv3_client_method();
break;
}