Fix osx/ubuntu build error

This commit is contained in:
Roxanne Skelly 2019-04-12 18:36:14 -07:00
parent 3bf8fb5d95
commit e36a8fc6a2

View file

@ -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;