Subject: | Patch: Pass SSL_ options to Net::HTTPS::NB |
Date: | Wed, 12 Jun 2013 21:15:31 +0300 |
To: | bug-HTTP-Async [...] rt.cpan.org |
From: | Heikki Vatiainen <hvn [...] open.com.au> |
Starting from version 0.13 Net::HTTPS::NB version will pass all options
starting with SSL_ to IO::Socket:SSL->start_SSL(). These options can be
used to e.g., enable different kinds of certificates checks.
Please consider the attached patch. The patch adds a new $async object
config setting called ssl_options. The option value is a hashref where
the hash contains the desired SSL_ options.
Here's an example where HTTP::Async user wants to create a HTTPS
connection with certificate checks enabled:
my %ssl_opts = (
SSL_ca_file = '/path/to/CA.pem',
...
);
...
my $async = HTTP::Async->new(
slots => 20,
ssl_options => \%ssl_opts,
);
This patch is against HTTP::Async version 0.18.
--
Heikki Vatiainen <hvn@open.com.au>
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS,
TTLS, PEAP, TNC, WiMAX, RSA, Vasco, Yubikey, MOTP, HOTP, TOTP,
DIAMETER etc. Full source on Unix, Windows, MacOSX, Solaris, VMS,
NetWare etc.
Message body is not shown because sender requested not to inline it.