diff options
author | des <des@FreeBSD.org> | 2002-04-04 15:50:47 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-04-04 15:50:47 +0000 |
commit | 4532f219fa85b9c06b3f4caaa4dcbbdbf3bd32f5 (patch) | |
tree | 1dcc5978e4a3b724654b82d0e61f6dc3e94705ee /contrib/pam_modules/pam_passwdqc/passwdqc.h | |
download | FreeBSD-src-4532f219fa85b9c06b3f4caaa4dcbbdbf3bd32f5.zip FreeBSD-src-4532f219fa85b9c06b3f4caaa4dcbbdbf3bd32f5.tar.gz |
Vendor import of Solar Designer's pam_passwdqc module.
Diffstat (limited to 'contrib/pam_modules/pam_passwdqc/passwdqc.h')
-rw-r--r-- | contrib/pam_modules/pam_passwdqc/passwdqc.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/contrib/pam_modules/pam_passwdqc/passwdqc.h b/contrib/pam_modules/pam_passwdqc/passwdqc.h new file mode 100644 index 0000000..f051671 --- /dev/null +++ b/contrib/pam_modules/pam_passwdqc/passwdqc.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2000,2001 by Solar Designer. See LICENSE. + */ + +#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]; + +extern char *_passwdqc_check(passwdqc_params_t *params, + char *newpass, char *oldpass, struct passwd *pw); +extern char *_passwdqc_random(passwdqc_params_t *params); + +#endif |