mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Cleanup prev commit
This commit is contained in:
parent
2da2336ac6
commit
afe12db0d1
@ -494,16 +494,7 @@ slap_passwd_hash(
|
|||||||
#ifdef SLAPD_CRYPT
|
#ifdef SLAPD_CRYPT
|
||||||
static ldap_pvt_thread_mutex_t passwd_mutex;
|
static ldap_pvt_thread_mutex_t passwd_mutex;
|
||||||
static lutil_cryptfunc slapd_crypt;
|
static lutil_cryptfunc slapd_crypt;
|
||||||
#endif
|
|
||||||
|
|
||||||
void slap_passwd_init()
|
|
||||||
{
|
|
||||||
#ifdef SLAPD_CRYPT
|
|
||||||
ldap_pvt_thread_mutex_init( &passwd_mutex );
|
|
||||||
lutil_cryptptr = slapd_crypt;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
#ifdef SLAPD_CRYPT
|
|
||||||
int slapd_crypt( const char *key, const char *salt, char **hash )
|
int slapd_crypt( const char *key, const char *salt, char **hash )
|
||||||
{
|
{
|
||||||
char *cr;
|
char *cr;
|
||||||
@ -528,3 +519,11 @@ int slapd_crypt( const char *key, const char *salt, char **hash )
|
|||||||
}
|
}
|
||||||
#endif /* SLAPD_CRYPT */
|
#endif /* SLAPD_CRYPT */
|
||||||
|
|
||||||
|
void slap_passwd_init()
|
||||||
|
{
|
||||||
|
#ifdef SLAPD_CRYPT
|
||||||
|
ldap_pvt_thread_mutex_init( &passwd_mutex );
|
||||||
|
lutil_cryptptr = slapd_crypt;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user