blob: e28ac95e049e2b0f2bae61c640d4ac95351d1c77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
/*
* pwgen.h --- header file for password generator
*
* Copyright (C) 2001,2002 by Theodore Ts'o
*
* This file may be distributed under the terms of the GNU Public
* License.
*/
struct pw_element {
const char *str;
int flags;
};
/*
* Flags for the pw_element
*/
#define CONSONANT 0x0001
#define VOWEL 0x0002
#define DIPTHONG 0x0004
#define NOT_FIRST 0x0008
/*
* Flags for the pwgen function
*/
#define PW_ONE_NUMBER 0x0001
#define PW_ONE_CASE 0x0002
struct pwgen_func {
const char *name;
void (*func)(char *buf, int size, int pw_flags);
int flags;
};
/* Function prototypes */
/* pw_phonemes.c */
extern void pw_phonemes(char *buf, int size, int pw_flags);
/* pw_rand.c */
extern void pw_rand(char *buf, int size, int pw_flags);
/* randnum.c */
extern int pw_random_number(int max_num);
|