]> git.sur5r.net Git - openldap/commitdiff
ITS#2899 NS-MTA-MD5 password len is exactly 64 bytes.
authorHoward Chu <hyc@openldap.org>
Sun, 25 Jan 2004 10:39:32 +0000 (10:39 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 25 Jan 2004 10:39:32 +0000 (10:39 +0000)
libraries/liblutil/passwd.c

index ac780b9d4b743e5ae1c73bbfa200bc06f89a6ca9..e00a07d2f0010e6fb00ac861ab403a0479aa2d50 100644 (file)
@@ -783,6 +783,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,
@@ -794,7 +795,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;
        }