summaryrefslogtreecommitdiffstats
path: root/src/shared/tpm2-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-04-16 13:45:00 +0200
committerLennart Poettering <lennart@poettering.net>2024-04-18 18:12:23 +0200
commit98ef5f8419ade95b7df0022ced6559cf47b80b83 (patch)
treeb5400560365d176593814d00d685f500b7904954 /src/shared/tpm2-util.h
parenttpm2-util: import two more symbols from tpm2-tss libraries (diff)
downloadsystemd-98ef5f8419ade95b7df0022ced6559cf47b80b83.tar.xz
systemd-98ef5f8419ade95b7df0022ced6559cf47b80b83.zip
tpm2: export tpm2_get_name()
We later want to use this from pcrlock.c, hence export it.
Diffstat (limited to 'src/shared/tpm2-util.h')
-rw-r--r--src/shared/tpm2-util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/tpm2-util.h b/src/shared/tpm2-util.h
index f9f29e310d..7249ad04ab 100644
--- a/src/shared/tpm2-util.h
+++ b/src/shared/tpm2-util.h
@@ -131,6 +131,7 @@ int tpm2_marshal_nv_public(const TPM2B_NV_PUBLIC *nv_public, void **ret, size_t
int tpm2_unmarshal_nv_public(const void *data, size_t size, TPM2B_NV_PUBLIC *ret_nv_public);
int tpm2_marshal_blob(const TPM2B_PUBLIC *public, const TPM2B_PRIVATE *private, const TPM2B_ENCRYPTED_SECRET *seed, void **ret_blob, size_t *ret_blob_size);
int tpm2_unmarshal_blob(const void *blob, size_t blob_size, TPM2B_PUBLIC *ret_public, TPM2B_PRIVATE *ret_private, TPM2B_ENCRYPTED_SECRET *ret_seed);
+int tpm2_get_name(Tpm2Context *c, const Tpm2Handle *handle, TPM2B_NAME **ret_name);
bool tpm2_supports_alg(Tpm2Context *c, TPM2_ALG_ID alg);
bool tpm2_supports_command(Tpm2Context *c, TPM2_CC command);