Subject: | LWP::UserAgent: SSL_verify_mode argument not property managed |
Date: | Thu, 16 May 2013 11:39:54 +0200 |
To: | bug-libwww-perl [...] rt.cpan.org |
From: | Vicente Gavara <vgavara [...] gmail.com> |
Even setting SSL_verify_mode argument value to SSL_VERIFY_NONE via constructor or calling ssl_opts function the option doesn't seem to reach IO::SOCKET::SSL that carps the message "Using the default of SSL_verify_mode of SSL_VERIFY_NONE for client is deprecated!..."
The only way I've found of avoiding the message, ie, of setting IO::SOCKET::SSL SSL_verify_mode argument to SSL_VERIFY_NONE is running IO::Socket::SSL::set_ctx_defaults(SSL_verify_mode => SSL_VERIFY_NONE) in the BEGIN block.
This bug might be considiered bound of the bug 83254 (IO::Socket::SSL now issues warning when used with LWP's verify_hostname=>0) since the solution given there was setting SSL_verify_mode to SSL_VERIFY_NONE using the ssl_opts constructor argument.