Add tests for CRYPT_VOLUME_KEY_DIGEST_REUSE flag.

Tests commit 7569519530
This commit is contained in:
Ondrej Kozina
2019-03-14 14:55:50 +01:00
committed by Milan Broz
parent 6961f2caae
commit ea4b586c77
2 changed files with 54 additions and 2 deletions

View File

@@ -5224,6 +5224,8 @@ static int verify_and_update_segment_digest(struct crypt_device *cd,
if (r >= 0)
goto out;
/* FIXME: check new volume key is usable with current default segment */
r = update_volume_key_segment_digest(cd, &cd->u.luks2.hdr, digest, 1);
if (r)
log_err(cd, _("Failed to assign keyslot %u as the new volume key."), keyslot);