cryptsetup: port PKCS#11 code to read key file with read_full_file()

Now that we can read from offsets/with size, let's port the cryptsetup
PKCS#11 key file logic over to read_full_file_full().
This commit is contained in:
Lennart Poettering
2020-12-01 14:17:47 +01:00
parent 986311c2da
commit 4d1bb8f397
3 changed files with 19 additions and 2 deletions
+1
View File
@@ -636,6 +636,7 @@ static int attach_luks_or_plain_or_bitlk(
bool processed = false;
r = decrypt_pkcs11_key(
name,
friendly,
arg_pkcs11_uri,
key_file, arg_keyfile_size, arg_keyfile_offset,