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
6e96913e
Unverified
Commit
6e96913e
authored
Jun 04, 2020
by
Oleh Nikolaiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-2002 add logic to -n flag
parent
853981a6
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
12 deletions
+8
-12
ECDSACrypto.cpp
ECDSACrypto.cpp
+0
-3
SEKManager.cpp
SEKManager.cpp
+0
-1
SGXWalletServer.cpp
SGXWalletServer.cpp
+3
-0
calculate_version.sh
scripts/calculate_version.sh
+2
-7
sgxwallet.c
sgxwallet.c
+3
-1
No files found.
ECDSACrypto.cpp
View file @
6e96913e
...
...
@@ -144,7 +144,6 @@ string getECDSAPubKey(const char *_encryptedKeyHex) {
bool
verifyECDSASig
(
string
&
pubKeyStr
,
const
char
*
hashHex
,
const
char
*
signatureR
,
const
char
*
signatureS
)
{
bool
result
=
false
;
signature
sig
=
signature_init
();
...
...
@@ -158,8 +157,6 @@ bool verifyECDSASig(string& pubKeyStr, const char *hashHex, const char *signatur
mpz_t
msgMpz
;
mpz_init
(
msgMpz
);
if
(
mpz_set_str
(
msgMpz
,
hashHex
,
16
)
==
-
1
)
{
spdlog
::
error
(
"invalid message hash {}"
,
hashHex
);
goto
clean
;
...
...
SEKManager.cpp
View file @
6e96913e
...
...
@@ -123,7 +123,6 @@ bool check_SEK(std::string SEK){
}
void
gen_SEK
(){
vector
<
char
>
errMsg
(
1024
,
0
);
int
err_status
=
0
;
vector
<
uint8_t
>
encr_SEK
(
1024
,
0
);
...
...
SGXWalletServer.cpp
View file @
6e96913e
...
...
@@ -53,8 +53,11 @@ void setFullOptions(int _printDebugInfo,
spdlog
::
set_level
(
spdlog
::
level
::
info
);
}
useHTTPS
=
_useHTTPS
;
spdlog
::
info
(
"useHTTPS set to "
+
std
::
to_string
(
_useHTTPS
));
autoconfirm
=
_autoconfirm
;
spdlog
::
info
(
"autoconfirm set to "
+
std
::
to_string
(
autoconfirm
));
encryptKeys
=
_encryptKeys
;
spdlog
::
info
(
"encryptKeys set to "
+
std
::
to_string
(
encryptKeys
));
}
...
...
scripts/calculate_version.sh
View file @
6e96913e
...
...
@@ -34,14 +34,9 @@ fi
for
((
VERSION_NUMBER
=
0
;
;
VERSION_NUMBER++
))
do
if
[
"
$VERSION
"
=
"1.49"
]
&&
[
"
$VERSION_NUMBER
"
-lt
4
]
then
VERSION_NUMBER
=
4
fi
RESULT_VERSION
=
"
$VERSION
-
$LABEL
.
$VERSION_NUMBER
"
if
!
[
$(
git tag
-l
?
$RESULT_VERSION
)
]
then
echo
"
$RESULT_VERSION
"
if
!
[[
$(
git tag
-l
|
grep
$RESULT_VERSION
)
]]
;
then
echo
"
$RESULT_VERSION
"
|
tr
/ -
break
fi
done
sgxwallet.c
View file @
6e96913e
...
...
@@ -113,6 +113,8 @@ int main(int argc, char *argv[]) {
break
;
case
'n'
:
useHTTPSOption
=
false
;
checkClientCertOption
=
false
;
autoSignClientCertOption
=
true
;
break
;
case
'a'
:
encryptKeysOption
=
false
;
...
...
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