From: John Keeping Date: Sun, 07 Jul 2013 09:02:01 GMT Subject: Re: [PATCH v2 2/2] send-email: introduce sendemail.smtpsslcertpath Message-ID: <20130707090200.GQ9161@serenity.lan> In-Reply-To: <7vppuv57ps.fsf@alter.siamese.dyndns.org> On Sat, Jul 06, 2013 at 09:12:31PM -0700, Junio C Hamano wrote: > John Keeping writes: > > > @@ -1096,19 +1101,18 @@ sub smtp_auth_maybe { > > # Helper to come up with SSL/TLS certification validation params > > # and warn when doing no verification > > sub ssl_verify_params { > > - use IO::Socket::SSL qw(SSL_VERIFY_PEER SSL_VERIFY_NONE); > > - > > - if (!defined $smtp_ssl_cert_path) { > > - $smtp_ssl_cert_path = "/etc/ssl/certs"; > > + if ($smtp_ssl_verify == 0) { > > + return (SSL_verify_mode => IO::Socket::SSL->SSL_VERIFY_NONE); > > I do not see any "use IO::Socket::SSL" anywhere after applying this > patch. Is this expected to work? I don't get any errors about unknown variables when running it. Do we get IO::Socket::SSL imported through Net::SMTP::SSL, which extends it?