mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 18:41:10 +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";
|
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";
|
qCDebug(commerce) << "read private key";
|
||||||
BIO_free(bufio);
|
BIO_free(bufio);
|
||||||
file.close();
|
file.close();
|
||||||
|
@ -647,7 +647,7 @@ QStringList Wallet::listPublicKeys() {
|
||||||
QString Wallet::signWithKey(const QByteArray& text, const QString& key) {
|
QString Wallet::signWithKey(const QByteArray& text, const QString& key) {
|
||||||
EC_KEY* ecPrivateKey = NULL;
|
EC_KEY* ecPrivateKey = NULL;
|
||||||
|
|
||||||
if (ecPrivateKey = readPrivateKey(keyFilePath())) {
|
if ((ecPrivateKey = readPrivateKey(keyFilePath()))) {
|
||||||
unsigned char* sig = new unsigned char[ECDSA_size(ecPrivateKey)];
|
unsigned char* sig = new unsigned char[ECDSA_size(ecPrivateKey)];
|
||||||
|
|
||||||
unsigned int signatureBytes = 0;
|
unsigned int signatureBytes = 0;
|
||||||
|
|
Loading…
Reference in a new issue