SKALE-2002 add logic to -n flag

parent 853981a6
......@@ -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;
......
......@@ -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);
......
......@@ -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));
}
......
......@@ -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
......@@ -113,6 +113,8 @@ int main(int argc, char *argv[]) {
break;
case 'n':
useHTTPSOption = false;
checkClientCertOption = false;
autoSignClientCertOption = true;
break;
case 'a':
encryptKeysOption = false;
......@@ -132,7 +134,7 @@ int main(int argc, char *argv[]) {
setFullOptions(printDebugInfoOption, printTraceInfoOption, useHTTPSOption, autoconfirmOption, encryptKeysOption);
uint32_t enclaveLogLevel = L_INFO;
uint32_t enclaveLogLevel = L_INFO;
if (printTraceInfoOption) {
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