Re: [PATCH] `s_client -starttls smtp' fails if not using EHLO

2005-12-31 Thread Goetz Babin-Ebell
Pavel Gorshkov wrote: Some SMTP servers require a HELO/EHLO command before a STARTTLS, e.g.: [...] The attached patch (against openssl-0.9.8a) adds the `-ehlo' option to s_client: -ehlo hostname - use the EHLO smtp command before issuing STARTTLS (to be used in conjunction

Re: [PATCH] `s_client -starttls smtp' fails if not using EHLO

2005-12-31 Thread Pavel Gorshkov
On Sat, Dec 31, 2005 at 04:26:46PM +0100, Goetz Babin-Ebell wrote: This patch solves only smtp. But there are many more protocols using STARTTLS Has anybody thought about a plugin interface or a different way to handle the startup ? I agree that it would be better to have a generalized

Re: [PATCH] `s_client -starttls smtp' fails if not using EHLO

2005-12-31 Thread Goetz Babin-Ebell
Pavel Gorshkov wrote: On Sat, Dec 31, 2005 at 04:26:46PM +0100, Goetz Babin-Ebell wrote: This patch solves only smtp. But there are many more protocols using STARTTLS Has anybody thought about a plugin interface or a different way to handle the startup ? I agree that it would be better to

Re: [PATCH] `s_client -starttls smtp' fails if not using EHLO

2005-12-31 Thread Kyle Hamilton
On 12/31/05, Goetz Babin-Ebell [EMAIL PROTECTED] wrote: Pavel Gorshkov wrote: I agree that it would be better to have a generalized approach. Here's a relevant excerpt from gnutls-cli(1): -s, --starttls Connect, establish a plain session and start TLS when EOF or a

[PATCH] `s_client -starttls smtp' fails if not using EHLO

2005-12-27 Thread Pavel Gorshkov
Some SMTP servers require a HELO/EHLO command before a STARTTLS, e.g.: $ telnet mail.sourceforge.net 25 220 mail.sourceforge.net ESMTP Exim 4.44 ... STARTTLS 503 STARTTLS command used when not advertised for instance, when I try to retrieve the server certificate for