From 9746fee1812db8afdfec885b9780df96022ebf26 Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Fri, 18 Nov 2022 08:57:07 +0100 Subject: pwquality_get_int_value(): Make it possible to get usersubstr value Fixes #64 --- src/settings.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/settings.c b/src/settings.c index 0f53124..da42b63 100644 --- a/src/settings.c +++ b/src/settings.c @@ -451,6 +451,9 @@ pwquality_get_int_value(pwquality_settings_t *pwq, int setting, int *value) case PWQ_SETTING_USER_CHECK: *value = pwq->user_check; break; + case PWQ_SETTING_USER_SUBSTR: + *value = pwq->user_substr; + break; case PWQ_SETTING_ENFORCING: *value = pwq->enforcing; break; -- cgit v1.2.1