anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / perl-modules / lwp-protocol-https-cert-file.patch
blob3b6156d3a7c7dd895f5fdb4aa4a3c2216656149d
1 diff --git a/lib/LWP/Protocol/https.pm b/lib/LWP/Protocol/https.pm
2 index 645e828..7098f64 100644
3 --- a/lib/LWP/Protocol/https.pm
4 +++ b/lib/LWP/Protocol/https.pm
5 @@ -29,6 +29,9 @@ sub _extra_sock_opts
8 if ($ssl_opts{SSL_verify_mode}) {
9 + if ($ENV{NIX_SSL_CERT_FILE}) {
10 + $ssl_opts{SSL_ca_file} //= $ENV{NIX_SSL_CERT_FILE};
11 + }
12 unless (exists $ssl_opts{SSL_ca_file} || exists $ssl_opts{SSL_ca_path}) {
13 if ($Net::HTTPS::SSL_SOCKET_CLASS eq 'IO::Socket::SSL'
14 && defined &IO::Socket::SSL::default_ca