]> granicus.if.org Git - curl/commitdiff
build: fix compilation with CURL_DISABLE_CRYPTO_AUTH flag
authorStanislav Ivochkin <ivochkinsn@gmail.com>
Wed, 5 Dec 2012 18:31:40 +0000 (22:31 +0400)
committerStanislav Ivochkin <ivochkinsn@gmail.com>
Wed, 5 Dec 2012 18:32:49 +0000 (22:32 +0400)
lib/pop3.c

index 844c463f1aedc87dc7ee54ce49e9f67f9c8b249c..c00fb62610cbbe97eb55f73ea3c0b88b7d78e8c5 100644 (file)
@@ -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 {