LWP-Protocol-https 6.17
Legitimate Perl library test suite
“Provide https support for LWP::UserAgent”
Perl IO::Socket listenerPerl fork child process
SHA-256361c7c1eee8cf66812958f975f26ef2e2272a0c6221d2043477cb9c22b8d1c23
MaleculeO(C)H₂(CmPo)
Evidence
⋯10 lines
11use IO::Select;
12use Socket 'MSG_PEEK';
13use LWP::UserAgent;
14use LWP::Protocol::https;
15
16plan skip_all => "fork not implemented on this platform" if
17 grep { $^O =~m{$_} } qw( MacOS VOS v …
33:35… ---------------------------------------
34my (@server,@saddr);
35for my $i (0,1) {
36 my $server = IO::Socket::INET->new(
37 LocalAddr => '127.0.0.1',
38 LocalPort => 0, # let system pick port
⋯7 lines
46my @childs;
47END { kill 9,@childs if @childs };
48defined( my $pid = fork()) or die "fork failed: $!";
49
50# child process runs _server and exits
⋯7 lines
174:31… ~m{^proxy} ? "http://$saddr[0]":""
175 }
176
177 my $response = $ua->get($url) or die "no response";
178 if ( $response->is_success
179 and ( my $body = $response->content()) =~m{^ID: *(\d+)\.(\S+)}m ) {
76:31… SL-Version" => $sslversion);
77 }
78 $res->header("Client-SSL-Cipher" => $sock->get_cipher);
79 my $cert = $sock->get_peer_certificate;
80 if ($cert) {
81 $res->header("Client-SSL-Cert-Subject" => …
99:18… be passed there only if it is not an IP address.
100 # Details: https://github.com/libwww-perl/libwww-perl/issues/449#issuecomment-1896175509
101 my $host = $url->host() =~ m/:|^[\d.]+$/s ? undef : $url->host();
102 m …
No evidence locations were recorded for this file. Raw result