* 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 letter_tests[];
const struct password_test letter_tests[] = {
{
"عربى",
KADM5_PASS_Q_GENERIC,
"Password contains non-ASCII or control characters",
+ 0,
},
{
"ouchD\ 1artetch",
KADM5_PASS_Q_GENERIC,
"Password contains non-ASCII or control characters",
+ 0,
},
{
" ouchDartetch",
KADM5_PASS_Q_GENERIC,
"Password contains non-ASCII or control characters",
+ 0,
},
{
"ouchDartetch",
KADM5_PASS_Q_CLASS,
"Password is only letters and spaces",
+ 0,
},
{
"the perils of all good dogs",
KADM5_PASS_Q_CLASS,
"Password is only letters and spaces",
+ 0,
},
{
"the perils of all good dogs!",
0,
NULL,
+ 0,
},
{
"the perils 0of all good dogs",
0,
NULL,
+ 0,
},
{
"11111111111111111111",
KADM5_PASS_Q_CLASS,
"Password does not contain enough unique characters",
+ 0,
},
{
"1b1b1b1b1b1b1b1b1b1b",
KADM5_PASS_Q_CLASS,
"Password does not contain enough unique characters",
+ 0,
},
{
"1bc1bc1bc1bc1bc1bc1b",
KADM5_PASS_Q_CLASS,
"Password does not contain enough unique characters",
+ 0,
},
{
"1bcd1bcd1bcd1bcd1bcd",
KADM5_PASS_Q_CLASS,
"Password does not contain enough unique characters",
+ 0,
},
{
"1bcde1bcde1bcde1bcde",
KADM5_PASS_Q_CLASS,
"Password does not contain enough unique characters",
+ 0,
},
{
"1bcdef1bcdef1bcdef1b",
KADM5_PASS_Q_CLASS,
"Password does not contain enough unique characters",
+ 0,
},
{
"1cdbfge1cdbeg1fcdbef",
KADM5_PASS_Q_CLASS,
"Password does not contain enough unique characters",
+ 0,
},
{
"1dbegchf1cdbfgh1ebcd",
0,
NULL,
+ 0,
},
{
"bcd1fgei1bhdefchig1b",
0,
NULL,
+ 0,
},
};