diff options
| author | Luke Dashjr <[email protected]> | 2017-01-04 17:07:42 +0000 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2017-01-04 18:37:37 +0000 |
| commit | 0388afe69dd85ca9549727ee105ba7017169b464 (patch) | |
| tree | 2d8193433c62f7a91613f5845e03e5f1a028c594 /src/qt/paymentrequestplus.cpp | |
| parent | Fix qt/paymentrequestplus.cpp for OpenSSL 1.1 API. (diff) | |
| download | discoin-0388afe69dd85ca9549727ee105ba7017169b464.tar.xz discoin-0388afe69dd85ca9549727ee105ba7017169b464.zip | |
Let autoconf detect presence of EVP_MD_CTX_new
Fixes LibreSSL compatibility
Diffstat (limited to 'src/qt/paymentrequestplus.cpp')
| -rw-r--r-- | src/qt/paymentrequestplus.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qt/paymentrequestplus.cpp b/src/qt/paymentrequestplus.cpp index 82be4d831..0d4907bca 100644 --- a/src/qt/paymentrequestplus.cpp +++ b/src/qt/paymentrequestplus.cpp @@ -159,7 +159,7 @@ bool PaymentRequestPlus::getMerchant(X509_STORE* certStore, QString& merchant) c std::string data_to_verify; // Everything but the signature rcopy.SerializeToString(&data_to_verify); -#if OPENSSL_VERSION_NUMBER >= 0x10100000L +#if HAVE_DECL_EVP_MD_CTX_NEW EVP_MD_CTX *ctx = EVP_MD_CTX_new(); if (!ctx) throw SSLVerifyError("Error allocating OpenSSL context."); #else @@ -174,7 +174,7 @@ bool PaymentRequestPlus::getMerchant(X509_STORE* certStore, QString& merchant) c !EVP_VerifyFinal(ctx, (const unsigned char*)paymentRequest.signature().data(), (unsigned int)paymentRequest.signature().size(), pubkey)) { throw SSLVerifyError("Bad signature, invalid payment request."); } -#if OPENSSL_VERSION_NUMBER >= 0x10100000L +#if HAVE_DECL_EVP_MD_CTX_NEW EVP_MD_CTX_free(ctx); #endif |