[dovecot-cvs] dovecot/src/auth password-scheme.c,1.16,1.17
cras at dovecot.org
cras at dovecot.org
Wed Dec 29 12:56:28 EET 2004
Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv20575
Modified Files:
password-scheme.c
Log Message:
comment cleanup.
Index: password-scheme.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/password-scheme.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- password-scheme.c 8 Oct 2004 17:51:47 -0000 1.16
+++ password-scheme.c 29 Dec 2004 10:56:26 -0000 1.17
@@ -79,13 +79,11 @@
scheme = t_strdup_until(*password + 1, p);
*password = p + 1;
- /* LDAP's RFC2307 specifies the MD5 scheme for what we call PLAIN-MD5,
- only base64-encoded rather than hex-encoded.
+ /* LDAP's RFC2307 specifies the MD5 scheme for what we call LDAP-MD5.
We can detect this case - base64 doesn't use '$'. */
if (strncasecmp(scheme, "MD5", 3) == 0 &&
- strncmp(*password, "$1$", 3) != 0) {
+ strncmp(*password, "$1$", 3) != 0)
scheme = "LDAP-MD5";
- }
return scheme;
}
More information about the dovecot-cvs
mailing list