summaryrefslogtreecommitdiff
path: root/modules/pam_unix
diff options
context:
space:
mode:
authorSteve Langasek <vorlon@debian.org>2023-09-11 14:00:42 -0600
committerSam Hartman <hartmans@debian.org>2024-04-08 16:35:07 -0600
commitba3cacbea1195e52034d8f546b5f1c11bea9de6a (patch)
tree4e5d00c47a305fa3a7ddeb13c167e702d0502cd6 /modules/pam_unix
parent030556b6f50706e91b846e1757cded0de543b42d (diff)
Support nullok_secure as a deprecated alias for nullok
Last-Update: 2020-08-11 Gbp-Pq: Name nullok_secure-compat.patch
Diffstat (limited to 'modules/pam_unix')
-rw-r--r--modules/pam_unix/support.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/pam_unix/support.h b/modules/pam_unix/support.h
index 91e74781..e15ee989 100644
--- a/modules/pam_unix/support.h
+++ b/modules/pam_unix/support.h
@@ -102,8 +102,9 @@ typedef struct {
#define UNIX_YESCRYPT_PASS 32 /* new password hashes will use yescrypt */
#define UNIX_NULLRESETOK 33 /* allow empty password if password reset is enforced */
#define UNIX_OBSCURE_CHECKS 34 /* enable obscure checks on passwords */
+#define UNIX_NULLOK_SECURE 35 /* deprecated alias for nullok */
/* -------------- */
-#define UNIX_CTRLS_ 35 /* number of ctrl arguments defined */
+#define UNIX_CTRLS_ 36 /* number of ctrl arguments defined */
#define UNIX_DES_CRYPT(ctrl) (off(UNIX_MD5_PASS,ctrl)&&off(UNIX_BIGCRYPT,ctrl)&&off(UNIX_SHA256_PASS,ctrl)&&off(UNIX_SHA512_PASS,ctrl)&&off(UNIX_BLOWFISH_PASS,ctrl)&&off(UNIX_GOST_YESCRYPT_PASS,ctrl)&&off(UNIX_YESCRYPT_PASS,ctrl))
@@ -147,6 +148,7 @@ static const UNIX_Ctrls unix_args[UNIX_CTRLS_] =
/* UNIX_YESCRYPT_PASS */ {"yescrypt", _ALL_ON_^(0x6EC22000ULL), 0x40000000, 1},
/* UNIX_NULLRESETOK */ {"nullresetok", _ALL_ON_, 0x80000000, 0},
/* UNIX_OBSCURE_CHECKS */ {"obscure", _ALL_ON_, 0x100000000, 0},
+/* UNIX_NULLOK_SECURE */ {"nullok_secure", _ALL_ON_^(0x200ULL), 0, 0},
};
#define UNIX_DEFAULTS (unix_args[UNIX__NONULL].flag)