File 0001-Explicitly-add-hostname-for-SNI-to-start_SSL.patch of Package perl-LWP-Protocol-https.25216

From 506d7794c8b32b0ff0b7361a8ec5e13c801fb351 Mon Sep 17 00:00:00 2001
From: Steffen Ullrich <Steffen_Ullrich@genua.de>
Date: Mon, 14 Jul 2014 20:50:30 +0200
Subject: [PATCH] Explicitly add hostname for SNI to start_SSL Sometimes
 IO::Socket::SSL fails to detect the proper hostname for SNI from PeerHost
 inside start_SSL. This way the name is explicitly given.

---
 lib/LWP/Protocol/https.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/LWP/Protocol/https.pm b/lib/LWP/Protocol/https.pm
index 413f81a..ed4d832 100644
--- a/lib/LWP/Protocol/https.pm
+++ b/lib/LWP/Protocol/https.pm
@@ -153,6 +153,7 @@ if ( $Net::HTTPS::SSL_SOCKET_CLASS->can('start_SSL')) {
 	my ($self,$sock,$url) = @_;
 	$sock = LWP::Protocol::https::Socket->start_SSL( $sock,
 	    SSL_verifycn_name => $url->host,
+	    SSL_hostname => $url->host,
 	    $self->_extra_sock_opts,
 	);
 	$@ = LWP::Protocol::https::Socket->errstr if ! $sock;
-- 
2.34.1

openSUSE Build Service is sponsored by