File: fix-redirect-proxy-ssl

package info (click to toggle)
liblwp-protocol-https-perl 6.06-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 164 kB
  • ctags: 32
  • sloc: perl: 400; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 545 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Explicitly add hostname for SNI to start_SSL 
Bug: https://github.com/libwww-perl/libwww-perl/issues/57
Forwarded: https://github.com/libwww-perl/libwww-perl/issues/57
Author: Steffen Ullrich
--- a/lib/LWP/Protocol/https.pm
+++ b/lib/LWP/Protocol/https.pm
@@ -153,6 +153,7 @@
 	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;