diff options
Diffstat (limited to 'cracklib/lib/crack.h')
-rw-r--r-- | cracklib/lib/crack.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cracklib/lib/crack.h b/cracklib/lib/crack.h index b824a9c..f9ef767 100644 --- a/cracklib/lib/crack.h +++ b/cracklib/lib/crack.h @@ -5,15 +5,22 @@ extern "C" { #endif -/* Pass this function a password (pw) and a path to the +/* Pass these functions a password (pw) and a path to the * dictionaries (/usr/lib/cracklib_dict should be specified) * and it will either return a NULL string, meaning that the * password is good, or a pointer to a string that explains the * problem with the password. + * + * FascistCheckUser() executes tests against an arbitrary user (the 'gecos' + * attribute can be NULL), while FascistCheck() assumes the currently logged + * in user. + * * You must link with -lcrack */ extern const char *FascistCheck(const char *pw, const char *dictpath); +extern const char *FascistCheckUser(const char *pw, const char *dictpath, + const char *user, const char *gecos); /* This function returns the compiled in value for DEFAULT_CRACKLIB_DICT. */ |