lutil_salt_format LDAP_P((
const char *format ));
+LDAP_LUTIL_F( int )
+lutil_passwd_string64 LDAP_P((
+ const struct berval *sc,
+ const struct berval *hash,
+ struct berval *b64,
+ const struct berval *salt ));
+
/* utils.c */
LDAP_LUTIL_F( char* )
lutil_progname LDAP_P((
}
#endif /* SLAPD_LMHASH || SLAPD_CRYPT */
-static int pw_string64(
+int lutil_passwd_string64(
const struct berval *sc,
const struct berval *hash,
struct berval *b64,
(const unsigned char *)salt.bv_val, salt.bv_len );
lutil_SHA1Final( SHA1digest, &SHA1context );
- return pw_string64( scheme, &digest, hash, &salt);
+ return lutil_passwd_string64( scheme, &digest, hash, &salt);
}
static int hash_sha1(
(const unsigned char *)passwd->bv_val, passwd->bv_len );
lutil_SHA1Final( SHA1digest, &SHA1context );
- return pw_string64( scheme, &digest, hash, NULL);
+ return lutil_passwd_string64( scheme, &digest, hash, NULL);
}
#endif
(const unsigned char *) salt.bv_val, salt.bv_len );
lutil_MD5Final( MD5digest, &MD5context );
- return pw_string64( scheme, &digest, hash, &salt );
+ return lutil_passwd_string64( scheme, &digest, hash, &salt );
}
static int hash_md5(
(const unsigned char *) passwd->bv_val, passwd->bv_len );
lutil_MD5Final( MD5digest, &MD5context );
- return pw_string64( scheme, &digest, hash, NULL );
+ return lutil_passwd_string64( scheme, &digest, hash, NULL );
;
}