]> git.sur5r.net Git - openldap/blobdiff - libraries/liblutil/passwd.c
Fix ldaps / TLS processing...
[openldap] / libraries / liblutil / passwd.c
index ce910e5d873f044d87ee63017fa61423a57de1fc..a1b3201dd8c06ace913f1acf8f62e8384e85efc2 100644 (file)
@@ -113,8 +113,7 @@ static int chk_crypt(
        const struct berval *passwd,
        const struct berval *cred );
 
-#if defined( HAVE_GETSPNAM ) \
-  || ( defined( HAVE_GETPWNAM ) && defined( HAVE_PW_PASSWD ) )
+#if defined( HAVE_GETPWNAM ) && defined( HAVE_PW_PASSWD )
 static int chk_unix(
        const struct pw_scheme *scheme,
        const struct berval *passwd,
@@ -165,7 +164,6 @@ static const struct pw_scheme pw_schemes[] =
 
 #ifdef SLAPD_CRYPT
        { {sizeof("{CRYPT}")-1, "{CRYPT}"},     chk_crypt, hash_crypt },
-#endif
 # if defined( HAVE_GETPWNAM ) && defined( HAVE_PW_PASSWD )
        { {sizeof("{UNIX}")-1, "{UNIX}"},       chk_unix, NULL },
 # endif