summaryrefslogtreecommitdiff
path: root/lib/imap.h
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-02-07 00:18:23 +0000
committerSteve Holme <steve_holme@hotmail.com>2013-02-07 00:18:23 +0000
commit7704621f4cd1d6d8728c1d7a8c3fd2cef1bec1ab (patch)
treeff845f88b5f9c49f31173bebd2a8c67d7f2cd288 /lib/imap.h
parent542507f316d8ee4aeb3978ddcb48215c56d80d2f (diff)
downloadcurl-7704621f4cd1d6d8728c1d7a8c3fd2cef1bec1ab.tar.gz
imap: Changed response tag generation to be completely unique
Updated the automatic response tag generation to follow the examples given in RC3501, which list a 4 character string such as A001, A002, etc. As a unique identifier should be generated for each command the string generation is based on the connection id and the incrementing command id.
Diffstat (limited to 'lib/imap.h')
-rw-r--r--lib/imap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/imap.h b/lib/imap.h
index 4a276c151..5cbae751a 100644
--- a/lib/imap.h
+++ b/lib/imap.h
@@ -60,7 +60,7 @@ struct imap_conn {
unsigned int authused; /* Auth mechanism used for the connection */
imapstate state; /* Always use imap.c:state() to change state! */
int cmdid; /* Last used command ID */
- const char *resptag; /* Response tag to wait for */
+ char resptag[5]; /* Response tag to wait for */
bool ssldone; /* Is connect() over SSL done? */
bool login_disabled; /* LOGIN command explicitly disabled by server */
};