diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-04-10 17:26:49 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-04-10 17:26:49 +0100 |
commit | 6957f5c65b02bba533954eabc0b62f5de36be206 (patch) | |
tree | 21d8ab8f61dffd9cccc82d0badb68982516a6855 /net-p2p/bitcoin-qt/files | |
parent | e91a1aaa5ec8fab37f0fd082ac6024d41c6651e2 (diff) |
gentoo resync : 10.04.2018
Diffstat (limited to 'net-p2p/bitcoin-qt/files')
-rw-r--r-- | net-p2p/bitcoin-qt/files/0.13.2-libressl.patch | 48 | ||||
-rw-r--r-- | net-p2p/bitcoin-qt/files/bitcoin-qt-0.16.0-fix_memory_include.patch | 13 |
2 files changed, 13 insertions, 48 deletions
diff --git a/net-p2p/bitcoin-qt/files/0.13.2-libressl.patch b/net-p2p/bitcoin-qt/files/0.13.2-libressl.patch deleted file mode 100644 index 415adcc59eae..000000000000 --- a/net-p2p/bitcoin-qt/files/0.13.2-libressl.patch +++ /dev/null @@ -1,48 +0,0 @@ -commit 0388afe69dd85ca9549727ee105ba7017169b464 (HEAD -> EVP_MD_CTX_new, personal-github/EVP_MD_CTX_new) -Author: Luke Dashjr <luke-jr+git@utopios.org> -Date: Wed Jan 4 17:07:42 2017 +0000 - - Let autoconf detect presence of EVP_MD_CTX_new - - Fixes LibreSSL compatibility - -diff --git a/configure.ac b/configure.ac -index ced258e..02af0d6 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -832,6 +832,13 @@ else - fi - fi - -+save_CXXFLAGS="${CXXFLAGS}" -+CXXFLAGS="${CXXFLAGS} ${CRYPTO_CFLAGS} ${SSL_CFLAGS}" -+AC_CHECK_DECLS([EVP_MD_CTX_new],,,[AC_INCLUDES_DEFAULT -+#include <openssl/x509_vfy.h> -+]) -+CXXFLAGS="${save_CXXFLAGS}" -+ - dnl univalue check - - need_bundled_univalue=yes -diff --git a/src/qt/paymentrequestplus.cpp b/src/qt/paymentrequestplus.cpp -index 82be4d8..0d4907b 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 - diff --git a/net-p2p/bitcoin-qt/files/bitcoin-qt-0.16.0-fix_memory_include.patch b/net-p2p/bitcoin-qt/files/bitcoin-qt-0.16.0-fix_memory_include.patch new file mode 100644 index 000000000000..66b7d361ee5b --- /dev/null +++ b/net-p2p/bitcoin-qt/files/bitcoin-qt-0.16.0-fix_memory_include.patch @@ -0,0 +1,13 @@ +diff --git a/src/qt/walletmodeltransaction.h b/src/qt/walletmodeltransaction.h +index cd531dba4b..816b0c35af 100644 +--- a/src/qt/walletmodeltransaction.h ++++ b/src/qt/walletmodeltransaction.h +@@ -7,6 +7,8 @@ + + #include <qt/walletmodel.h> + ++#include <memory> ++ + #include <QObject> + + class SendCoinsRecipient; |