]> eyrie.org Git - kerberos/krb5-strength.git/blob - tests/data/passwords/history.c
New upstream version 3.2
[kerberos/krb5-strength.git] / tests / data / passwords / history.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 history_tests[];
19 const struct password_test history_tests[] = {
20     {
21
22         "valid simple password",
23         "someuser@EXAMPLE.ORG",
24         "password",
25         0,
26         NULL,
27         0,
28     },
29     {
30
31         "repeating the same password",
32         "someuser@EXAMPLE.ORG",
33         "password",
34         0,
35         "Password was previously used",
36         0,
37     },
38     {
39
40         "different password works",
41         "someuser@EXAMPLE.ORG",
42         "password2",
43         0,
44         NULL,
45         0,
46     },
47     {
48
49         "now that one fails",
50         "someuser@EXAMPLE.ORG",
51         "password2",
52         0,
53         "Password was previously used",
54         0,
55     },
56     {
57
58         "previous password still fails",
59         "someuser@EXAMPLE.ORG",
60         "password",
61         0,
62         "Password was previously used",
63         0,
64     },
65     {
66
67         "succeeds for different user",
68         "test@EXAMPLE.ORG",
69         "password",
70         0,
71         NULL,
72         0,
73     },
74     {
75
76         "based on principal",
77         "someuser@EXAMPLE.ORG",
78         "someuser",
79         0,
80         "Password based on username or principal",
81         0,
82     },
83 };