Unverified Commit 5d159a10 authored by Oleh Nikolaiev's avatar Oleh Nikolaiev Committed by GitHub

Merge pull request #99 from skalenetwork/bug/SKALE-2686-server-stuck-with-n-flag

Bug/skale 2686 server stuck with n flag
parents 853981a6 523ed1b6
...@@ -144,7 +144,6 @@ string getECDSAPubKey(const char *_encryptedKeyHex) { ...@@ -144,7 +144,6 @@ string getECDSAPubKey(const char *_encryptedKeyHex) {
bool verifyECDSASig(string& pubKeyStr, const char *hashHex, const char *signatureR, bool verifyECDSASig(string& pubKeyStr, const char *hashHex, const char *signatureR,
const char *signatureS) { const char *signatureS) {
bool result = false; bool result = false;
signature sig = signature_init(); signature sig = signature_init();
...@@ -158,8 +157,6 @@ bool verifyECDSASig(string& pubKeyStr, const char *hashHex, const char *signatur ...@@ -158,8 +157,6 @@ bool verifyECDSASig(string& pubKeyStr, const char *hashHex, const char *signatur
mpz_t msgMpz; mpz_t msgMpz;
mpz_init(msgMpz); mpz_init(msgMpz);
if (mpz_set_str(msgMpz, hashHex, 16) == -1) { if (mpz_set_str(msgMpz, hashHex, 16) == -1) {
spdlog::error("invalid message hash {}", hashHex); spdlog::error("invalid message hash {}", hashHex);
goto clean; goto clean;
......
...@@ -123,7 +123,6 @@ bool check_SEK(std::string SEK){ ...@@ -123,7 +123,6 @@ bool check_SEK(std::string SEK){
} }
void gen_SEK(){ void gen_SEK(){
vector<char> errMsg(1024,0); vector<char> errMsg(1024,0);
int err_status = 0; int err_status = 0;
vector<uint8_t> encr_SEK(1024, 0); vector<uint8_t> encr_SEK(1024, 0);
......
...@@ -53,8 +53,11 @@ void setFullOptions(int _printDebugInfo, ...@@ -53,8 +53,11 @@ void setFullOptions(int _printDebugInfo,
spdlog::set_level(spdlog::level::info); spdlog::set_level(spdlog::level::info);
} }
useHTTPS = _useHTTPS; useHTTPS = _useHTTPS;
spdlog::info("useHTTPS set to " + std::to_string(_useHTTPS));
autoconfirm = _autoconfirm; autoconfirm = _autoconfirm;
spdlog::info("autoconfirm set to " + std::to_string(autoconfirm));
encryptKeys = _encryptKeys; encryptKeys = _encryptKeys;
spdlog::info("encryptKeys set to " + std::to_string(encryptKeys));
} }
......
...@@ -6,6 +6,7 @@ services: ...@@ -6,6 +6,7 @@ services:
- "1026:1026" - "1026:1026"
- "1027:1027" - "1027:1027"
- "1028:1028" - "1028:1028"
- "1029:1029"
devices: devices:
- "/dev/isgx" - "/dev/isgx"
- "/dev/mei0" - "/dev/mei0"
......
...@@ -6,6 +6,7 @@ services: ...@@ -6,6 +6,7 @@ services:
- "1026:1026" - "1026:1026"
- "1027:1027" - "1027:1027"
- "1028:1028" - "1028:1028"
- "1029:1029"
volumes: volumes:
- ./sgx_data:/usr/src/sdk/sgx_data - ./sgx_data:/usr/src/sdk/sgx_data
- /dev/urandom:/dev/random - /dev/urandom:/dev/random
......
...@@ -46,8 +46,6 @@ BLS_DIR = topDir + "/libBLS" ...@@ -46,8 +46,6 @@ BLS_DIR = topDir + "/libBLS"
BLS_BUILD_DIR = BLS_DIR + "/build" BLS_BUILD_DIR = BLS_DIR + "/build"
JSON_LIBS_DIR = topDir + "/jsonrpc" JSON_LIBS_DIR = topDir + "/jsonrpc"
#subprocess.call(["git", "submodule", "update", "--init"])
print("Cleaning") print("Cleaning")
subprocess.call(["rm", "-f", "install-sh"]) subprocess.call(["rm", "-f", "install-sh"])
......
...@@ -34,14 +34,9 @@ fi ...@@ -34,14 +34,9 @@ fi
for (( VERSION_NUMBER=0; ; VERSION_NUMBER++ )) for (( VERSION_NUMBER=0; ; VERSION_NUMBER++ ))
do do
if [ "$VERSION" = "1.49" ] && [ "$VERSION_NUMBER" -lt 4 ]
then
VERSION_NUMBER=4
fi
RESULT_VERSION="$VERSION-$LABEL.$VERSION_NUMBER" RESULT_VERSION="$VERSION-$LABEL.$VERSION_NUMBER"
if ! [ $(git tag -l ?$RESULT_VERSION) ] if ! [[ $(git tag -l | grep $RESULT_VERSION) ]]; then
then echo "$RESULT_VERSION" | tr / -
echo "$RESULT_VERSION"
break break
fi fi
done done
...@@ -132,7 +132,7 @@ int main(int argc, char *argv[]) { ...@@ -132,7 +132,7 @@ int main(int argc, char *argv[]) {
setFullOptions(printDebugInfoOption, printTraceInfoOption, useHTTPSOption, autoconfirmOption, encryptKeysOption); setFullOptions(printDebugInfoOption, printTraceInfoOption, useHTTPSOption, autoconfirmOption, encryptKeysOption);
uint32_t enclaveLogLevel = L_INFO; uint32_t enclaveLogLevel = L_INFO;
if (printTraceInfoOption) { if (printTraceInfoOption) {
enclaveLogLevel = L_TRACE; enclaveLogLevel = L_TRACE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment