From cda19446ef28201b8f87b28bf8590696477ebb3a Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sun, 12 Dec 1999 05:06:36 +0000 Subject: [PATCH] s/generate/hash/ --- libraries/liblutil/ptest.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libraries/liblutil/ptest.c b/libraries/liblutil/ptest.c index fc36d50f3d..b682e5537e 100644 --- a/libraries/liblutil/ptest.c +++ b/libraries/liblutil/ptest.c @@ -20,10 +20,16 @@ #include "lutil.h" +/* + * Password Test Program + */ char *hash[] = { "{SMD5}", "{SSHA}", "{MD5}", "{SHA}", +#ifdef SLAPD_CRYPT + "{CRYPT}", +#endif NULL }; @@ -41,7 +47,7 @@ main( int argc, char *argv[] ) for( i= 0; hash[i]; i++ ) { for( j = 0; pw[j].bv_len; j++ ) { - passwd = lutil_passwd_generate( &pw[j], hash[i] ); + passwd = lutil_passwd_hash( &pw[j], hash[i] ); rc = lutil_passwd( passwd, &pw[j], NULL ); printf("%s (%d): %s (%d) %s\n", -- 2.39.5