Changes to allow compilation of Create.c
BUG=none
TEST=compilation succeeds:
cc -Wall -Werror -c -o /dev/null Create.c
Change-Id: I78af6cdd2a5f2860f01779c9e88d23e1225b201d
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/274004
Reviewed-by: Utkarsh Sanghi <usanghi@chromium.org>
diff --git a/Create_fp.h b/Create_fp.h
new file mode 100644
index 0000000..2243bfb
--- /dev/null
+++ b/Create_fp.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright 2015 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef __TPM2_CREATE_FP_H
+#define __TPM2_CREATE_FP_H
+
+typedef struct {
+ TPM2B_PUBLIC inPublic;
+ TPMI_DH_OBJECT parentHandle;
+ TPML_PCR_SELECTION creationPCR;
+ TPM2B_DATA outsideInfo;
+ TPM2B_SENSITIVE_CREATE inSensitive;
+} Create_In;
+
+typedef struct {
+ TPM2B_PUBLIC outPublic;
+ TPM2B_CREATION_DATA creationData;
+ TPM2B_DIGEST creationHash;
+ TPMT_TK_CREATION creationTicket;
+ TPM2B_PRIVATE outPrivate;
+} Create_Out;
+
+TPM_RC TPM2_Create(
+ Create_In *in, // IN: input parameter list
+ Create_Out *out // OUT: output parameter list
+ );
+
+#endif // __TPM2_CREATE_FP_H