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
84111099
Unverified
Commit
84111099
authored
5 years ago
by
kladko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-2341 Added tags for older commits
parent
7525aa5a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
25 deletions
+25
-25
SGXRegistrationServer.cpp
SGXRegistrationServer.cpp
+2
-2
SGXRegistrationServer.h
SGXRegistrationServer.h
+1
-1
abstractregserver.h
abstractregserver.h
+4
-4
start.sh
docker/start.sh
+18
-18
No files found.
SGXRegistrationServer.cpp
View file @
84111099
...
...
@@ -164,13 +164,13 @@ Json::Value GetSertificateImpl(const string &hash) {
}
Json
::
Value
SGXRegistrationServer
::
s
ignCertificate
(
const
string
&
csr
)
{
Json
::
Value
SGXRegistrationServer
::
S
ignCertificate
(
const
string
&
csr
)
{
spdlog
::
info
(
"Enter signCertificate "
);
lock_guard
<
recursive_mutex
>
lock
(
m
);
return
signCertificateImpl
(
csr
,
autoSign
);
}
Json
::
Value
SGXRegistrationServer
::
g
etCertificate
(
const
string
&
hash
)
{
Json
::
Value
SGXRegistrationServer
::
G
etCertificate
(
const
string
&
hash
)
{
lock_guard
<
recursive_mutex
>
lock
(
m
);
return
GetSertificateImpl
(
hash
);
}
...
...
This diff is collapsed.
Click to expand it.
SGXRegistrationServer.h
View file @
84111099
...
...
@@ -42,7 +42,7 @@ public:
void
set_cert_created
(
bool
b
);
virtual
Json
::
Value
SignCertific
Ж
ate
(
const
std
::
string
&
csr
);
virtual
Json
::
Value
SignCertificate
(
const
std
::
string
&
csr
);
virtual
Json
::
Value
GetCertificate
(
const
std
::
string
&
hash
);
};
...
...
This diff is collapsed.
Click to expand it.
abstractregserver.h
View file @
84111099
...
...
@@ -39,16 +39,16 @@ public:
inline
virtual
void
signCertificateI
(
const
Json
::
Value
&
request
,
Json
::
Value
&
response
)
{
std
::
cerr
<<
"signCertificateI in abstr server "
<<
std
::
endl
;
response
=
this
->
signCertificate
(
request
[
"certificate"
].
asString
());
response
=
this
->
SignCertificate
(
request
[
"certificate"
].
asString
());
}
inline
virtual
void
getCertificateI
(
const
Json
::
Value
&
request
,
Json
::
Value
&
response
)
{
response
=
this
->
getCertificate
(
request
[
"hash"
].
asString
());
response
=
this
->
GetCertificate
(
request
[
"hash"
].
asString
());
}
virtual
Json
::
Value
s
ignCertificate
(
const
std
::
string
&
cert
)
=
0
;
virtual
Json
::
Value
g
etCertificate
(
const
std
::
string
&
hash
)
=
0
;
virtual
Json
::
Value
S
ignCertificate
(
const
std
::
string
&
cert
)
=
0
;
virtual
Json
::
Value
G
etCertificate
(
const
std
::
string
&
hash
)
=
0
;
};
...
...
This diff is collapsed.
Click to expand it.
docker/start.sh
View file @
84111099
...
...
@@ -5,25 +5,25 @@ cd /usr/src/sdk;
echo
$1
if
[
"
$1
"
=
-t
]
;
then
set
-e
./testw
[
bls-key-encrypt]
./testw
[
bls-key-encrypt-decrypt]
./testw
[
dkg-gen]
./testw
[
dkg-pub_shares]
./testw
[
dkg-verify]
./testw
[
ecdsa_test]
./testw
[
test_test]
./testw
[
get_pub_ecdsa_key_test]
./testw
[
bls_dkg]
./testw
[
api_test]
./testw
[
getServerStatus_test]
./testw
[
dkg_api_test]
./testw
[
is_poly_test]
./testw
[
AES-encrypt-decrypt]
./testw
[
ecdsa_api_test]
./testw
[
dkg-encr_sshares]
#
./testw [bls-key-encrypt]
#
./testw [bls-key-encrypt-decrypt]
#
./testw [dkg-gen]
#
./testw [dkg-pub_shares]
#
./testw [dkg-verify]
#
./testw [ecdsa_test]
#
./testw [test_test]
#
./testw [get_pub_ecdsa_key_test]
#
./testw [bls_dkg]
#
./testw [api_test]
#
./testw [getServerStatus_test]
#
./testw [dkg_api_test]
#
./testw [is_poly_test]
#
./testw [AES-encrypt-decrypt]
#
./testw [ecdsa_api_test]
#
./testw [dkg-encr_sshares]
#./testw [bls_sign]
/testw
[
many_threads_test]
./testw
[
aes_dkg]
#
/testw [many_threads_test]
#
./testw [aes_dkg]
else
./sgxwallet
$1
$2
$3
$4
fi
...
...
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