]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Import ITS#2899 NS-MTA-MD5 fix from HEAD
authorHoward Chu <hyc@openldap.org>
Wed, 7 Apr 2004 14:25:48 +0000 (14:25 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 7 Apr 2004 14:25:48 +0000 (14:25 +0000)
libraries/liblutil/passwd.c

index 6b50bea8e2fa9d437191d5b24aae16b1305e56bf..e5168fbb9b705ef7928d1cee7244840a0a3f3af6 100644 (file)
@@ -775,6 +775,7 @@ static int chk_lanman(
 #endif /* SLAPD_LMHASH */
 
 #ifdef SLAPD_NS_MTA_MD5
+#define NS_MTA_MD5_PASSLEN     64
 static int chk_ns_mta_md5(
        const struct berval *scheme,
        const struct berval *passwd,
@@ -786,7 +787,7 @@ static int chk_ns_mta_md5(
        char buffer[LUTIL_MD5_BYTES*2];
        int i;
 
-       if( passwd->bv_len != LUTIL_MD5_BYTES*2 ) {
+       if( passwd->bv_len != NS_MTA_MD5_PASSLEN ) {
                return 1;
        }