193787Sdes/* 294691Sdes * Copyright (c) 2000-2002 by Solar Designer. See LICENSE. 393787Sdes */ 493787Sdes 593787Sdes#ifndef _PASSWDQC_H 693787Sdes#define _PASSWDQC_H 793787Sdes 893787Sdes#include <pwd.h> 993787Sdes 1093787Sdestypedef struct { 1193787Sdes int min[5], max; 1293787Sdes int passphrase_words; 1393787Sdes int match_length; 1493787Sdes int similar_deny; 1593787Sdes int random_bits; 1693787Sdes} passwdqc_params_t; 1793787Sdes 1893787Sdesextern char _passwdqc_wordset_4k[0x1000][6]; 1993787Sdes 2094691Sdesextern const char *_passwdqc_check(passwdqc_params_t *params, 2194691Sdes const char *newpass, const char *oldpass, struct passwd *pw); 2293787Sdesextern char *_passwdqc_random(passwdqc_params_t *params); 2393787Sdes 2493787Sdes#endif 25