aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-11 18:56:35 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-02-11 18:56:35 +0000
commit53ce6f9f1e5efd958d6ddd8e4acccfaae09bcd0e (patch)
tree2c05f6b8f5339b5ac12137ab49574e309b5b8c44 /imap.c
parentaa1bdbd05f159428de45690323293bd9f5741a77 (diff)
downloadfetchmail-53ce6f9f1e5efd958d6ddd8e4acccfaae09bcd0e.tar.gz
fetchmail-53ce6f9f1e5efd958d6ddd8e4acccfaae09bcd0e.tar.bz2
fetchmail-53ce6f9f1e5efd958d6ddd8e4acccfaae09bcd0e.zip
Try to clean up SASL a bit.
svn path=/trunk/; revision=3058
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/imap.c b/imap.c
index f65c1fd6..41e07a76 100644
--- a/imap.c
+++ b/imap.c
@@ -828,12 +828,8 @@ int imap_getauth(int sock, struct query *ctl, char *greeting)
if (ctl->server.protocol == P_IMAP_K4)
{
if ((ok = do_rfc1731(sock, ctl->server.truename)))
- {
- if (outlevel >= O_MONITOR)
- report(stdout, "IMAP> *\n");
/* SASL cancellation of authentication */
- SockWrite(sock, "*\r\n", 3);
- }
+ gen_send(sock, "*");
return(ok);
}
@@ -854,13 +850,10 @@ int imap_getauth(int sock, struct query *ctl, char *greeting)
if (ctl->server.protocol != P_IMAP_LOGIN)
{
if ((ok = do_cram_md5 (sock, ctl)))
- {
- if (outlevel >= O_MONITOR)
- report (stdout, "IMAP> *\n");
/* SASL cancellation of authentication */
- SockWrite (sock, "*\r\n", 3);
- }
- return ok;
+ gen_send(sock, "*");
+
+ return(ok);
}
}
else if (ctl->server.protocol == P_IMAP_CRAM_MD5)