summaryrefslogtreecommitdiff
path: root/lib/smtp.h
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-03-28 18:21:27 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-03-28 18:21:27 +0000
commitfe260b75e74fed56573d133dd64d2424660743cb (patch)
tree9a4ef874bf0fccbf74c64df564423e4b185628ac /lib/smtp.h
parent2dc63c72dc86029e4586aab48517297626f2e455 (diff)
downloadcurl-fe260b75e74fed56573d133dd64d2424660743cb.tar.gz
smtp: Fixed login denied when server doesn't support AUTH capability
Specifying user credentials when the SMTP server doesn't support authentication would cause curl to display "No known authentication mechanisms supported!" and return CURLE_LOGIN_DENIED. Reported-by: Tom Sparrow Bug: http://curl.haxx.se/mail/lib-2014-03/0173.html
Diffstat (limited to 'lib/smtp.h')
-rw-r--r--lib/smtp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/smtp.h b/lib/smtp.h
index a14c37822..017b94336 100644
--- a/lib/smtp.h
+++ b/lib/smtp.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 2009 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 2009 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -82,6 +82,7 @@ struct smtp_conn {
bool tls_supported; /* StartTLS capability supported by server */
bool size_supported; /* If server supports SIZE extension according to
RFC 1870 */
+ bool auth_supported; /* AUTH capability supported by server */
};
extern const struct Curl_handler Curl_handler_smtp;