]> eyrie.org Git - kerberos/krb5-strength.git/blob - tests/data/passwords/cdb.c
Change CrackLib tests for system CrackLib
[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  * 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 cdb_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_DICT,
31         "Password found in list of common passwords",
32     },
33     {
34
35         "in dictionary (longer)",
36         "test@EXAMPLE.ORG",
37         "bitterbane",
38         KADM5_PASS_Q_DICT,
39         "Password found in list of common passwords",
40     },
41     {
42
43         "in dictionary (drop first)",
44         "test@EXAMPLE.ORG",
45         "1bitterbane",
46         KADM5_PASS_Q_DICT,
47         "Password found in list of common passwords",
48     },
49     {
50
51         "in dictionary (drop last)",
52         "test@EXAMPLE.ORG",
53         "bitterbane1",
54         KADM5_PASS_Q_DICT,
55         "Password found in list of common passwords",
56     },
57     {
58
59         "in dictionary (drop first two)",
60         "test@EXAMPLE.ORG",
61         "abbitterbane",
62         KADM5_PASS_Q_DICT,
63         "Password found in list of common passwords",
64     },
65     {
66
67         "in dictionary (drop last two)",
68         "test@EXAMPLE.ORG",
69         "bitterbane12",
70         KADM5_PASS_Q_DICT,
71         "Password found in list of common passwords",
72     },
73     {
74
75         "in dictionary (drop first and last)",
76         "test@EXAMPLE.ORG",
77         "'bitterbane'",
78         KADM5_PASS_Q_DICT,
79         "Password found in list of common passwords",
80     },
81     {
82
83         "dictionary with three characters",
84         "test@EXAMPLE.ORG",
85         "bitterbane123",
86         0,
87         NULL,
88     },
89 };