~ubuntu-branches/debian/sid/pwgen/sid

« back to all changes in this revision

Viewing changes to pwgen.h

  • Committer: Bazaar Package Importer
  • Author(s): Vincent Renardias
  • Date: 2001-12-06 17:38:58 UTC
  • Revision ID: james.westby@ubuntu.com-20011206173858-jf0wwxjtrm7e68hg
Tags: upstream-2.01
ImportĀ upstreamĀ versionĀ 2.01

Show diffs side-by-side

added added

removed removed

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