summaryrefslogtreecommitdiffstats
path: root/src/home/user-record-password-quality.h
diff options
context:
space:
mode:
authorEgor Ignatov <egori@altlinux.org>2021-08-06 10:40:34 +0200
committerDmitry V. Levin <ldv@strace.io>2023-07-06 12:59:41 +0200
commitd34b1823cace2b85436fc0ee79c0569d2f085f72 (patch)
treeaafd1b108ca036801b24cf8e113cf6c45eaf150d /src/home/user-record-password-quality.h
parenthomed: change user_record_quality_check_password to use quality_check_password (diff)
downloadsystemd-d34b1823cace2b85436fc0ee79c0569d2f085f72.tar.xz
systemd-d34b1823cace2b85436fc0ee79c0569d2f085f72.zip
shared: add password quality check abstraction layer to support both pwquality and passwdqc
Co-authored-by: Dmitry V. Levin <ldv@altlinux.org>
Diffstat (limited to 'src/home/user-record-password-quality.h')
-rw-r--r--src/home/user-record-password-quality.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/home/user-record-password-quality.h b/src/home/user-record-password-quality.h
new file mode 100644
index 0000000000..c7d6ec6046
--- /dev/null
+++ b/src/home/user-record-password-quality.h
@@ -0,0 +1,7 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+#pragma once
+
+#include "sd-bus.h"
+#include "user-record.h"
+
+int user_record_check_password_quality(UserRecord *hr, UserRecord *secret, sd_bus_error *error);