Tk Library Source Code

View Ticket
Login
Ticket UUID: 1242629
Title: Fix of CRAM-MD5
Type: Patch Version: None
Submitter: usus Created on: 2005-07-21 21:35:34
Subsystem: smtp Assigned To: patthoyts
Priority: 7 High Severity:
Status: Closed Last Modified: 2005-09-05 17:54:34
Resolution: Accepted Closed By: patthoyts
    Closed on: 2005-09-05 10:54:34
Description:
Hi Marshall,

today I tried to use the smtp modul to send mail
to an authenticating MTA (qmail) using CRAM-MD5.
That didn't work.
Looking at the logs, I found the response to the
challenge 4 char too short. The base64::encode
proc folds this long response into 2 lines (which
is coorect), but qmail is not able to digest a
2 line response. Maybe other MTA's have the same
problem. A simple removal of the newline char
fixed the problem (see patch).
I'm not sure if it's a bug of tcllib or if qmail
is to blame. Regardless, now it works. Would you
(or someone else) please check it against other
MTAs?

Best regards

Ulrich
User Comments: patthoyts added on 2005-09-05 17:54:34:
Logged In: YES 
user_id=202636

OK. Simpler is to give -maxlen 0 to the base64::encode
command to turn off the wrapping functionality.

I'm not going to do this to DIGEST-MD5 unless there are
reports of similar problems.

andreas_kupries added on 2005-07-22 04:48:53:
Logged In: YES 
user_id=75003

Reassigning the report.
The CRAM-MD5 parts have been done by Pat.

usus added on 2005-07-22 04:35:35:

File Added - 142846: smtp.patch

Attachments: