diff options
author | Dan Streetman <ddstreet@ieee.org> | 2023-08-22 01:18:40 +0200 |
---|---|---|
committer | Dan Streetman <ddstreet@ieee.org> | 2023-08-24 18:35:58 +0200 |
commit | 26d8d71fa5fc9d620899e3940ad246485991e632 (patch) | |
tree | 5b457216f67ced3ee741c018f3e217e100725403 /src/shared/tpm2-util.h | |
parent | tpm2: remove unnecessary void* cast (diff) | |
download | systemd-26d8d71fa5fc9d620899e3940ad246485991e632.tar.xz systemd-26d8d71fa5fc9d620899e3940ad246485991e632.zip |
tpm2: add tpm2_pcr_values_has_(any|all)_values() functions
Diffstat (limited to '')
-rw-r--r-- | src/shared/tpm2-util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/tpm2-util.h b/src/shared/tpm2-util.h index e62a3c30e1..0fd376a2e6 100644 --- a/src/shared/tpm2-util.h +++ b/src/shared/tpm2-util.h @@ -83,6 +83,8 @@ typedef struct { } bool tpm2_pcr_value_valid(const Tpm2PCRValue *pcr_value); +bool tpm2_pcr_values_has_any_values(const Tpm2PCRValue *pcr_values, size_t n_pcr_values); +bool tpm2_pcr_values_has_all_values(const Tpm2PCRValue *pcr_values, size_t n_pcr_values); int tpm2_pcr_value_from_string(const char *arg, Tpm2PCRValue *ret_pcr_value); char *tpm2_pcr_value_to_string(const Tpm2PCRValue *pcr_value); |