diff options
author | Allen Webb <allenwebb@google.com> | 2018-11-09 09:42:53 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-11-15 13:16:06 -0800 |
commit | 1c95cff7463ef29bd0c6d087ce8c3d7e17f94c6a (patch) | |
tree | 90de208cb94b874a8fc3a8a1f1082116e908cc48 /include/pinweaver_tpm_imports.h | |
parent | 268b07da45535033ae39240e958fc00386e37684 (diff) | |
download | chrome-ec-1c95cff7463ef29bd0c6d087ce8c3d7e17f94c6a.tar.gz |
cr50: Add extern "C" to headers used by future fuzzing target.
BRANCH=None
BUG=None
TEST=make -j buildall
Change-Id: Icf2cfb6a2657064c10721c0e527d24fbb3be6ab3
Signed-off-by: Allen Webb <allenwebb@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1330102
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Diffstat (limited to 'include/pinweaver_tpm_imports.h')
-rw-r--r-- | include/pinweaver_tpm_imports.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/pinweaver_tpm_imports.h b/include/pinweaver_tpm_imports.h index 879bb6bbb8..f1ecd24202 100644 --- a/include/pinweaver_tpm_imports.h +++ b/include/pinweaver_tpm_imports.h @@ -16,6 +16,10 @@ #include <stddef.h> #include <stdint.h> +#ifdef __cplusplus +extern "C" { +#endif + /* This is used to get the storage seed from the TPM implementation so * TPM_Clear() will break the keys used by PinWeaver so that any metadata * that persists on the machine storage is unusable by attackers. @@ -28,4 +32,8 @@ void get_storage_seed(void *buf, size_t *len); uint8_t get_current_pcr_digest(const uint8_t bitmask[2], uint8_t sha256_of_selected_pcr[32]); +#ifdef __cplusplus +} +#endif + #endif /* __CROS_EC_INCLUDE_PINWEAVER_TPM_IMPORTS_H */ |