Changes to allow compilation of SetCommandCodeAuditStatus.c
BUG=none
TEST=compilation succeeds:
cc -Wall -Werror -c -o /dev/null SetCommandCodeAuditStatus.c
Change-Id: Ica56ed8e4f80ae3ee996c49bcda18e9b0e453757
Signed-off-by: Vadim Bendebury <[email protected]>
Reviewed-on: https://chromium-review.googlesource.com/274664
Reviewed-by: Utkarsh Sanghi <[email protected]>
diff --git a/CommandAudit_fp.h b/CommandAudit_fp.h
index c63e0c1..25a6711 100644
--- a/CommandAudit_fp.h
+++ b/CommandAudit_fp.h
@@ -12,6 +12,9 @@
UINT32 count, // IN: count of returned TPM_CC
TPML_CC *commandList // OUT: list of TPM_CC
);
+BOOL CommandAuditClear(
+ TPM_CC commandCode // IN: command code
+ );
void CommandAuditGetDigest(
TPM2B_DIGEST *digest // OUT: command digest
);
diff --git a/SetAlgorithmSet_fp.h b/SetAlgorithmSet_fp.h
index 2a84125..e2d0ea7 100644
--- a/SetAlgorithmSet_fp.h
+++ b/SetAlgorithmSet_fp.h
@@ -8,7 +8,7 @@
#define __TPM2_SETALGORITHMSET_FP_H_
typedef struct {
- UINT32 algorithmSet;
+ UINT32 algorithmSet;
} SetAlgorithmSet_In;
TPM_RC TPM2_SetAlgorithmSet(
diff --git a/SetCommandCodeAuditStatus_fp.h b/SetCommandCodeAuditStatus_fp.h
new file mode 100644
index 0000000..f8d3cff
--- /dev/null
+++ b/SetCommandCodeAuditStatus_fp.h
@@ -0,0 +1,20 @@
+/*
+ * 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_SETCOMMANDCODEAUDITSTATUS_FP_H_
+#define __TPM2_SETCOMMANDCODEAUDITSTATUS_FP_H_
+
+typedef struct {
+ TPML_CC clearList;
+ TPML_CC setList;
+ TPM_ALG_ID auditAlg;
+} SetCommandCodeAuditStatus_In;
+
+TPM_RC TPM2_SetCommandCodeAuditStatus(
+ SetCommandCodeAuditStatus_In *in // IN: input parameter list
+);
+
+#endif // __TPM2_SETCOMMANDCODEAUDITSTATUS_FP_H_
diff --git a/TPM_Types.h b/TPM_Types.h
index 98f540a..1765610 100644
--- a/TPM_Types.h
+++ b/TPM_Types.h
@@ -1412,6 +1412,7 @@
RC_Rewrap_oldParent,
RC_SequenceComplete_sequenceHandle,
RC_SequenceUpdate_sequenceHandle,
+ RC_SetCommandCodeAuditStatus_auditAlg,
};
enum {