blob: f9ef7676e572144a2d07c104b2bb608e2079c612 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#ifndef CRACKLIB_H
#define CRACKLIB_H
#ifdef __cplusplus
extern "C" {
#endif
/* 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.
*/
extern const char *GetDefaultCracklibDict(void);
#ifdef __cplusplus
};
#endif
#endif
|