]> git.sur5r.net Git - openldap/commitdiff
Add ldap_ prefix to md5 calls.
authorKurt Zeilenga <kurt@openldap.org>
Wed, 16 Sep 1998 19:03:22 +0000 (19:03 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 16 Sep 1998 19:03:22 +0000 (19:03 +0000)
Patch submitted by Chris Smith <csmith@platform.com>

servers/slapd/back-ldbm/bind.c

index 4171ac23e70cfbc032a063ac7aff1e3d84bf313d..796d471aaaa8dad23786b7f8bf66ede820b00a75 100644 (file)
@@ -72,9 +72,9 @@ crypted_value_find(
 
                                char *userpassword = vals[i]->bv_val + sizeof("{MD5}") - 1;
 
-                               MD5Init(&MD5context);
-                               MD5Update(&MD5context, cred->bv_val, strlen(cred->bv_val));
-                               MD5Final(MD5digest, &MD5context);
+                               ldap_MD5Init(&MD5context);
+                               ldap_MD5Update(&MD5context, cred->bv_val, strlen(cred->bv_val));
+                               ldap_MD5Final(MD5digest, &MD5context);
 
                                if (b64_ntop(MD5digest, sizeof(MD5digest),
                                        base64digest, sizeof(base64digest)) < 0)