]> eyrie.org Git - kerberos/krb5-strength.git/blob - tests/data/passwords/cracklib.c
Imported Upstream version 2.2
[kerberos/krb5-strength.git] / tests / data / passwords / cracklib.c
1 /*
2  * Automatically generated -- do not edit!
3  *
4  * This file was automatically generated from the original JSON source file
5  * for the use in C test programs.  To make changes, modify the original
6  * JSON source or (more rarely) the make-c-data script and run it again.
7  *
8  * Copyright 2013
9  *     The Board of Trustees of the Leland Stanford Junior University
10  *
11  * See LICENSE for licensing terms.
12  */
13
14 #include <tests/data/passwords/tests.h>
15
16 const struct password_test cracklib_tests[] = {
17     {
18
19         "good password",
20         "test@EXAMPLE.ORG",
21         "known good password",
22         0,
23         NULL,
24     },
25     {
26
27         "in dictionary",
28         "test@EXAMPLE.ORG",
29         "password",
30         KADM5_PASS_Q_GENERIC,
31         "it is based on a dictionary word",
32     },
33     {
34
35         "in dictionary (longer)",
36         "test@EXAMPLE.ORG",
37         "bitterbane",
38         KADM5_PASS_Q_GENERIC,
39         "it is based on a dictionary word",
40     },
41     {
42
43         "in dictionary (repeated)",
44         "test@EXAMPLE.ORG",
45         "stanfordstanford",
46         KADM5_PASS_Q_GENERIC,
47         "it is based on a (duplicated) dictionary word",
48     },
49     {
50
51         "in dictionary (reversed)",
52         "test@EXAMPLE.ORG",
53         "enabrettib",
54         KADM5_PASS_Q_GENERIC,
55         "it is based on a (reversed) dictionary word",
56     },
57     {
58
59         "seven characters",
60         "test@EXAMPLE.ORG",
61         "dfareas",
62         KADM5_PASS_Q_GENERIC,
63         "it is too short",
64     },
65     {
66
67         "four characters",
68         "test@EXAMPLE.ORG",
69         "food",
70         KADM5_PASS_Q_GENERIC,
71         "it is too short",
72     },
73     {
74
75         "three characters",
76         "test@EXAMPLE.ORG",
77         "foo",
78         KADM5_PASS_Q_GENERIC,
79         "it is WAY too short",
80     },
81     {
82
83         "empty",
84         "test@EXAMPLE.ORG",
85         "",
86         KADM5_PASS_Q_GENERIC,
87         "it is WAY too short",
88     },
89     {
90
91         "all whitespace",
92         "test@EXAMPLE.ORG",
93         "                         ",
94         KADM5_PASS_Q_GENERIC,
95         "it does not contain enough DIFFERENT characters",
96     },
97     {
98
99         "too simplistic",
100         "test@EXAMPLE.ORG",
101         "abcdefghi",
102         KADM5_PASS_Q_GENERIC,
103         "it is too simplistic/systematic",
104     },
105     {
106
107         "not enough characters",
108         "test@EXAMPLE.ORG",
109         "22413411",
110         KADM5_PASS_Q_GENERIC,
111         "it does not contain enough DIFFERENT characters",
112     },
113     {
114
115         "long password complexity",
116         "test@EXAMPLE.ORG",
117         "OwenDericksegregationistshumiliatemeningitis'smainmast",
118         0,
119         NULL,
120     },
121 };