diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-01-08 11:31:48 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-01-08 11:31:48 +0000 |
commit | 4ffb8a6398ed561b8b4fabce9790af26577f914a (patch) | |
tree | 14fcb34d4ed5ce4ff81b1b38959b21bdfd5a30aa /lib/pop3.h | |
parent | 7a6d8b1b1a8fcc184c36d6b6e741e32250b4bacb (diff) | |
download | curl-4ffb8a6398ed561b8b4fabce9790af26577f914a.tar.gz |
pop3: Added support for non-blocking SSL upgrade
Added support for asynchronous SSL upgrade when using the
multi-interface.
Diffstat (limited to 'lib/pop3.h')
-rw-r--r-- | lib/pop3.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/pop3.h b/lib/pop3.h index 1b6859955..a07236c40 100644 --- a/lib/pop3.h +++ b/lib/pop3.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 2009 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 2009 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -30,6 +30,8 @@ typedef enum { POP3_SERVERGREET, /* waiting for the initial greeting immediately after a connect */ POP3_STARTTLS, + POP3_UPGRADETLS, /* asynchronously upgrade the connection to SSL/TLS + (multi mode only) */ POP3_CAPA, POP3_AUTH_PLAIN, POP3_AUTH_LOGIN, @@ -63,6 +65,8 @@ struct pop3_conn { unsigned int authused; /* SASL auth mechanism used for the connection */ char *apoptimestamp; /* APOP timestamp from the server greeting */ pop3state state; /* Always use pop3.c:state() to change state! */ + bool ssldone; /* Is connect() over SSL done? Only relevant in + multi mode */ }; extern const struct Curl_handler Curl_handler_pop3; |