diff options
author | Thomas Rast <tr@thomasrast.ch> | 2013-12-01 23:48:43 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-12-04 11:45:32 -0800 |
commit | 5508f3ed2c1cdb515e658cfc29ca0d5cd6683190 (patch) | |
tree | 240c88a0484603869e23e3f0311ce0f6b43c59a8 /t/Git-SVN | |
parent | 979e652a18eea8e865777239f11c89795d969211 (diff) | |
download | git-5508f3ed2c1cdb515e658cfc29ca0d5cd6683190.tar.gz git-5508f3ed2c1cdb515e658cfc29ca0d5cd6683190.tar.xz |
send-email: set SSL options through IO::Socket::SSL::set_client_defaults
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.
Fortunately there is an escape hatch: we can directly set the options
with IO::Socket::SSL::set_client_defaults. They will then persist
within the IO::Socket::SSL module.
Signed-off-by: Thomas Rast <tr@thomasrast.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/Git-SVN')
0 files changed, 0 insertions, 0 deletions