xref: /freebsd/contrib/pam_modules/pam_passwdqc/passwdqc.h (revision f0adf7f5cdd241db2f2c817683191a6ef64a4e95)
1 /*
2  * Copyright (c) 2000-2002 by Solar Designer. See LICENSE.
3  */
4 
5 #ifndef _PASSWDQC_H
6 #define _PASSWDQC_H
7 
8 #include <pwd.h>
9 
10 typedef struct {
11 	int min[5], max;
12 	int passphrase_words;
13 	int match_length;
14 	int similar_deny;
15 	int random_bits;
16 } passwdqc_params_t;
17 
18 extern char _passwdqc_wordset_4k[0x1000][6];
19 
20 extern const char *_passwdqc_check(passwdqc_params_t *params,
21     const char *newpass, const char *oldpass, struct passwd *pw);
22 extern char *_passwdqc_random(passwdqc_params_t *params);
23 
24 #endif
25