mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-13 23:46:29 +02:00
Fix osx/ubuntu build error
This commit is contained in:
parent
3bf8fb5d95
commit
e36a8fc6a2
1 changed files with 2 additions and 2 deletions
|
@ -110,7 +110,7 @@ EC_KEY* readKeys(QString filename) {
|
|||
|
||||
qCDebug(commerce) << "read public key";
|
||||
|
||||
if (key = PEM_read_bio_ECPrivateKey(bufio, &key, passwordCallback, NULL)) {
|
||||
if ((key = PEM_read_bio_ECPrivateKey(bufio, &key, passwordCallback, NULL))) {
|
||||
qCDebug(commerce) << "read private key";
|
||||
BIO_free(bufio);
|
||||
file.close();
|
||||
|
@ -647,7 +647,7 @@ QStringList Wallet::listPublicKeys() {
|
|||
QString Wallet::signWithKey(const QByteArray& text, const QString& key) {
|
||||
EC_KEY* ecPrivateKey = NULL;
|
||||
|
||||
if (ecPrivateKey = readPrivateKey(keyFilePath())) {
|
||||
if ((ecPrivateKey = readPrivateKey(keyFilePath()))) {
|
||||
unsigned char* sig = new unsigned char[ECDSA_size(ecPrivateKey)];
|
||||
|
||||
unsigned int signatureBytes = 0;
|
||||
|
|
Loading…
Reference in a new issue