From ed7d438a124a2504f07e19379cc90c45b530a8ea Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sat, 23 Feb 2013 19:31:59 +0000 Subject: pop3: Introduced a custom SMTP structure for per-request data Created a new SMTP structure and changed the type of the smtp proto variable in connectdata from FTP* to SMTP*. --- lib/smtp.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/smtp.h') diff --git a/lib/smtp.h b/lib/smtp.h index 514e6eb8a..f78e2c5b4 100644 --- a/lib/smtp.h +++ b/lib/smtp.h @@ -53,6 +53,17 @@ typedef enum { SMTP_LAST /* never used */ } smtpstate; +/* This SMTP struct is used in the SessionHandle. All SMTP data that is + connection-oriented must be in smtp_conn to properly deal with the fact that + perhaps the SessionHandle is changed between the times the connection is + used. */ +struct SMTP { + curl_off_t *bytecountp; + char *user; /* User name string */ + char *passwd; /* Password string */ + curl_pp_transfer transfer; +}; + /* smtp_conn is used for struct connection-oriented data in the connectdata struct */ struct smtp_conn { -- cgit v1.2.3