Allow linking VK to a user-specified keyring.

Add a new API crypt_set_keyring_to_link nad CLI option
--link-vk-to-keyring. This allows the user to specify ID of the keyring
where the VK should be linked.
This commit is contained in:
Daniel Zatovic
2023-03-10 11:19:33 +01:00
parent 1b25cc5ed7
commit 138da3e73a
9 changed files with 83 additions and 0 deletions

View File

@@ -3028,6 +3028,14 @@ void *crypt_safe_realloc(void *data, size_t size);
*/
void crypt_safe_memzero(void *data, size_t size);
/**
* Link the volume key to the specified keyring.
*
* @param cd crypt device handle
* @param keyring_to_link_vk the ID of the keyring in which volume key should be linked
*/
void crypt_set_keyring_to_link(struct crypt_device *cd, int keyring_to_link_vk);
/** @} */
#ifdef __cplusplus