Blame SOURCES/IO-Socket-SSL-1.94-support-for-handshake-protocol-TLSv11-TLSv12.patch

daf116
From f606a25a80a37d5565fed6fc1ce1d8d241dab6c7 Mon Sep 17 00:00:00 2001
daf116
From: Steffen Ullrich <Steffen_Ullrich@genua.de>
daf116
Date: Mon, 14 Oct 2013 14:13:39 +0200
daf116
Subject: [PATCH 1/2] support for handshake protocol TLSv11, TLSv12
daf116
MIME-Version: 1.0
daf116
Content-Type: text/plain; charset=UTF-8
daf116
Content-Transfer-Encoding: 8bit
daf116
daf116
Signed-off-by: Petr Písař <ppisar@redhat.com>
daf116
---
daf116
 lib/IO/Socket/SSL.pm | 14 +++++++++-----
daf116
 1 file changed, 9 insertions(+), 5 deletions(-)
daf116
daf116
diff --git a/lib/IO/Socket/SSL.pm b/lib/IO/Socket/SSL.pm
daf116
index 3279391..a30ffb1 100644
daf116
--- a/lib/IO/Socket/SSL.pm
daf116
+++ b/lib/IO/Socket/SSL.pm
daf116
@@ -1603,9 +1603,11 @@ sub new {
daf116
     }
daf116
 
daf116
     my $ctx_new_sub =  UNIVERSAL::can( 'Net::SSLeay',
daf116
-	$ver eq 'SSLv2' ? 'CTX_v2_new' :
daf116
-	$ver eq 'SSLv3' ? 'CTX_v3_new' :
daf116
-	$ver eq 'TLSv1' ? 'CTX_tlsv1_new' :
daf116
+	$ver eq 'SSLv2'  ? 'CTX_v2_new' :
daf116
+	$ver eq 'SSLv3'  ? 'CTX_v3_new' :
daf116
+	$ver eq 'TLSv1'  ? 'CTX_tlsv1_new' :
daf116
+	$ver eq 'TLSv11' ? 'CTX_tlsv1_1_new' :
daf116
+	$ver eq 'TLSv12' ? 'CTX_tlsv1_2_new' :
daf116
 	'CTX_new'
daf116
     ) or return IO::Socket::SSL->error("SSL Version $ver not supported");
daf116
     my $ctx = $ctx_new_sub->() or return 
daf116
@@ -2063,8 +2065,10 @@ See section "SNI Support" for details of SNI the support.
daf116
 =item SSL_version
daf116
 
daf116
 Sets the version of the SSL protocol used to transmit data. 'SSLv23' auto-negotiates 
daf116
-between SSLv2 and SSLv3, while 'SSLv2', 'SSLv3' or 'TLSv1' restrict the protocol
daf116
-to the specified version. All values are case-insensitive.
daf116
+between SSLv2 and SSLv3, while 'SSLv2', 'SSLv3', 'TLSv1', 'TLSv11' or 'TLSv12'
daf116
+restrict the protocol to the specified version. All values are case-insensitive.
daf116
+Support for 'TLSv11' and 'TLSv12' requires recent versions of Net::SSLeay
daf116
+and openssl.
daf116
 
daf116
 You can limit to set of supported protocols by adding !version separated by ':'.
daf116
 
daf116
-- 
daf116
2.7.4
daf116