]> git.sur5r.net Git - openldap/commitdiff
Drop unneeded scheme param
authorHoward Chu <hyc@openldap.org>
Mon, 7 Feb 2011 01:12:49 +0000 (01:12 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 4 Nov 2011 19:03:20 +0000 (12:03 -0700)
contrib/slapd-modules/passwd/apr1.c

index 2078e57fa844027c309850793f244e988936e526..476f038285b7d2e9a0dcdc94a90bbf8118bb3c17 100644 (file)
@@ -109,7 +109,6 @@ static void do_phk_hash(
 }\r
 \r
 static int chk_phk(\r
-       const struct berval *scheme,\r
        const struct berval *magic,\r
        const struct berval *passwd,\r
        const struct berval *cred,\r
@@ -141,7 +140,6 @@ static int chk_phk(
        salt.bv_val = (char *) &orig_pass[sizeof(digest)];\r
        salt.bv_len = rc - sizeof(digest);\r
 \r
-       /* the only difference between this and straight PHK is the magic */\r
        do_phk_hash(cred, magic, &salt, digest);\r
 \r
        if (text)\r
@@ -159,7 +157,7 @@ static int chk_apr1(
        const struct berval *cred,\r
        const char **text)\r
 {\r
-       return chk_phk(scheme, &magic_apr1, passwd, cred, text);\r
+       return chk_phk(&magic_apr1, passwd, cred, text);\r
 }\r
 \r
 static int chk_bsdmd5(\r
@@ -168,7 +166,7 @@ static int chk_bsdmd5(
        const struct berval *cred,\r
        const char **text)\r
 {\r
-       return chk_phk(scheme, &magic_bsdmd5, passwd, cred, text);\r
+       return chk_phk(&magic_bsdmd5, passwd, cred, text);\r
 }\r
 \r
 static int hash_phk(\r