/src/systemd/src/shared/password-quality-util.h
Line | Count | Source (jump to first uncovered line) |
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 | 0 | static inline int suggest_passwords(void) { |
17 | 0 | return 0; |
18 | 0 | } Unexecuted instantiation: password-quality-util-passwdqc.c:suggest_passwords Unexecuted instantiation: password-quality-util-pwquality.c:suggest_passwords |
19 | | |
20 | | static inline int check_password_quality( |
21 | | const char *password, |
22 | | const char *old, |
23 | | const char *username, |
24 | 0 | char **ret_error) { |
25 | 0 | if (ret_error) |
26 | 0 | *ret_error = NULL; |
27 | 0 | return 1; /* all good */ |
28 | 0 | } Unexecuted instantiation: password-quality-util-passwdqc.c:check_password_quality Unexecuted instantiation: password-quality-util-pwquality.c:check_password_quality |
29 | | |
30 | | #endif |