]> git.ipfire.org Git - thirdparty/systemd.git/commit
tpm2: add tpm2_index_to_handle() and tpm2_index_from_handle() 29234/head
authorDan Streetman <ddstreet@ieee.org>
Fri, 30 Jun 2023 16:52:10 +0000 (12:52 -0400)
committerDan Streetman <ddstreet@ieee.org>
Fri, 29 Sep 2023 14:14:28 +0000 (10:14 -0400)
commit13cf98f3623866c18e77488e405862aedb1ec5f5
treea30cb81734798166e3f9aaf2d47f9186159fba36
parent1eff4242958ca355e2cee459a7436450900b7941
tpm2: add tpm2_index_to_handle() and tpm2_index_from_handle()

Adjust the tpm2_esys_handle_from_tpm_handle() function into better-named
tpm2_index_to_handle(), which operates like tpm2_get_srk() but allows using any
handle index. Also add matching tpm2_index_from_handle().

Also change the references to 'location' in tpm2_persist_handle() to more
appropriate 'handle index'.
src/shared/tpm2-util.c
src/shared/tpm2-util.h