bolangi/Net-IMAP-Client — pull request #1 by ChinaXing (2013-05-26 11:36:47+00:00)
Title: fix IO::Socket::SSL deprecate warning

When use ssl => 1 , the warning will printed:

"*******************************************************************\n".
" Using the default of SSL_verify_mode of SSL_VERIFY_NONE for client\n".
" is deprecated! Please set SSL_verify_mode to SSL_VERIFY_PEER\n".
" together with SSL_ca_file|SSL_ca_path for verification.\n".
" If you really don't want to verify the certificate and keep the\n".
" connection open to Man-In-The-Middle attacks please set\n".
" SSL_verify_mode explicitly to SSL_VERIFY_NONE in your application.\n".
"*******************************************************************\n".
" "

IO::Socket::SSL version is 1.89

I fixed this by add following constructor argument. hope you can merge it :)

...arguments :

ssl_verify_peer default 1, means verify server use CA
ssl_ca_file CA file used
ssl_ca_path CA path used