diff options
| author | Philipp Klaus <philipp.klaus@gmail.com> | 2011-06-21 17:12:21 +0200 |
|---|---|---|
| committer | Philipp Klaus <philipp.klaus@gmail.com> | 2011-06-21 17:12:21 +0200 |
| commit | 4535ac486ce87b6a7257a7959426138405b7ecf8 (patch) | |
| tree | 2b397f1430e62032aa696dd8fe0b91fd8b6a3269 /pwgen.h | |
| download | pwgen-4535ac486ce87b6a7257a7959426138405b7ecf8.zip | |
automatic commit for pwgen-2.0
Diffstat (limited to 'pwgen.h')
| -rw-r--r-- | pwgen.h | 44 |
1 files changed, 44 insertions, 0 deletions
@@ -0,0 +1,44 @@ +/* + * pwgen.h --- header file for password generator + * + * Copyright (C) 2001 by Theodore Ts'o + * + * This file may be distributed under the terms of the GNU Public + * License. + */ + +struct pw_element { + 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 { + 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); |