diff options
author | Steve Holme <steve_holme@hotmail.com> | 2012-12-05 11:46:00 -0800 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2012-12-05 11:46:00 -0800 |
commit | 3c6ea7ca825f2f17baf5b384d06b824b5a45987c (patch) | |
tree | 82b58444c65b6476ab1580caf8fdafa93f2d3bed /lib | |
parent | 60edbf65b6d1bfd264e10a72cd35fb81bfad7b8d (diff) | |
parent | 8b15c84ea91e0d4212657585c2ea397820dc8955 (diff) |
Merge pull request #52 from isn-/master
small compilation fix
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pop3.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/pop3.c b/lib/pop3.c index 844c463f1..c00fb6261 100644 --- a/lib/pop3.c +++ b/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 { |