From: Howard Chu Date: Sun, 25 Jan 2004 10:39:32 +0000 (+0000) Subject: ITS#2899 NS-MTA-MD5 password len is exactly 64 bytes. X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~446 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=77dc2c479f58c78e6ed20de6166ad8db0af94f4f;p=openldap ITS#2899 NS-MTA-MD5 password len is exactly 64 bytes. --- diff --git a/libraries/liblutil/passwd.c b/libraries/liblutil/passwd.c index ac780b9d4b..e00a07d2f0 100644 --- a/libraries/liblutil/passwd.c +++ b/libraries/liblutil/passwd.c @@ -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; }