From cf1a6efacd00f8f5368a2144d73066b0be701323 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 10 2020 02:05:21 +0000 Subject: Prepare for a new update Reverting patches so we can apply the latest update and changes can be seen in the spec file and sources. --- diff --git a/lib/LWP/Protocol/https.pm b/lib/LWP/Protocol/https.pm index 8ace7f2..ed4d832 100644 --- a/lib/LWP/Protocol/https.pm +++ b/lib/LWP/Protocol/https.pm @@ -21,11 +21,7 @@ sub _extra_sock_opts $ssl_opts{SSL_verifycn_scheme} = 'www'; } else { - if ( $Net::HTTPS::SSL_SOCKET_CLASS eq 'Net::SSL' ) { - $ssl_opts{SSL_verifycn_scheme} = ''; - } else { - $ssl_opts{SSL_verifycn_scheme} = 'none'; - } + $ssl_opts{SSL_verify_mode} = 0; } if ($ssl_opts{SSL_verify_mode}) { unless (exists $ssl_opts{SSL_ca_file} || exists $ssl_opts{SSL_ca_path}) { diff --git a/t/https_proxy.t b/t/https_proxy.t index c78345b..5196960 100644 --- a/t/https_proxy.t +++ b/t/https_proxy.t @@ -66,10 +66,7 @@ my %ua; $ua{noproxy} = LWP::UserAgent->new( keep_alive => 10, # size of connection cache # server does not know the expected name and returns generic certificate - ssl_opts => { - verify_hostname => 0, - SSL_ca_file => $cafile, - } + ssl_opts => { verify_hostname => 0 } ); $ua{proxy} = LWP::UserAgent->new(