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
10typedef 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
18extern char _passwdqc_wordset_4k[0x1000][6];
19
20extern const char *_passwdqc_check(passwdqc_params_t *params,
21    const char *newpass, const char *oldpass, struct passwd *pw);
22extern char *_passwdqc_random(passwdqc_params_t *params);
23
24#endif
25