From afe12db0d19b364337740f765551121c0905ec03 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 18 Mar 2005 06:12:27 +0000 Subject: [PATCH] Cleanup prev commit --- servers/slapd/passwd.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/servers/slapd/passwd.c b/servers/slapd/passwd.c index 65710aaff5..3b5cac6d7b 100644 --- a/servers/slapd/passwd.c +++ b/servers/slapd/passwd.c @@ -494,16 +494,7 @@ slap_passwd_hash( #ifdef SLAPD_CRYPT static ldap_pvt_thread_mutex_t passwd_mutex; 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 ) { char *cr; @@ -528,3 +519,11 @@ int slapd_crypt( const char *key, const char *salt, char **hash ) } #endif /* SLAPD_CRYPT */ +void slap_passwd_init() +{ +#ifdef SLAPD_CRYPT + ldap_pvt_thread_mutex_init( &passwd_mutex ); + lutil_cryptptr = slapd_crypt; +#endif +} + -- 2.39.5