]> git.sur5r.net Git - openldap/commitdiff
Cleanup prev commit
authorHoward Chu <hyc@openldap.org>
Fri, 18 Mar 2005 06:12:27 +0000 (06:12 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 18 Mar 2005 06:12:27 +0000 (06:12 +0000)
servers/slapd/passwd.c

index 65710aaff5367a49b31cb7ad6b317f587b769c81..3b5cac6d7b5635d7c5eba23b1d304ad9c5a38091 100644 (file)
@@ -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
+}
+