aboutsummaryrefslogtreecommitdiff
path: root/lib/pop3.h
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2012-06-04 22:15:51 +0100
committerSteve Holme <steve_holme@hotmail.com>2012-06-04 22:15:51 +0100
commit38dfe525596f3dcb81c31fae0b7605751c6c3769 (patch)
tree3d3d4dbc0982c7990b0971b8c18da824bb68f9d7 /lib/pop3.h
parent7759d10f3653d03f2816b6628164917f3c4914cf (diff)
downloadgnurl-38dfe525596f3dcb81c31fae0b7605751c6c3769.tar.gz
gnurl-38dfe525596f3dcb81c31fae0b7605751c6c3769.tar.bz2
gnurl-38dfe525596f3dcb81c31fae0b7605751c6c3769.zip
pop3: Post authentication code tidy up
Corrected lines longer than 78 characters. Changed POP3_AUTH_FINAL to POP3_AUTH to match SMTP code now that the AUTH command is no longer sent on its own. Introduced some comments in data sending functions. Another attempt at trying to rational code and comment style.
Diffstat (limited to 'lib/pop3.h')
-rw-r--r--lib/pop3.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/pop3.h b/lib/pop3.h
index 951586431..ef00231c4 100644
--- a/lib/pop3.h
+++ b/lib/pop3.h
@@ -39,7 +39,7 @@ typedef enum {
POP3_AUTH_DIGESTMD5_RESP,
POP3_AUTH_NTLM,
POP3_AUTH_NTLM_TYPE2MSG,
- POP3_AUTH_FINAL,
+ POP3_AUTH,
POP3_USER,
POP3_PASS,
POP3_COMMAND,
@@ -51,14 +51,15 @@ typedef enum {
struct */
struct pop3_conn {
struct pingpong pp;
- char *mailbox; /* message id */
- char *custom; /* custom request */
- size_t eob; /* number of bytes of the EOB (End Of Body) that has been
- received thus far */
- size_t strip; /* number of bytes from the start to ignore as non-body */
+ char *mailbox; /* Message ID */
+ char *custom; /* Custom Request */
+ size_t eob; /* Number of bytes of the EOB (End Of Body) that
+ have been received so far */
+ size_t strip; /* Number of bytes from the start to ignore as
+ non-body */
unsigned int authmechs; /* Accepted authentication methods */
unsigned int authused; /* Authentication method used for the connection */
- pop3state state; /* always use pop3.c:state() to change state! */
+ pop3state state; /* Always use pop3.c:state() to change state! */
};
extern const struct Curl_handler Curl_handler_pop3;