mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-11 19:00:02 +01:00
tests: check keyring key is gone after crypt_suspend
This commit is contained in:
committed by
Milan Broz
parent
583fbfdb2a
commit
a6aba8cab2
@@ -502,6 +502,9 @@ static void SuspendDevice(void)
|
||||
}
|
||||
|
||||
OK_(suspend_status);
|
||||
#ifdef KERNEL_KEYRING
|
||||
FAIL_(_volume_key_in_keyring(cd, 0), "");
|
||||
#endif
|
||||
FAIL_(crypt_suspend(cd, CDEVICE_1), "already suspended");
|
||||
|
||||
FAIL_(crypt_resume_by_passphrase(cd, CDEVICE_1, CRYPT_ANY_SLOT, KEY1, strlen(KEY1)-1), "wrong key");
|
||||
|
||||
Reference in New Issue
Block a user