]> eyrie.org Git - kerberos/krb5-strength.git/blob - tests/data/passwords/length.c
New upstream version 3.2
[kerberos/krb5-strength.git] / tests / data / passwords / length.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 length_tests[];
19 const struct password_test length_tests[] = {
20     {
21
22         "password too short (limit 12)",
23         "test@EXAMPLE.COM",
24         "vUCZ2aX$Y.e",
25         KADM5_PASS_Q_TOOSHORT,
26         "Password is too short",
27         0,
28     },
29     {
30
31         "sufficiently long password",
32         "test@EXAMPLE.COM",
33         "vUCZ2aX$Y.e1",
34         0,
35         NULL,
36         0,
37     },
38     {
39
40         "password in (unchecked) dictionary",
41         "test@EXAMPLE.COM",
42         "happenstance",
43         0,
44         NULL,
45         0,
46     },
47 };