mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Reduce code duplication in kernel keyring utilities.
This commit is contained in:
committed by
Milan Broz
parent
c497d8baa9
commit
f147c823ea
@@ -328,7 +328,7 @@ static int get_passphrase_by_keyring(struct crypt_device *cd,
|
||||
assert(r_passphrase_size);
|
||||
|
||||
if (!kc->i_passphrase) {
|
||||
r = keyring_get_passphrase(kc->u.kr.key_description, &kc->i_passphrase, &kc->i_passphrase_size);
|
||||
r = keyring_get_user_key(kc->u.kr.key_description, &kc->i_passphrase, &kc->i_passphrase_size);
|
||||
if (r < 0) {
|
||||
log_err(cd, _("Failed to read passphrase from keyring."));
|
||||
kc->error = -EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user