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
f9174183
Unverified
Commit
f9174183
authored
Apr 16, 2020
by
kladko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-2184 fix memory
parent
90d7eaba
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
4 deletions
+3
-4
SEKManager.cpp
SEKManager.cpp
+1
-1
SEKManager.h
SEKManager.h
+1
-1
ServerInit.cpp
ServerInit.cpp
+1
-1
testw.py
testw.py
+0
-1
No files found.
SEKManager.cpp
View file @
f9174183
...
@@ -224,7 +224,7 @@ void enter_SEK(){
...
@@ -224,7 +224,7 @@ void enter_SEK(){
LevelDB
::
getLevelDb
()
->
writeDataUnique
(
"SEK"
,
hexEncrKey
.
data
());
LevelDB
::
getLevelDb
()
->
writeDataUnique
(
"SEK"
,
hexEncrKey
.
data
());
}
}
void
init
_
SEK
(){
void
initSEK
(){
std
::
shared_ptr
<
std
::
string
>
encr_SEK_ptr
=
LevelDB
::
getLevelDb
()
->
readString
(
"SEK"
);
std
::
shared_ptr
<
std
::
string
>
encr_SEK_ptr
=
LevelDB
::
getLevelDb
()
->
readString
(
"SEK"
);
if
(
encr_SEK_ptr
==
nullptr
){
if
(
encr_SEK_ptr
==
nullptr
){
spdlog
::
error
(
"SEK was not created yet. Going to create SEK"
);
spdlog
::
error
(
"SEK was not created yet. Going to create SEK"
);
...
...
SEKManager.h
View file @
f9174183
...
@@ -46,7 +46,7 @@ void set_SEK(std::shared_ptr<std::string> hex_encr_SEK);
...
@@ -46,7 +46,7 @@ void set_SEK(std::shared_ptr<std::string> hex_encr_SEK);
EXTERNC
void
enter_SEK
();
EXTERNC
void
enter_SEK
();
EXTERNC
void
init
_
SEK
();
EXTERNC
void
initSEK
();
#endif //SGXD_SEKMANAGER_H
#endif //SGXD_SEKMANAGER_H
ServerInit.cpp
View file @
f9174183
...
@@ -116,7 +116,7 @@ void initAll(bool _checkCert, bool _autoSign) {
...
@@ -116,7 +116,7 @@ void initAll(bool _checkCert, bool _autoSign) {
sgxServerInited
=
1
;
sgxServerInited
=
1
;
initEnclave
();
initEnclave
();
initUserSpace
();
initUserSpace
();
init
_
SEK
();
initSEK
();
if
(
useHTTPS
)
{
if
(
useHTTPS
)
{
SGXWalletServer
::
initHttpsServer
(
_checkCert
);
SGXWalletServer
::
initHttpsServer
(
_checkCert
);
...
...
testw.py
View file @
f9174183
...
@@ -29,7 +29,6 @@ username = getpass.getuser()
...
@@ -29,7 +29,6 @@ username = getpass.getuser()
assert
username
==
"root"
topDir
=
os
.
getcwd
()
+
"/sgxwallet"
topDir
=
os
.
getcwd
()
+
"/sgxwallet"
print
(
"Starting build push"
)
print
(
"Starting build push"
)
...
...
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