4 use vars qw($VERSION $SSL_SOCKET_CLASS @ISA);
8 # Figure out which SSL implementation to use
9 if ($Net::SSL::VERSION) {
10 $SSL_SOCKET_CLASS = "Net::SSL";
12 elsif ($IO::Socket::SSL::VERSION) {
13 $SSL_SOCKET_CLASS = "IO::Socket::SSL"; # it was already loaded
16 eval { require Net::SSL; }; # from Crypt-SSLeay
20 require IO::Socket::SSL;
23 $old_errsv =~ s/\s\(\@INC contains:.*\)/)/g;
26 $SSL_SOCKET_CLASS = "IO::Socket::SSL";
29 $SSL_SOCKET_CLASS = "Net::SSL";
33 require Net::HTTP::Methods;
35 @ISA=($SSL_SOCKET_CLASS, 'Net::HTTP::Methods');
39 $self->http_configure($cnf);
44 $self->SUPER::configure($cnf);
47 sub http_default_port {
51 # The underlying SSLeay classes fails to work if the socket is
52 # placed in non-blocking mode. This override of the blocking
53 # method makes sure it stays the way it was created.
54 sub blocking { } # noop