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
b8801ae8
Unverified
Commit
b8801ae8
authored
Jun 22, 2021
by
Oleh Nikolaiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-3951 cleanup
parent
1d331742
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
8 deletions
+0
-8
SGXRegistrationServer.cpp
SGXRegistrationServer.cpp
+0
-3
SGXRegistrationServer.h
SGXRegistrationServer.h
+0
-4
ServerInit.cpp
ServerInit.cpp
+0
-1
No files found.
SGXRegistrationServer.cpp
View file @
b8801ae8
...
@@ -150,7 +150,6 @@ Json::Value getCertificateImpl(const string &hash) {
...
@@ -150,7 +150,6 @@ Json::Value getCertificateImpl(const string &hash) {
RETURN_SUCCESS
(
result
)
RETURN_SUCCESS
(
result
)
}
}
Json
::
Value
SGXRegistrationServer
::
SignCertificate
(
const
string
&
csr
)
{
Json
::
Value
SGXRegistrationServer
::
SignCertificate
(
const
string
&
csr
)
{
spdlog
::
info
(
__FUNCTION__
);
spdlog
::
info
(
__FUNCTION__
);
return
signCertificateImpl
(
csr
,
autoSign
);
return
signCertificateImpl
(
csr
,
autoSign
);
...
@@ -161,7 +160,6 @@ Json::Value SGXRegistrationServer::GetCertificate(const string &hash) {
...
@@ -161,7 +160,6 @@ Json::Value SGXRegistrationServer::GetCertificate(const string &hash) {
return
getCertificateImpl
(
hash
);
return
getCertificateImpl
(
hash
);
}
}
void
SGXRegistrationServer
::
initRegistrationServer
(
bool
_autoSign
)
{
void
SGXRegistrationServer
::
initRegistrationServer
(
bool
_autoSign
)
{
httpServer
=
make_shared
<
HttpServer
>
(
BASE_PORT
+
1
);
httpServer
=
make_shared
<
HttpServer
>
(
BASE_PORT
+
1
);
server
=
make_shared
<
SGXRegistrationServer
>
(
*
httpServer
,
server
=
make_shared
<
SGXRegistrationServer
>
(
*
httpServer
,
...
@@ -190,7 +188,6 @@ int SGXRegistrationServer::exitServer() {
...
@@ -190,7 +188,6 @@ int SGXRegistrationServer::exitServer() {
return
0
;
return
0
;
}
}
shared_ptr
<
SGXRegistrationServer
>
SGXRegistrationServer
::
getServer
()
{
shared_ptr
<
SGXRegistrationServer
>
SGXRegistrationServer
::
getServer
()
{
CHECK_STATE
(
server
);
CHECK_STATE
(
server
);
return
server
;
return
server
;
...
...
SGXRegistrationServer.h
View file @
b8801ae8
...
@@ -42,20 +42,16 @@ class SGXRegistrationServer : public AbstractRegServer {
...
@@ -42,20 +42,16 @@ class SGXRegistrationServer : public AbstractRegServer {
recursive_mutex
m
;
recursive_mutex
m
;
bool
autoSign
;
bool
autoSign
;
static
shared_ptr
<
HttpServer
>
httpServer
;
static
shared_ptr
<
HttpServer
>
httpServer
;
static
shared_ptr
<
SGXRegistrationServer
>
server
;
static
shared_ptr
<
SGXRegistrationServer
>
server
;
public
:
public
:
static
shared_ptr
<
SGXRegistrationServer
>
getServer
();
static
shared_ptr
<
SGXRegistrationServer
>
getServer
();
SGXRegistrationServer
(
AbstractServerConnector
&
connector
,
serverVersion_t
type
,
bool
_autoSign
=
false
);
SGXRegistrationServer
(
AbstractServerConnector
&
connector
,
serverVersion_t
type
,
bool
_autoSign
=
false
);
virtual
Json
::
Value
SignCertificate
(
const
string
&
csr
);
virtual
Json
::
Value
SignCertificate
(
const
string
&
csr
);
virtual
Json
::
Value
GetCertificate
(
const
string
&
hash
);
virtual
Json
::
Value
GetCertificate
(
const
string
&
hash
);
...
...
ServerInit.cpp
View file @
b8801ae8
...
@@ -162,7 +162,6 @@ uint64_t initEnclave() {
...
@@ -162,7 +162,6 @@ uint64_t initEnclave() {
void
initAll
(
uint32_t
_logLevel
,
bool
_checkCert
,
void
initAll
(
uint32_t
_logLevel
,
bool
_checkCert
,
bool
_checkZMQSig
,
bool
_autoSign
,
bool
_generateTestKeys
)
{
bool
_checkZMQSig
,
bool
_autoSign
,
bool
_generateTestKeys
)
{
static
atomic
<
bool
>
sgxServerInited
(
false
);
static
atomic
<
bool
>
sgxServerInited
(
false
);
static
mutex
initMutex
;
static
mutex
initMutex
;
enclaveLogLevel
=
_logLevel
;
enclaveLogLevel
=
_logLevel
;
...
...
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