]> eyrie.org Git - kerberos/krb5-strength.git/blob - tests/data/passwords/cdb.c
New upstream version 3.2
[kerberos/krb5-strength.git] / tests / data / passwords / cdb.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 cdb_tests[];
19 const struct password_test cdb_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_DICT,
35         "Password found in list of common passwords",
36         0,
37     },
38     {
39
40         "in dictionary (longer)",
41         "test@EXAMPLE.ORG",
42         "bitterbane",
43         KADM5_PASS_Q_DICT,
44         "Password found in list of common passwords",
45         0,
46     },
47     {
48
49         "in dictionary (drop first)",
50         "test@EXAMPLE.ORG",
51         "1bitterbane",
52         KADM5_PASS_Q_DICT,
53         "Password found in list of common passwords",
54         0,
55     },
56     {
57
58         "in dictionary (drop last)",
59         "test@EXAMPLE.ORG",
60         "bitterbane1",
61         KADM5_PASS_Q_DICT,
62         "Password found in list of common passwords",
63         0,
64     },
65     {
66
67         "in dictionary (drop first two)",
68         "test@EXAMPLE.ORG",
69         "abbitterbane",
70         KADM5_PASS_Q_DICT,
71         "Password found in list of common passwords",
72         0,
73     },
74     {
75
76         "in dictionary (drop last two)",
77         "test@EXAMPLE.ORG",
78         "bitterbane12",
79         KADM5_PASS_Q_DICT,
80         "Password found in list of common passwords",
81         0,
82     },
83     {
84
85         "in dictionary (drop first and last)",
86         "test@EXAMPLE.ORG",
87         "'bitterbane'",
88         KADM5_PASS_Q_DICT,
89         "Password found in list of common passwords",
90         0,
91     },
92     {
93
94         "dictionary with three characters",
95         "test@EXAMPLE.ORG",
96         "bitterbane123",
97         0,
98         NULL,
99         0,
100     },
101 };