]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/pwauth.c: Remove dead code
authorAlejandro Colomar <alx@kernel.org>
Fri, 1 Sep 2023 22:58:15 +0000 (00:58 +0200)
committerSerge Hallyn <serge@hallyn.com>
Mon, 4 Sep 2023 13:57:18 +0000 (08:57 -0500)
commitadbdd086a27f865284c954a467a4def30ca147ac
tree8b517a97754a2c69d05e488159080c9f59f6d75e
parent2b393114c7b83ea1c9e8278be2a5a8fc94626fab
lib/pwauth.c: Remove dead code

There are no users of 'clear_pass' and 'wipe_clear_pass'.

$ grep -rn '\<clear_pass\>'
lib/pwauth.c:35:/*@null@*/char *clear_pass = NULL;
lib/pwauth.c:199:  * not wipe it (the caller should wipe clear_pass when it is
lib/pwauth.c:203: clear_pass = clear;

$ grep -rn wipe_clear_pass
lib/pwauth.c:34:bool wipe_clear_pass = true;
lib/pwauth.c:198:  * if the external variable wipe_clear_pass is zero, we will
lib/pwauth.c:204: if (wipe_clear_pass && (NULL != clear) && ('\0' != *clear)) {
ChangeLog:3813: * lib/pwauth.c: Use a boolean for wipe_clear_pass and use_skey.

Remove them.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/pwauth.c