pkginc_libdir=$(pkgincludedir)
pkginc_lib_HEADERS = $(headers)
-noinst_HEADERS = crypt-blowfish.h
+noinst_HEADERS = crypt-blowfish.h \
+ password-scheme-private.h
test_programs = \
test-password-scheme \
--- /dev/null
+#ifndef PASSWORD_SCHEME_PRIVATE
+#define PASSWORD_SCHEME_PRIVATE 1
+
+bool password_schemes_weak_allowed(void);
+
+#endif
#include "otp.h"
#include "str.h"
#include "password-scheme.h"
+#include "password-scheme-private.h"
static const char salt_chars[] =
"./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
g_allow_weak = allow;
}
+bool password_schemes_weak_allowed(void)
+{
+ return g_allow_weak;
+}
+
static const struct password_scheme *
password_scheme_lookup_name(const char *name)
{