mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-12 03:10:08 +01:00
Add temporary helpers to indicate uploaded volume key.
To be removed later when we add clear implementation to hide access to volume key uploaded attribute.
This commit is contained in:
committed by
Milan Broz
parent
9e0bcedbaa
commit
1bec71dbe1
@@ -231,3 +231,15 @@ bool crypt_volume_key_is_set(const struct volume_key *vk)
|
||||
{
|
||||
return vk && vk->key;
|
||||
}
|
||||
|
||||
bool crypt_volume_key_is_uploaded(const struct volume_key *vk)
|
||||
{
|
||||
return vk && vk->uploaded;
|
||||
}
|
||||
|
||||
void crypt_volume_key_set_uploaded(struct volume_key *vk)
|
||||
{
|
||||
assert(vk);
|
||||
|
||||
vk->uploaded = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user