From efb69df3f0591124d79b9ddad72aac3bba13e420 Mon Sep 17 00:00:00 2001 From: jgoerzen Date: Tue, 5 Nov 2002 08:11:28 +0100 Subject: [PATCH] /offlineimap/head: changeset 282 Updated with more md5 debugging --- offlineimap/head/offlineimap/imapserver.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/offlineimap/head/offlineimap/imapserver.py b/offlineimap/head/offlineimap/imapserver.py index 993f160..9981faf 100644 --- a/offlineimap/head/offlineimap/imapserver.py +++ b/offlineimap/head/offlineimap/imapserver.py @@ -105,16 +105,22 @@ class IMAPServer: self.semaphore.release() def md5handler(self, response): + ui = UIBase.getglobalui() challenge = response.strip() + ui.debug('imap', 'md5handler: got challenge %s' % challenge) while len(challenge) < 64: challenge += "\0" if len(challenge) > 64: challenge = md5.new(challenge).digest() + + ui.debug('imap', 'md5handler: post-processed challenge is %s' % \ + repr(challenge)) msg = self.getpassword() reply = hmac.new(challenge, msg) retval = self.username + ' ' + \ reply.hexdigest() + ui.debug('imap', 'md5handler: returning %s' % retval) return retval def plainauth(self, imapobj):