2002-04-04 15:50:47 +00:00
|
|
|
/*
|
2002-04-14 22:30:54 +00:00
|
|
|
* Copyright (c) 2000-2002 by Solar Designer. See LICENSE.
|
2002-04-04 15:50:47 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _PASSWDQC_H
|
|
|
|
#define _PASSWDQC_H
|
|
|
|
|
|
|
|
#include <pwd.h>
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
int min[5], max;
|
|
|
|
int passphrase_words;
|
|
|
|
int match_length;
|
|
|
|
int similar_deny;
|
|
|
|
int random_bits;
|
|
|
|
} passwdqc_params_t;
|
|
|
|
|
|
|
|
extern char _passwdqc_wordset_4k[0x1000][6];
|
|
|
|
|
2002-04-14 22:30:54 +00:00
|
|
|
extern const char *_passwdqc_check(passwdqc_params_t *params,
|
|
|
|
const char *newpass, const char *oldpass, struct passwd *pw);
|
2002-04-04 15:50:47 +00:00
|
|
|
extern char *_passwdqc_random(passwdqc_params_t *params);
|
|
|
|
|
|
|
|
#endif
|