git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.

Previous: Thomas RastNext: Thomas Rast
Message 4 of 5 in “send-email: pass Debug to Net::SMTP::SSL::new”
  1. 1/3 send-email: pass Debug to Net::SMTP::SSL::newThomas Rast, Dec 1, 2013
  2. 2/3 send-email: --smtp-ssl-cert-path takes an argumentThomas Rast, Dec 1, 2013
  3. 3/3 send-email: set SSL options through IO::Socket::SSL::set_client_defaultsThomas Rast, Dec 1, 2013
  4. Ramkumar RamachandraDec 2, 2013
  5. Thomas RastDec 2, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.