Rename internal keyring utilities.

This commit is contained in:
Ondrej Kozina
2023-09-12 12:04:18 +02:00
committed by Milan Broz
parent f147c823ea
commit 748cff228d
3 changed files with 23 additions and 23 deletions

View File

@@ -416,7 +416,7 @@ static int get_key_by_vk_in_keyring(struct crypt_device *cd,
assert(kc && kc->type == CRYPT_KC_TYPE_VK_KEYRING);
assert(r_vk);
r = keyring_read_by_id(kc->u.vk_kr.key_description, &kc->i_volume_key, &kc->i_volume_key_size);
r = keyring_find_and_get_key_by_name(kc->u.vk_kr.key_description, &kc->i_volume_key, &kc->i_volume_key_size);
if (r < 0) {
log_err(cd, _("Failed to read volume key from keyring."));
kc->error = -EINVAL;