Silent crypt_volume_key_verify call.

And moves the error message in tools instead.
This commit is contained in:
Ondrej Kozina
2022-04-25 13:47:43 +02:00
committed by Milan Broz
parent c67db10c22
commit cc107ee20e
3 changed files with 6 additions and 4 deletions

View File

@@ -1797,6 +1797,8 @@ static int action_luksAddKey(void)
goto out;
r = crypt_volume_key_verify(cd, key, keysize);
if (r == -EPERM)
log_err(_("Volume key does not match the volume."));
check_signal(&r);
if (r < 0)
goto out;