From d048339468f66af732a47e8aa61228a502ef64d8 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 1 Aug 1997 14:13:35 +0000 Subject: Fix the POP3 querying. svn path=/trunk/; revision=1213 --- pop3.c | 5 ++--- 1 file 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) { -- cgit v1.2.3