summaryrefslogtreecommitdiffstats
path: root/lib/pop3.c
diff options
context:
space:
mode:
authorCurl Upstream <curl-library@lists.haxx.se>2023-09-13 06:19:24 (GMT)
committerBrad King <brad.king@kitware.com>2023-09-20 17:09:30 (GMT)
commit017637e40f954e791a895a04855d0411bda61c10 (patch)
treeb639b20b79e2674bb4ff1ddfac5fe5eb7a372dcc /lib/pop3.c
parente2ab2da70a2b390eb9067d45dfa47023b00c5cd7 (diff)
downloadCMake-017637e40f954e791a895a04855d0411bda61c10.zip
CMake-017637e40f954e791a895a04855d0411bda61c10.tar.gz
CMake-017637e40f954e791a895a04855d0411bda61c10.tar.bz2
curl 2023-09-13 (6fa1d817)
Code extracted from: https://github.com/curl/curl.git at commit 6fa1d817e5b1a00d7d0c8168091877476b499317 (curl-8_3_0).
Diffstat (limited to 'lib/pop3.c')
-rw-r--r--lib/pop3.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/pop3.c b/lib/pop3.c
index ddb98bf..a9d5fdd6 100644
--- a/lib/pop3.c
+++ b/lib/pop3.c
@@ -47,9 +47,6 @@
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
-#ifdef HAVE_UTSNAME_H
-#include <sys/utsname.h>
-#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
@@ -422,7 +419,7 @@ static CURLcode pop3_perform_user(struct Curl_easy *data,
return result;
}
-#ifndef CURL_DISABLE_CRYPTO_AUTH
+#ifndef CURL_DISABLE_DIGEST_AUTH
/***********************************************************************
*
* pop3_perform_apop()
@@ -566,7 +563,7 @@ static CURLcode pop3_perform_authentication(struct Curl_easy *data,
}
if(!result && progress == SASL_IDLE) {
-#ifndef CURL_DISABLE_CRYPTO_AUTH
+#ifndef CURL_DISABLE_DIGEST_AUTH
if(pop3c->authtypes & pop3c->preftype & POP3_TYPE_APOP)
/* Perform APOP authentication */
result = pop3_perform_apop(data, conn);
@@ -834,7 +831,7 @@ static CURLcode pop3_state_auth_resp(struct Curl_easy *data,
pop3_state(data, POP3_STOP); /* Authenticated */
break;
case SASL_IDLE: /* No mechanism left after cancellation */
-#ifndef CURL_DISABLE_CRYPTO_AUTH
+#ifndef CURL_DISABLE_DIGEST_AUTH
if(pop3c->authtypes & pop3c->preftype & POP3_TYPE_APOP)
/* Perform APOP authentication */
result = pop3_perform_apop(data, conn);
@@ -855,7 +852,7 @@ static CURLcode pop3_state_auth_resp(struct Curl_easy *data,
return result;
}
-#ifndef CURL_DISABLE_CRYPTO_AUTH
+#ifndef CURL_DISABLE_DIGEST_AUTH
/* For APOP responses */
static CURLcode pop3_state_apop_resp(struct Curl_easy *data, int pop3code,
pop3state instate)
@@ -1018,7 +1015,7 @@ static CURLcode pop3_statemachine(struct Curl_easy *data,
result = pop3_state_auth_resp(data, pop3code, pop3c->state);
break;
-#ifndef CURL_DISABLE_CRYPTO_AUTH
+#ifndef CURL_DISABLE_DIGEST_AUTH
case POP3_APOP:
result = pop3_state_apop_resp(data, pop3code, pop3c->state);
break;