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
53d2012a
Unverified
Commit
53d2012a
authored
Apr 29, 2021
by
Oleh Nikolaiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-4110 add ifdef SGX_HW_SIM for sgx_stub functions
parent
8cd2be25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
sgx_stub.c
third_party/intel/sgx_stub.c
+6
-6
No files found.
third_party/intel/sgx_stub.c
View file @
53d2012a
...
...
@@ -161,10 +161,10 @@ static void *_load_symbol(void *handle, const char *symbol, int *status)
static
void
*
_load_libsgx_uae_service
()
{
if
(
l_libsgx_uae_service
==
0
)
{
#ifdef _WIN32
h_libsgx_uae_service
=
LoadLibrary
(
"libsgx_uae_service.dll"
);
#else
#ifdef SGX_HW_SIM
h_libsgx_uae_service
=
dlopen
(
"libsgx_uae_service_sim.so"
,
RTLD_GLOBAL
|
RTLD_NOW
);
#else
h_libsgx_uae_service
=
dlopen
(
"libsgx_uae_service.so"
,
RTLD_GLOBAL
|
RTLD_NOW
);
#endif
l_libsgx_uae_service
=
(
h_libsgx_uae_service
==
NULL
)
?
-
1
:
1
;
}
...
...
@@ -175,10 +175,10 @@ static void *_load_libsgx_uae_service()
static
void
*
_load_libsgx_urts
()
{
if
(
l_libsgx_urts
==
0
)
{
#ifdef _WIN32
h_libsgx_urts
=
LoadLibrary
(
"libsgx_urts.dll"
);
#else
#ifdef SGX_HW_SIM
h_libsgx_urts
=
dlopen
(
"libsgx_urts_sim.so"
,
RTLD_GLOBAL
|
RTLD_NOW
);
#else
h_libsgx_urts
=
dlopen
(
"libsgx_urts.so"
,
RTLD_GLOBAL
|
RTLD_NOW
);
#endif
l_libsgx_urts
=
(
h_libsgx_urts
==
NULL
)
?
-
1
:
1
;
}
...
...
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