cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Different treatment of "no SSL support on server side" in FTP and SMTP

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 3 Jan 2012 23:43:21 +0100 (CET)

On Tue, 3 Jan 2012, Gokhan Sengun wrote:

> It looks from the code that when SMTP server does not support SSL/TLS and
> sends a 5xx reply, libcurl responds its caller with CURLE_LOGIN_DENIED. When
> it comes to FTP server case, getting a negative response to AUTH command,
> libcurl is giving the error CURLE_USE_SSL_FAILED.
>
> I think CURLE_USE_SSL_FAILED expresses the situation better, because it has
> almost nothing to do with the login (authentication) except maybe implicit
> SSL case because if server would support SSL then login could succeed.

I can only agree!

> My suggestion would be to use FTP's treatment for SMTP (the one I am
> interested) and maybe for other modules (IMAP and POP3) to be truly
> consistent.
>
> I can not imagine however how backward compability with existing codes would
> be accomplished.

We don't need to be backward compatible with bugs in that sense. Can you
provide a patch for this fix?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-01-03