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
38a5ec5d
Unverified
Commit
38a5ec5d
authored
Sep 03, 2019
by
a72d9e2bad9edfd58d6c0248c12c953b71d409d2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warnings
parent
b0b05f80
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
Makefile.am
Makefile.am
+1
-1
Makefile.am
secure_enclave/Makefile.am
+1
-1
sgxd.c
sgxd.c
+2
-2
No files found.
Makefile.am
View file @
38a5ec5d
...
...
@@ -45,7 +45,7 @@ secure_enclave.edl: secure_enclave/secure_enclave.edl
## AM_CFLAGS =
## AM_CXXFLAGS =
AM_CPPFLAGS
+=
-DSKALE_SGX
=
1
-DBINARY_OUTPUT
=
1
-Ileveldb
/include
-IlibBLS
/bls
-IlibBLS
/libff
-IlibBLS
-fno-builtin-memset
$(GMP_CPPFLAGS)
AM_CPPFLAGS
+=
-
Wall
-
DSKALE_SGX
=
1
-DBINARY_OUTPUT
=
1
-Ileveldb
/include
-IlibBLS
/bls
-IlibBLS
/libff
-IlibBLS
-fno-builtin-memset
$(GMP_CPPFLAGS)
## Additional targets to remove with 'make clean'. You must list
## any edger8r generated files here.
...
...
secure_enclave/Makefile.am
View file @
38a5ec5d
...
...
@@ -63,7 +63,7 @@ ENCLAVE_KEY=$(ENCLAVE)_private.pem
## Additional Automake flags needed to build the enclave.
##
AM_CPPFLAGS
+=
$(TGMP_CPPFLAGS)
-I
../trusted_libff
-I
../sgx-sdk-build/sgxsdk/include/libcxx
\
AM_CPPFLAGS
+=
-Wall
$(TGMP_CPPFLAGS)
-I
../trusted_libff
-I
../sgx-sdk-build/sgxsdk/include/libcxx
\
-I
../intel-sgx-ssl/Linux/package/include
AM_CXXFLAGS
+=
-fno-builtin
...
...
sgxd.c
View file @
38a5ec5d
...
...
@@ -73,7 +73,7 @@ unsigned char *carray2Hex(const uint8_t *d, int _len) {
uint8_t
*
hex2carray
(
unsigned
char
*
_hex
,
uint64_t
*
_bin_len
)
{
uint64_t
len
=
strlen
(
_hex
);
uint64_t
len
=
strlen
(
(
char
*
)
_hex
);
if
(
len
==
0
&&
len
%
2
==
1
)
...
...
@@ -182,7 +182,7 @@ int main(int argc, char *argv[]) {
unsigned
char
*
errMsg
=
calloc
(
1024
,
1
);
strncpy
(
keyArray
,
key
,
128
);
strncpy
(
(
char
)
*
keyArray
,
(
char
*
)
key
,
128
);
int
err_status
=
0
;
...
...
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