diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-02-11 18:56:35 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-02-11 18:56:35 +0000 |
commit | 53ce6f9f1e5efd958d6ddd8e4acccfaae09bcd0e (patch) | |
tree | 2c05f6b8f5339b5ac12137ab49574e309b5b8c44 /imap.c | |
parent | aa1bdbd05f159428de45690323293bd9f5741a77 (diff) | |
download | fetchmail-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.c | 15 |
1 files changed, 4 insertions, 11 deletions
@@ -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) |