summaryrefslogtreecommitdiff
path: root/lib/smtp.h
diff options
context:
space:
mode:
authorPatrick Monnerat <pm@datasphere.ch>2015-01-20 14:14:26 +0100
committerPatrick Monnerat <pm@datasphere.ch>2015-01-20 14:14:26 +0100
commit5f09cbcdbd0e0ac4e44a32d06122b5e58d575679 (patch)
treee0bbe743feaaec910c7b1c8491d0fa2cceddfeba /lib/smtp.h
parent960b04e137446943a258e910c48f183a1a1a273b (diff)
downloadcurl-5f09cbcdbd0e0ac4e44a32d06122b5e58d575679.tar.gz
IMAP/POP3/SMTP: use a per-connection sub-structure for SASL parameters.
Diffstat (limited to 'lib/smtp.h')
-rw-r--r--lib/smtp.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/smtp.h b/lib/smtp.h
index 7a95efeaf..a237d3e5c 100644
--- a/lib/smtp.h
+++ b/lib/smtp.h
@@ -23,6 +23,7 @@
***************************************************************************/
#include "pingpong.h"
+#include "curl_sasl.h"
/****************************************************************************
* SMTP unique setup
@@ -79,14 +80,11 @@ struct smtp_conn {
smtpstate state; /* Always use smtp.c:state() to change state! */
bool ssldone; /* Is connect() over SSL done? */
char *domain; /* Client address/name to send in the EHLO */
- unsigned int authmechs; /* Accepted authentication mechanisms */
- unsigned int prefmech; /* Preferred authentication mechanism */
- unsigned int authused; /* Auth mechanism used for the connection */
+ struct SASL sasl; /* SASL-related storage */
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 */
- bool mutual_auth; /* Mutual authentication enabled (GSSAPI only) */
};
extern const struct Curl_handler Curl_handler_smtp;