home *** CD-ROM | disk | FTP | other *** search
- # NOTE: Derived from blib/lib/Net/SSLeay.pm.
- # Changes made here will be lost when autosplit is run again.
- # See AutoSplit.pm.
- package Net::SSLeay;
-
- #line 1996 "blib/lib/Net/SSLeay.pm (autosplit into blib/lib/auto/Net/SSLeay/do_https4.al)"
- ### Returns headers as a hash where multiple instances of same header
- ### are handled correctly.
-
- sub do_https4 {
- my ($page, $response, $headers, $server_cert) = &do_https3;
- X509_free($server_cert) if defined $server_cert;
- my %hr = ();
- for my $hh (split /\s?\n/, $headers) {
- my ($h,$v)=/^(\S+)\:\s*(.*)$/;
- push @{$hr{uc($h)}}, $v;
- }
- return ($page, $response, \%hr);
- }
-
- # end of Net::SSLeay::do_https4
- 1;
-