Skip to content

Commit

Permalink
EF: workaround for buggy Net::SSLeay::do_httpx3()
Browse files Browse the repository at this point in the history
  • Loading branch information
EnDe committed Nov 14, 2024
1 parent 87111f7 commit ef3fa36
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/SSLinfo.pm
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ use warnings;
#_____________________________________________________________________________
#___________________________________________________ package initialisation __|

my $SID_sslinfo = "@(#) SSLinfo.pm 3.34 24/09/06 21:34:46";
my $SID_sslinfo = "@(#) SSLinfo.pm 3.35 24/11/14 02:00:13";
our $VERSION = "24.09.24"; # official verion number of this file

BEGIN {
Expand Down Expand Up @@ -2825,6 +2825,15 @@ sub do_ssl_open($$$@) {
'Connection' => 'close',
)
);
if (not defined $response or not defined $_SSLinfo{'http_status'}) {
if (1.94 >= $Net::SSLeay::VERSION) {
push(@{$_SSLinfo{'errors'}}, "do_ssl_open() HTTP failed; probably due to bug in Net::SSLeay::do_httpx3()");
}
$response = "<<target did not return content for HTTP>>";
$_SSLinfo{'http_status'} = $response;
last;
#$response = ''; # avoid uninitialised value later
}
# NOTE that get_http() returns all keys in %headers capitalised
my $headers = ""; # for trace only
foreach my $h (sort(keys %headers)) { $headers .= "$h: $headers{$h}\n"; }
Expand Down

0 comments on commit ef3fa36

Please sign in to comment.