aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pop3.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/pop3.c b/pop3.c
index 1b432576..59f1da7e 100644
--- a/pop3.c
+++ b/pop3.c
@@ -134,7 +134,7 @@ int pop3_getauth(int sock, struct query *ctl, char *greeting)
if ((gen_transact(sock, "USER %s", ctl->remotename)) != 0)
PROTOCOL_ERROR
-#ifdef HAVE_LIBOPIE
+#if defined(HAVE_LIBOPIE) && defined(OPIE_ENABLE)
/* see RFC1938: A One-Time Password System */
if (challenge = strstr(lastok, "otp-"))
{
@@ -156,10 +156,9 @@ int pop3_getauth(int sock, struct query *ctl, char *greeting)
ok = gen_transact(sock, "PASS %s", response);
}
else
-#else
+#endif /* defined(HAVE_LIBOPIE) && defined(OPIE_ENABLE) */
/* ordinary validation, no one-time password */
ok = gen_transact(sock, "PASS %s", ctl->password);
-#endif /* HAVE_LIBOPIE */
if (ok != 0)
{