~ubuntu-branches/ubuntu/saucy/curl/saucy-proposed

« back to all changes in this revision

Viewing changes to lib/smtp.h

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2013-05-07 12:16:37 UTC
  • mfrom: (3.4.37 sid)
  • Revision ID: package-import@ubuntu.com-20130507121637-9t3i98qgsyr9dw5d
Tags: 7.30.0-1ubuntu1
* Resynchronize on Debian. Remaining changes:
  - Drop dependencies not in main:
    + Build-Depends: Drop stunnel4 and libssh2-1-dev.
    + Drop libssh2-1-dev from binary package Depends.
  - Add new libcurl3-udeb package.
  - Add new curl-udeb package.
* Add warning to debian/patches/series.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
                       (multi mode only) */
39
39
  SMTP_AUTH_PLAIN,
40
40
  SMTP_AUTH_LOGIN,
41
 
  SMTP_AUTH_PASSWD,
 
41
  SMTP_AUTH_LOGIN_PASSWD,
42
42
  SMTP_AUTH_CRAMMD5,
43
43
  SMTP_AUTH_DIGESTMD5,
44
44
  SMTP_AUTH_DIGESTMD5_RESP,
45
45
  SMTP_AUTH_NTLM,
46
46
  SMTP_AUTH_NTLM_TYPE2MSG,
47
 
  SMTP_AUTH,
 
47
  SMTP_AUTH_FINAL,
48
48
  SMTP_MAIL,        /* MAIL FROM */
49
49
  SMTP_RCPT,        /* RCPT TO */
50
50
  SMTP_DATA,
53
53
  SMTP_LAST         /* never used */
54
54
} smtpstate;
55
55
 
 
56
/* This SMTP struct is used in the SessionHandle. All SMTP data that is
 
57
   connection-oriented must be in smtp_conn to properly deal with the fact that
 
58
   perhaps the SessionHandle is changed between the times the connection is
 
59
   used. */
 
60
struct SMTP {
 
61
  curl_pp_transfer transfer;
 
62
  struct curl_slist *rcpt; /* Recipient list */
 
63
};
 
64
 
56
65
/* smtp_conn is used for struct connection-oriented data in the connectdata
57
66
   struct */
58
67
struct smtp_conn {
59
68
  struct pingpong pp;
 
69
  smtpstate state;         /* Always use smtp.c:state() to change state! */
 
70
  bool ssldone;            /* Is connect() over SSL done? */
60
71
  char *domain;            /* Client address/name to send in the EHLO */
61
72
  size_t eob;              /* Number of bytes of the EOB (End Of Body) that
62
73
                              have been received so far */
63
74
  unsigned int authmechs;  /* Accepted authentication mechanisms */
64
75
  unsigned int authused;   /* Auth mechanism used for the connection */
65
 
  smtpstate state;         /* Always use smtp.c:state() to change state! */
66
 
  struct curl_slist *rcpt; /* Recipient list */
67
 
  bool ssldone;            /* Is connect() over SSL done? */
 
76
  bool tls_supported;      /* StartTLS capability supported by server */
68
77
  bool size_supported;     /* If server supports SIZE extension according to
69
78
                              RFC 1870 */
70
79
};