]> git.ipfire.org Git - thirdparty/grub.git/commit
luks2: Add idx member to struct grub_luks2_keyslot/segment/digest
authorGlenn Washburn <development@efficientek.com>
Tue, 8 Dec 2020 22:45:37 +0000 (16:45 -0600)
committerDaniel Kiper <daniel.kiper@oracle.com>
Sat, 12 Dec 2020 00:19:04 +0000 (01:19 +0100)
commit1f006c4c053f7f9b374959553be0bda0db528935
tree0f087655c1ee301d66e0375bb64cb7fac612a09b
parent7904c5ce678a3809df5e4562989796f44197c74e
luks2: Add idx member to struct grub_luks2_keyslot/segment/digest

This allows code using these structs to know the named key associated with
these json data structures. In the future we can use these to provide better
error messages to the user.

Get rid of idx local variable in luks2_get_keyslot() which was overloaded to
be used for both keyslot and segment slot keys.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/disk/luks2.c