2
* pwgen.h --- header file for password generator
4
* Copyright (C) 2001 by Theodore Ts'o
6
* This file may be distributed under the terms of the GNU Public
16
* Flags for the pw_element
18
#define CONSONANT 0x0001
20
#define DIPTHONG 0x0004
21
#define NOT_FIRST 0x0008
24
* Flags for the pwgen function
26
#define PW_ONE_NUMBER 0x0001
27
#define PW_ONE_CASE 0x0002
31
void (*func)(char *buf, int size, int pw_flags);
35
/* Function prototypes */
38
extern void pw_phonemes(char *buf, int size, int pw_flags);
41
extern void pw_rand(char *buf, int size, int pw_flags);
44
extern int pw_random_number(int max_num);