mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 18:41:10 +02:00
Public Key was getting corrupted.
This commit is contained in:
parent
e36a8fc6a2
commit
8f9d8372d8
1 changed files with 6 additions and 3 deletions
|
@ -302,8 +302,11 @@ QByteArray readPublicKey(QString filename) {
|
||||||
|
|
||||||
qCDebug(commerce) << "parsed public key file successfully";
|
qCDebug(commerce) << "parsed public key file successfully";
|
||||||
|
|
||||||
retval.setRawData((char*)publicKeyDER, publicKeyLength);
|
QByteArray retval((char*)publicKeyDER, publicKeyLength);
|
||||||
OPENSSL_free(publicKeyDER);
|
OPENSSL_free(publicKeyDER);
|
||||||
|
BIO_free(bufio);
|
||||||
|
file.close();
|
||||||
|
return retval;
|
||||||
} else {
|
} else {
|
||||||
qCDebug(commerce) << "couldn't parse" << filename;
|
qCDebug(commerce) << "couldn't parse" << filename;
|
||||||
}
|
}
|
||||||
|
@ -312,7 +315,7 @@ QByteArray readPublicKey(QString filename) {
|
||||||
} else {
|
} else {
|
||||||
qCDebug(commerce) << "couldn't open" << filename;
|
qCDebug(commerce) << "couldn't open" << filename;
|
||||||
}
|
}
|
||||||
return retval;
|
return QByteArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
// the private key should be read/copied into heap memory. For now, we need the EC_KEY struct
|
// the private key should be read/copied into heap memory. For now, we need the EC_KEY struct
|
||||||
|
@ -387,7 +390,7 @@ Wallet::Wallet() {
|
||||||
} else {
|
} else {
|
||||||
status = (uint) WalletStatus::WALLET_STATUS_READY;
|
status = (uint) WalletStatus::WALLET_STATUS_READY;
|
||||||
}
|
}
|
||||||
|
qCDebug(commerce) << "WALLET STATUS:" + keyStatus + " " + status;
|
||||||
walletScriptingInterface->setWalletStatus(status);
|
walletScriptingInterface->setWalletStatus(status);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue