]> git.sur5r.net Git - openldap/commitdiff
s/generate/hash/
authorKurt Zeilenga <kurt@openldap.org>
Sun, 12 Dec 1999 05:06:36 +0000 (05:06 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 12 Dec 1999 05:06:36 +0000 (05:06 +0000)
libraries/liblutil/ptest.c

index fc36d50f3db4bec5bf96febb6bbaf2724cda0129..b682e5537ec046b4add5b80a28745546afba8f49 100644 (file)
 
 #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",