Skip to content

Loading…

small compilation fix #52

Merged
merged 1 commit into from

2 participants

@isn-

I suppose I've broken nothing :) Please review.

@captain-caveman2k captain-caveman2k merged commit 3c6ea7c into curl:master
@captain-caveman2k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 5, 2012
  1. build: fix compilation with CURL_DISABLE_CRYPTO_AUTH flag

    Stanislav Ivochkin committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/pop3.c
View
4 lib/pop3.c
@@ -421,6 +421,7 @@ static CURLcode pop3_state_user(struct connectdata *conn)
return CURLE_OK;
}
+#ifndef CURL_DISABLE_CRYPTO_AUTH
static CURLcode pop3_state_apop(struct connectdata *conn)
{
CURLcode result = CURLE_OK;
@@ -454,6 +455,7 @@ static CURLcode pop3_state_apop(struct connectdata *conn)
return result;
}
+#endif
static CURLcode pop3_authenticate(struct connectdata *conn)
{
@@ -604,8 +606,10 @@ static CURLcode pop3_state_capa_resp(struct connectdata *conn,
/* Check supported authentication types by decreasing order of security */
if(conn->proto.pop3c.authtypes & POP3_TYPE_SASL)
result = pop3_authenticate(conn);
+#ifndef CURL_DISABLE_CRYPTO_AUTH
else if(conn->proto.pop3c.authtypes & POP3_TYPE_APOP)
result = pop3_state_apop(conn);
+#endif
else if(conn->proto.pop3c.authtypes & POP3_TYPE_CLEARTEXT)
result = pop3_state_user(conn);
else {
Something went wrong with that request. Please try again.