diff options
author | Ondrej Kozina <okozina@redhat.com> | 2024-04-03 13:45:22 +0200 |
---|---|---|
committer | Milan Broz <gmazyland@gmail.com> | 2024-04-03 11:51:35 +0000 |
commit | 0cbeb35a932622b264cadfa1b9a0ac2c6d1ec86a (patch) | |
tree | 7d0d1ddfa88e51ce2d0608515e4ad04f490a609d | |
parent | e17ec3734191a9f57f6575d024805f68eca78998 (diff) | |
download | cryptsetup-0cbeb35a932622b264cadfa1b9a0ac2c6d1ec86a.tar.gz |
Do not check passphrase quality in-before erase.
The passphrase (Admin PIN) already exists and there's no
reason to check quiality of it.
-rw-r--r-- | src/cryptsetup.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cryptsetup.c b/src/cryptsetup.c index a46e2dd3..fd580d73 100644 --- a/src/cryptsetup.c +++ b/src/cryptsetup.c @@ -3039,8 +3039,7 @@ static int opal_erase(struct crypt_device *cd, bool factory_reset) { r = tools_get_key(factory_reset ? _("Enter OPAL PSID: ") : _("Enter OPAL Admin password: "), &password, &password_size, ARG_UINT64(OPT_KEYFILE_OFFSET_ID), ARG_UINT32(OPT_KEYFILE_SIZE_ID), ARG_STR(OPT_KEY_FILE_ID), - ARG_UINT32(OPT_TIMEOUT_ID), verify_passphrase(0), - !ARG_SET(OPT_FORCE_PASSWORD_ID), cd); + ARG_UINT32(OPT_TIMEOUT_ID), verify_passphrase(0), 0, cd); if (r < 0) return r; |