* for the use in C test programs. To make changes, modify the original
* JSON source or (more rarely) the make-c-data script and run it again.
*
+ * Written by Russ Allbery <eagle@eyrie.org>
+ * Copyright 2020 Russ Allbery <eagle@eyrie.org>
* Copyright 2013
* The Board of Trustees of the Leland Stanford Junior University
*
- * See LICENSE for licensing terms.
+ * SPDX-License-Identifier: MIT
*/
#include <tests/data/passwords/tests.h>
+extern const struct password_test cracklib_tests[];
const struct password_test cracklib_tests[] = {
{
"known good password",
0,
NULL,
+ 0,
},
{
"password",
KADM5_PASS_Q_GENERIC,
"it is based on a dictionary word",
+ 0,
},
{
"bitterbane",
KADM5_PASS_Q_GENERIC,
"it is based on a dictionary word",
+ 0,
},
{
"stanfordstanford",
KADM5_PASS_Q_GENERIC,
"it is based on a (duplicated) dictionary word",
+ 1,
},
{
"enabrettib",
KADM5_PASS_Q_GENERIC,
"it is based on a (reversed) dictionary word",
+ 1,
},
{
"dfareas",
KADM5_PASS_Q_GENERIC,
"it is too short",
+ 1,
},
{
"food",
KADM5_PASS_Q_GENERIC,
"it is too short",
+ 0,
},
{
"foo",
KADM5_PASS_Q_GENERIC,
"it is WAY too short",
+ 0,
},
{
"",
KADM5_PASS_Q_GENERIC,
"it is WAY too short",
+ 0,
},
{
" ",
KADM5_PASS_Q_GENERIC,
"it does not contain enough DIFFERENT characters",
+ 0,
},
{
"abcdefghi",
KADM5_PASS_Q_GENERIC,
"it is too simplistic/systematic",
+ 0,
},
{
"22413411",
KADM5_PASS_Q_GENERIC,
"it does not contain enough DIFFERENT characters",
+ 0,
},
{
"OwenDericksegregationistshumiliatemeningitis'smainmast",
0,
NULL,
+ 0,
},
};