summaryrefslogtreecommitdiff
path: root/include/pinweaver.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/pinweaver.h')
-rw-r--r--include/pinweaver.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/pinweaver.h b/include/pinweaver.h
index 1f373ba582..21571da7b0 100644
--- a/include/pinweaver.h
+++ b/include/pinweaver.h
@@ -13,6 +13,10 @@
#include <common.h>
#include <pinweaver_types.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define PW_STORAGE_VERSION 0
#define BITS_PER_LEVEL_MIN 1
@@ -177,4 +181,8 @@ int log_remove_leaf(struct label_t label, const uint8_t root[PW_HASH_SIZE]);
int log_auth(struct label_t label, const uint8_t root[PW_HASH_SIZE], int code,
struct pw_timestamp_t timestamp);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __CROS_EC_INCLUDE_PINWEAVER_H */