Re: [PATCH 3/3] send-email: set SSL options through IO::Socket::SSL::set_client_defaults
- From
Ramkumar Ramachandra <artagnon@gmail.com>
- Date
- Dec 2, 2013, 10:44 UTC
- Message-ID
- <CALkWK0nn867+3+cToc=QMyA0u+0oPJkq+nmB1T3DP+kiiwb72Q@mail.gmail.com>
- In-Reply-To
- <c5308d5ffb34b70cbfea5a39e08902904fac1400.1385938050.git.tr@thomasrast.ch>
Thomas Rast wrote:
Show 8 quoted lines
> When --smtp-encryption=ssl, we use a Net::SMTP::SSL connection, > passing its ->new all the options that would otherwise go to > Net::SMTP->new (most options) and IO::Socket::SSL->start_SSL (for the > SSL options). > > However, while Net::SMTP::SSL replaces the underlying socket class > with an SSL socket, it does nothing to allow passing options to that > socket. So the SSL-relevant options are lost.
Both [1/3] and [2/3] look good. However, I'm curious about this one: Net::SMTP::SSL inherits from IO::Socket::SSL, where new() is defined. In the documentation for IO::Socket::SSL,
$ perldoc IO::Socket::SSL
I can see examples where SSL_verify_mode and SSL_ca_path are passed to new(). So, I'm not sure what this patch is about.