IO-Socket-SSL
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/IO/Socket/SSL/PublicSuffix.pm view on Meta::CPAN
sub _default_data {
if ( ! defined $data ) {
$data = _builtin_data();
$data =~s{^// ===END ICANN DOMAINS.*}{}ms
or die "cannot find END ICANN DOMAINS";
}
return $data;
}
}
sub update_self_from_url {
my $url = shift || URL();
my $dst = __FILE__;
-w $dst or die "cannot write $dst";
open( my $fh,'<',$dst ) or die "open $dst: $!";
my $code = '';
local $/ = "\n";
while (<$fh>) {
$code .= $_;
m{<<\'END_BUILTIN_DATA\'} and last;
}
t/external/fingerprint.pl view on Meta::CPAN
fingerprint => 'sha1$pub$8fa5e67c40659e2afa5ed08c7a29f6e62d58d01c',
host => 'www.live.com',
port => 443,
subject_hash_ca => '3513523f'
}
]
;
# --- END-FINGERPRINTS ----
sub update_fingerprints {
my $changed;
for my $fp (@$fingerprints) {
my $cl = IO::Socket::INET->new(
PeerHost => $fp->{host},
PeerPort => $fp->{port} || 443,
Timeout => 10,
);
my $root;
if (!$cl) {
warn "E $fp->{host}:$fp->{port} - TCP connect failed: $!\n";
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.191 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )