From af636c535c6b8bb6dfb5b8d2ddb1fb1023d7baf2 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 5 Nov 2001 14:07:20 +0000 Subject: [PATCH] Added an CURL_SSLVERSION_* enum for SSL protocol versions --- include/curl/curl.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/include/curl/curl.h b/include/curl/curl.h index 1075b6e..3a815ad 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -298,7 +298,7 @@ typedef enum { CINIT(COOKIEFILE, OBJECTPOINT, 31), /* What version to specifly try to use. - 3 = SSLv3, 2 = SSLv2, all else makes it try v3 first then v2 */ + See CURL_SSLVERSION defines below. */ CINIT(SSLVERSION, LONG, 32), /* What kind of HTTP time condition to use, see defines */ @@ -480,6 +480,15 @@ enum { CURL_HTTP_VERSION_LAST /* *ILLEGAL* http version */ }; +enum { + CURL_SSLVERSION_DEFAULT, + CURL_SSLVERSION_TLSv1, + CURL_SSLVERSION_SSLv2, + CURL_SSLVERSION_SSLv3, + + CURL_SSLVERSION_LAST /* never use, keep last */ +}; + typedef enum { TIMECOND_NONE, -- 2.7.4