| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
#pragma once |
| 3 |
|
| 4 |
#define N_SUGGESTIONS 6 |
| 5 |
|
| 6 |
#if HAVE_PASSWDQC |
| 7 |
|
| 8 |
#include "password-quality-util-passwdqc.h" /* IWYU pragma: export */ |
| 9 |
|
| 10 |
#elif HAVE_PWQUALITY |
| 11 |
|
| 12 |
#include "password-quality-util-pwquality.h" /* IWYU pragma: export */ |
| 13 |
|
| 14 |
#else |
| 15 |
|
| 16 |
static inline int suggest_passwords(void) { |
| 17 |
return 0; |
| 18 |
} |
| 19 |
|
| 20 |
static inline int check_password_quality( |
| 21 |
const char *password, |
| 22 |
const char *old, |
| 23 |
const char *username, |
| 24 |
char **ret_error) { |
| 25 |
if (ret_error) |
| 26 |
*ret_error = NULL; |
| 27 |
return 1; /* all good */ |
| 28 |
} |
| 29 |
|
| 30 |
#endif |