From eb1b8fb6779d71fbe8c23156d4773e56f7d2fe67 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 20 Sep 1999 16:11:38 +0000 Subject: Add comment. svn path=/trunk/; revision=2566 --- imap.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'imap.c') diff --git a/imap.c b/imap.c index 5d62a135..f947c870 100644 --- a/imap.c +++ b/imap.c @@ -787,6 +787,14 @@ static int do_cram_md5 (int sock, struct query *ctl) * computed by applying the keyed MD5 algorithm from [KEYED-MD5] where * the key is a shared secret and the digested text is the timestamp * (including angle-brackets). + * + * If the usename has a space in it, it's surrounded by string quotes + * before being shipped. This is not in conformance with the CRAM-MD5 + * RFCs (which don't describe any kind of quoting and imply that the + * username must be a single token), but at least one server accepts + * it anyway (the greeting line says "InterChange IMAP4 Server v3.51.06"). + * If this doesn't work, sending the unquoted name wouldn't have worked + * either, so we lost nothing. */ hmac_md5 (ctl->password, strlen (ctl->password), -- cgit v1.2.3