diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-08-01 14:13:35 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-08-01 14:13:35 +0000 |
commit | d048339468f66af732a47e8aa61228a502ef64d8 (patch) | |
tree | e6dc1d7be05046a4136be7b8a5f95ac2cb659f32 | |
parent | 7c5edbacee71d3d6cc2ac7d85fc97cfc678ea3cf (diff) | |
download | fetchmail-d048339468f66af732a47e8aa61228a502ef64d8.tar.gz fetchmail-d048339468f66af732a47e8aa61228a502ef64d8.tar.bz2 fetchmail-d048339468f66af732a47e8aa61228a502ef64d8.zip |
Fix the POP3 querying.
svn path=/trunk/; revision=1213
-rw-r--r-- | pop3.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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) { |