summaryrefslogtreecommitdiffstats
path: root/lib/pop3.h
diff options
context:
space:
mode:
authorCurl Upstream <curl-library@lists.haxx.se>2023-02-20 07:24:52 (GMT)
committerBrad King <brad.king@kitware.com>2023-02-21 14:54:46 (GMT)
commit11ba4361aaecf2f1f82ef841146c4c90173d2aca (patch)
tree74bfabf9228b13168d5f822e360cd95a0ac581ae /lib/pop3.h
parentdac458ddbf2b48168779821654a7e69cbd828c14 (diff)
downloadCMake-11ba4361aaecf2f1f82ef841146c4c90173d2aca.zip
CMake-11ba4361aaecf2f1f82ef841146c4c90173d2aca.tar.gz
CMake-11ba4361aaecf2f1f82ef841146c4c90173d2aca.tar.bz2
curl 2023-02-20 (046209e5)
Code extracted from: https://github.com/curl/curl.git at commit 046209e561b7e9b5aab1aef7daebf29ee6e6e8c7 (curl-7_88_1).
Diffstat (limited to 'lib/pop3.h')
-rw-r--r--lib/pop3.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/pop3.h b/lib/pop3.h
index bb0645f..83f0f83 100644
--- a/lib/pop3.h
+++ b/lib/pop3.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 2009 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 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
@@ -62,16 +62,16 @@ struct POP3 {
struct pop3_conn {
struct pingpong pp;
pop3state state; /* Always use pop3.c:state() to change state! */
- bool ssldone; /* Is connect() over SSL done? */
- bool tls_supported; /* StartTLS capability supported by server */
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 */
struct SASL sasl; /* SASL-related storage */
- unsigned int authtypes; /* Accepted authentication types */
- unsigned int preftype; /* Preferred authentication type */
char *apoptimestamp; /* APOP timestamp from the server greeting */
+ unsigned char authtypes; /* Accepted authentication types */
+ unsigned char preftype; /* Preferred authentication type */
+ BIT(ssldone); /* Is connect() over SSL done? */
+ BIT(tls_supported); /* StartTLS capability supported by server */
};
extern const struct Curl_handler Curl_handler_pop3;
@@ -84,7 +84,7 @@ extern const struct Curl_handler Curl_handler_pop3s;
/* Authentication type values */
#define POP3_TYPE_NONE 0
-#define POP3_TYPE_ANY ~0U
+#define POP3_TYPE_ANY (POP3_TYPE_CLEARTEXT|POP3_TYPE_APOP|POP3_TYPE_SASL)
/* This is the 5-bytes End-Of-Body marker for POP3 */
#define POP3_EOB "\x0d\x0a\x2e\x0d\x0a"