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:
Ondrej Kozina
2025-02-12 16:55:07 +01:00
committed by Milan Broz
parent 9e0bcedbaa
commit 1bec71dbe1
3 changed files with 18 additions and 2 deletions

View File

@@ -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;
}