Merge branch 'vendor/TEXINFO'
[dragonfly.git] / contrib / pam_passwdqc / passwdqc.h
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