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
3 years ago
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) {
RETURN_SUCCESS
(
result
)
}
Json
::
Value
SGXRegistrationServer
::
SignCertificate
(
const
string
&
csr
)
{
spdlog
::
info
(
__FUNCTION__
);
return
signCertificateImpl
(
csr
,
autoSign
);
...
...
@@ -161,7 +160,6 @@ Json::Value SGXRegistrationServer::GetCertificate(const string &hash) {
return
getCertificateImpl
(
hash
);
}
void
SGXRegistrationServer
::
initRegistrationServer
(
bool
_autoSign
)
{
httpServer
=
make_shared
<
HttpServer
>
(
BASE_PORT
+
1
);
server
=
make_shared
<
SGXRegistrationServer
>
(
*
httpServer
,
...
...
@@ -190,7 +188,6 @@ int SGXRegistrationServer::exitServer() {
return
0
;
}
shared_ptr
<
SGXRegistrationServer
>
SGXRegistrationServer
::
getServer
()
{
CHECK_STATE
(
server
);
return
server
;
...
...
This diff is collapsed.
Click to expand it.
SGXRegistrationServer.h
View file @
b8801ae8
...
...
@@ -42,20 +42,16 @@ class SGXRegistrationServer : public AbstractRegServer {
recursive_mutex
m
;
bool
autoSign
;
static
shared_ptr
<
HttpServer
>
httpServer
;
static
shared_ptr
<
SGXRegistrationServer
>
server
;
public
:
static
shared_ptr
<
SGXRegistrationServer
>
getServer
();
SGXRegistrationServer
(
AbstractServerConnector
&
connector
,
serverVersion_t
type
,
bool
_autoSign
=
false
);
virtual
Json
::
Value
SignCertificate
(
const
string
&
csr
);
virtual
Json
::
Value
GetCertificate
(
const
string
&
hash
);
...
...
This diff is collapsed.
Click to expand it.
ServerInit.cpp
View file @
b8801ae8
...
...
@@ -162,7 +162,6 @@ uint64_t initEnclave() {
void
initAll
(
uint32_t
_logLevel
,
bool
_checkCert
,
bool
_checkZMQSig
,
bool
_autoSign
,
bool
_generateTestKeys
)
{
static
atomic
<
bool
>
sgxServerInited
(
false
);
static
mutex
initMutex
;
enclaveLogLevel
=
_logLevel
;
...
...
This diff is collapsed.
Click to expand it.
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