From 282fa1bcec006472ecb454d17eb23990f22ba008 Mon Sep 17 00:00:00 2001 From: Haofan Zheng Date: Wed, 19 Jun 2024 01:38:58 -0700 Subject: [PATCH] changes re decent enclave API upgrade --- CMakeLists.txt | 2 +- tests/End2EndLatency/Trusted/End2EndLatTest.hpp | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9b1afcc..bfe17b0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -179,7 +179,7 @@ endif() FetchContent_Declare( git_mbedtls GIT_REPOSITORY https://github.com/zhenghaven/mbedtls.git - GIT_TAG decent-enclave + GIT_TAG decent-enclave-v3.5.2 ) FetchContent_MakeAvailable(git_mbedtls) mbedTLScpp_Decentize_Normal(mbedcrypto) diff --git a/tests/End2EndLatency/Trusted/End2EndLatTest.hpp b/tests/End2EndLatency/Trusted/End2EndLatTest.hpp index 680b8ae..e834864 100644 --- a/tests/End2EndLatency/Trusted/End2EndLatTest.hpp +++ b/tests/End2EndLatency/Trusted/End2EndLatTest.hpp @@ -19,6 +19,7 @@ #include #include +#include #include #include @@ -26,7 +27,6 @@ #include #include #include -#include #include @@ -234,7 +234,7 @@ RunPubSubTest( if (evData == expectedValueBytes) { // 3. If yes, record the time - pubTime.store(DecentEnclave::Trusted::UntrustedTime::Timestamp()); + pubTime.store(DecentEnclave::Common::UntrustedTime::Timestamp()); // 4. Notify the main thread cv.notify_one(); @@ -273,7 +273,7 @@ RunPubSubTest( if (confirmMsg == expectedValue) { // 3. If yes, record the time - subsTime.store(DecentEnclave::Trusted::UntrustedTime::Timestamp()); + subsTime.store(DecentEnclave::Common::UntrustedTime::Timestamp()); // 4. Notify the main thread cv.notify_one(); @@ -334,7 +334,7 @@ RunPubSubTest( ); // 3. Record publish time - uint64_t publishTime = DecentEnclave::Trusted::UntrustedTime::Timestamp(); + uint64_t publishTime = DecentEnclave::Common::UntrustedTime::Timestamp(); // 4. Publish message to publisher contract auto gethPxyCon = Trusted::ComponentConnection::Connect("gethProxy"); @@ -424,7 +424,7 @@ MonitorAndReactTest( if (confirmMsg == expectedValue) { // 3. If yes, record the time - pubTime.store(DecentEnclave::Trusted::UntrustedTime::Timestamp()); + pubTime.store(DecentEnclave::Common::UntrustedTime::Timestamp()); // 4. Publish the same message to subscriber contract // s_cbLogger.Debug("Sending request to GethProxy"); @@ -469,7 +469,7 @@ MonitorAndReactTest( if (confirmMsg == expectedValue) { // 3. If yes, record the time - subsTime.store(DecentEnclave::Trusted::UntrustedTime::Timestamp()); + subsTime.store(DecentEnclave::Common::UntrustedTime::Timestamp()); // 4. Notify the main thread cv.notify_one(); @@ -530,7 +530,7 @@ MonitorAndReactTest( ); // 3. Record publish time - uint64_t publishTime = DecentEnclave::Trusted::UntrustedTime::Timestamp(); + uint64_t publishTime = DecentEnclave::Common::UntrustedTime::Timestamp(); // 4. Publish message to publisher contract auto gethPxyCon = Trusted::ComponentConnection::Connect("gethProxy");