]> eyrie.org Git - kerberos/krb5-strength.git/blob - tests/data/passwords/cracklib.c
New upstream version 3.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  * Written by Russ Allbery <eagle@eyrie.org>
9  * Copyright 2020 Russ Allbery <eagle@eyrie.org>
10  * Copyright 2013
11  *     The Board of Trustees of the Leland Stanford Junior University
12  *
13  * SPDX-License-Identifier: MIT
14  */
15
16 #include <tests/data/passwords/tests.h>
17
18 extern const struct password_test cracklib_tests[];
19 const struct password_test cracklib_tests[] = {
20     {
21
22         "good password",
23         "test@EXAMPLE.ORG",
24         "known good password",
25         0,
26         NULL,
27         0,
28     },
29     {
30
31         "in dictionary",
32         "test@EXAMPLE.ORG",
33         "password",
34         KADM5_PASS_Q_GENERIC,
35         "it is based on a dictionary word",
36         0,
37     },
38     {
39
40         "in dictionary (longer)",
41         "test@EXAMPLE.ORG",
42         "bitterbane",
43         KADM5_PASS_Q_GENERIC,
44         "it is based on a dictionary word",
45         0,
46     },
47     {
48
49         "in dictionary (repeated)",
50         "test@EXAMPLE.ORG",
51         "stanfordstanford",
52         KADM5_PASS_Q_GENERIC,
53         "it is based on a (duplicated) dictionary word",
54         1,
55     },
56     {
57
58         "in dictionary (reversed)",
59         "test@EXAMPLE.ORG",
60         "enabrettib",
61         KADM5_PASS_Q_GENERIC,
62         "it is based on a (reversed) dictionary word",
63         1,
64     },
65     {
66
67         "seven characters",
68         "test@EXAMPLE.ORG",
69         "dfareas",
70         KADM5_PASS_Q_GENERIC,
71         "it is too short",
72         1,
73     },
74     {
75
76         "four characters",
77         "test@EXAMPLE.ORG",
78         "food",
79         KADM5_PASS_Q_GENERIC,
80         "it is too short",
81         0,
82     },
83     {
84
85         "three characters",
86         "test@EXAMPLE.ORG",
87         "foo",
88         KADM5_PASS_Q_GENERIC,
89         "it is WAY too short",
90         0,
91     },
92     {
93
94         "empty",
95         "test@EXAMPLE.ORG",
96         "",
97         KADM5_PASS_Q_GENERIC,
98         "it is WAY too short",
99         0,
100     },
101     {
102
103         "all whitespace",
104         "test@EXAMPLE.ORG",
105         "                         ",
106         KADM5_PASS_Q_GENERIC,
107         "it does not contain enough DIFFERENT characters",
108         0,
109     },
110     {
111
112         "too simplistic",
113         "test@EXAMPLE.ORG",
114         "abcdefghi",
115         KADM5_PASS_Q_GENERIC,
116         "it is too simplistic/systematic",
117         0,
118     },
119     {
120
121         "not enough characters",
122         "test@EXAMPLE.ORG",
123         "22413411",
124         KADM5_PASS_Q_GENERIC,
125         "it does not contain enough DIFFERENT characters",
126         0,
127     },
128     {
129
130         "long password complexity",
131         "test@EXAMPLE.ORG",
132         "OwenDericksegregationistshumiliatemeningitis'smainmast",
133         0,
134         NULL,
135         0,
136     },
137 };