Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sgxwallet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董子豪
sgxwallet
Commits
8a3cdb12
Unverified
Commit
8a3cdb12
authored
Oct 15, 2020
by
Oleh Nikolaiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-3346 fix detecting sgx mode
parent
1c56120c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
SGXWalletServer.cpp
SGXWalletServer.cpp
+1
-1
common.h
common.h
+1
-1
secure_enclave.c
secure_enclave/secure_enclave.c
+1
-1
No files found.
SGXWalletServer.cpp
View file @
8a3cdb12
...
...
@@ -149,7 +149,7 @@ int SGXWalletServer::initHttpsServer(bool _checkCerts) {
int
numThreads
=
64
;
#if
SGX_MODE ==
SIM
#if
def SGX_HW_
SIM
numThreads
=
16
;
#endif
...
...
common.h
View file @
8a3cdb12
...
...
@@ -101,7 +101,7 @@ BOOST_THROW_EXCEPTION(runtime_error(__ERR_STRING__)); \
extern
std
::
shared_timed_mutex
initMutex
;
extern
uint64_t
initTime
;
#if
SGX_MODE ==
SIM
#if
def SGX_HW_
SIM
#define ENCLAVE_RESTART_PERIOD_S 5
#else
#define ENCLAVE_RESTART_PERIOD_S 60 * 10
...
...
secure_enclave/secure_enclave.c
View file @
8a3cdb12
...
...
@@ -163,7 +163,7 @@ void trustedEnclaveInit(uint64_t _logLevel) {
LOG_INFO
(
"SECURITY WARNING: sgxwallet is running in INSECURE DEBUG MODE! NEVER USE IN PRODUCTION!"
);
#endif
#if
SGX_MODE ==
SIM
#if
def SGX_HW_
SIM
LOG_INFO
(
"SECURITY WARNING: sgxwallet is running in INSECURE SIMULATION MODE! NEVER USE IN PRODUCTION!"
);
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment