From: Kurt Zeilenga Date: Sun, 12 Dec 1999 05:06:36 +0000 (+0000) Subject: s/generate/hash/ X-Git-Tag: UCDATA_2_4~93 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cda19446ef28201b8f87b28bf8590696477ebb3a;p=openldap s/generate/hash/ --- 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",