summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ipc/gatekeeper_ipc.cpp6
-rw-r--r--trusty_gatekeeper.cpp10
-rw-r--r--trusty_gatekeeper.h1
3 files changed, 4 insertions, 13 deletions
diff --git a/ipc/gatekeeper_ipc.cpp b/ipc/gatekeeper_ipc.cpp
index 3dd2f87..7e6c58b 100644
--- a/ipc/gatekeeper_ipc.cpp
+++ b/ipc/gatekeeper_ipc.cpp
@@ -14,17 +14,11 @@
* limitations under the License.
*/
-// TODO: add guard in header
-extern "C" {
#include <stdlib.h>
-}
-
#include <string.h>
#include <stdio.h>
-#include <trusty_std.h>
#include <trusty_ipc.h>
-
#include <uapi/err.h>
#include "trusty_gatekeeper.h"
diff --git a/trusty_gatekeeper.cpp b/trusty_gatekeeper.cpp
index 024dfb2..a5a9845 100644
--- a/trusty_gatekeeper.cpp
+++ b/trusty_gatekeeper.cpp
@@ -14,19 +14,17 @@
* limitations under the License.
*/
-#include <openssl/hmac.h>
+#include "trusty_gatekeeper.h"
+
+#include <time.h>
#include <uapi/err.h>
-extern "C" {
#include <lib/hwkey/hwkey.h>
#include <lib/keymaster/keymaster.h>
#include <lib/rng/trusty_rng.h>
#include <lib/storage/storage.h>
-#include <trusty_std.h>
-}
-
-#include "trusty_gatekeeper.h"
+#include <openssl/hmac.h>
#define CALLS_BETWEEN_RNG_RESEEDS 32
#define RNG_RESEED_SIZE 64
diff --git a/trusty_gatekeeper.h b/trusty_gatekeeper.h
index 1235feb..2924b34 100644
--- a/trusty_gatekeeper.h
+++ b/trusty_gatekeeper.h
@@ -17,7 +17,6 @@
#ifndef TRUSTY_GATEKEEPER_H_
#define TRUSTY_GATEKEEPER_H_
-#include <trusty_std.h>
#include <stdio.h>
#include <gatekeeper/gatekeeper.h>