[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TLS in smtpserver



> 21151r  AUTH LOGIN Y3Jvc3Nlcg==
> 21151w  501 5.5.2 unrecognized input/extra junk ??
> ....
> 
> Do you need more information?

This is what we have here (I made debugging statement in more verbose):

AUTH LOGIN Y3Jvc3Nlcg==
000 -> "crosser" leftover->"="
501 5.5.2 unrecognized input/extra junk ??

apparently decodebase64string() has a problem.  String sent by netscape has
correct number of bytes (multiple of 4).  The following diff seems to help
(although it is not "kosher").

--- smtpserver/smtpdata.c.orig  Fri May 14 20:18:35 1999
+++ smtpserver/smtpdata.c       Fri May 14 20:21:28 1999
@@ -549,6 +549,7 @@
     }
     if (outlen < outspc)
       outstr[outlen] = 0;
+    while (*instr == '=') instr++;
     if (inleftover)
       *inleftover = instr;
     return outlen;


Eugene