summaryrefslogtreecommitdiff
path: root/src/shared/tpm2-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-10-11 18:20:14 +0200
committerLennart Poettering <lennart@poettering.net>2023-01-17 09:42:16 +0100
commit15c591d1e2b555070f540cafb1b3d1e564e3410a (patch)
treefeddb449b26d1fb6c32d470ceaff5c688e421dd6 /src/shared/tpm2-util.h
parente4481cc512f48d423115b10d4ae1c8e1381ff84b (diff)
downloadsystemd-15c591d1e2b555070f540cafb1b3d1e564e3410a.tar.gz
tpm2-util: split out code that extends a PCR from pcrphase
This way we can reuse it later outside of pcrphase
Diffstat (limited to 'src/shared/tpm2-util.h')
-rw-r--r--src/shared/tpm2-util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/tpm2-util.h b/src/shared/tpm2-util.h
index 6d83281be0..4cab52a949 100644
--- a/src/shared/tpm2-util.h
+++ b/src/shared/tpm2-util.h
@@ -70,6 +70,8 @@ static inline void Esys_Freep(void *p) {
int tpm2_get_good_pcr_banks(ESYS_CONTEXT *c, uint32_t pcr_mask, TPMI_ALG_HASH **ret_banks);
int tpm2_get_good_pcr_banks_strv(ESYS_CONTEXT *c, uint32_t pcr_mask, char ***ret);
+int tpm2_extend_bytes(ESYS_CONTEXT *c, char **banks, unsigned pcr_index, const void *data, size_t sz);
+
#else
struct tpm2_context;
#endif