mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Refactor and unify naming conventions for internal keyring helpers.
Functions related to uploading/unlinking volume keys in user requested kernel keyrings are named as follows: crypt_single_volume_key_load_in_custom_keyring crypt_volume_key_load_in_custom_keyring crypt_unlink_key_from_custom_keyring helpers for unlinking LUKS2 volume keys from thread keyring: crypt_unlink_key_from_thread_keyring crypt_unlink_key_by_description_from_thread_keyring
This commit is contained in:
committed by
Milan Broz
parent
c9edd942e8
commit
5615488196
@@ -2894,7 +2894,7 @@ int LUKS2_deactivate(struct crypt_device *cd, const char *name, struct luks2_hdr
|
||||
tgt = &dmdc.segment;
|
||||
while (tgt) {
|
||||
if (tgt->type == DM_CRYPT)
|
||||
crypt_drop_keyring_key_by_description(cd, crypt_volume_key_description(tgt->u.crypt.vk),
|
||||
crypt_unlink_key_by_description_from_thread_keyring(cd, crypt_volume_key_description(tgt->u.crypt.vk),
|
||||
LOGON_KEY);
|
||||
tgt = tgt->next;
|
||||
}
|
||||
@@ -2930,7 +2930,7 @@ int LUKS2_deactivate(struct crypt_device *cd, const char *name, struct luks2_hdr
|
||||
tgt = &dmdc.segment;
|
||||
while (tgt) {
|
||||
if (tgt->type == DM_CRYPT)
|
||||
crypt_drop_keyring_key_by_description(cd, crypt_volume_key_description(tgt->u.crypt.vk),
|
||||
crypt_unlink_key_by_description_from_thread_keyring(cd, crypt_volume_key_description(tgt->u.crypt.vk),
|
||||
LOGON_KEY);
|
||||
tgt = tgt->next;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user