aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-01-20 11:09:53 +0000
committerSteve Holme <steve_holme@hotmail.com>2013-01-20 11:09:53 +0000
commite5ea45ec2ea6034900c83b932398400923a35137 (patch)
treee0443553a515684a250f3006ad0f58adade9c512
parent63605d281f804382d2bd2d8655d73e188c12e071 (diff)
pop3.c: Fixed conditional compilation of the apop response function
Extended the fix from commit 8b15c84ea91e to additionally exclude pop3_state_apop_resp() if the CURL_DISABLE_CRYPTO_AUTH flag is defined.
-rw-r--r--lib/pop3.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/pop3.c b/lib/pop3.c
index befdb7c1d..91e7bcdd8 100644
--- a/lib/pop3.c
+++ b/lib/pop3.c
@@ -954,6 +954,7 @@ static CURLcode pop3_state_auth_final_resp(struct connectdata *conn,
return result;
}
+#ifndef CURL_DISABLE_CRYPTO_AUTH
static CURLcode pop3_state_apop_resp(struct connectdata *conn, int pop3code,
pop3state instate)
{
@@ -972,6 +973,7 @@ static CURLcode pop3_state_apop_resp(struct connectdata *conn, int pop3code,
return result;
}
+#endif
/* For USER responses */
static CURLcode pop3_state_user_resp(struct connectdata *conn, int pop3code,
@@ -1192,9 +1194,11 @@ static CURLcode pop3_statemach_act(struct connectdata *conn)
result = pop3_state_auth_final_resp(conn, pop3code, pop3c->state);
break;
+#ifndef CURL_DISABLE_CRYPTO_AUTH
case POP3_APOP:
result = pop3_state_apop_resp(conn, pop3code, pop3c->state);
break;
+#endif
case POP3_USER:
result = pop3_state_user_resp(conn, pop3code, pop3c->state);