diff options
author | Akinori Hattori <hattya@gentoo.org> | 2018-08-18 11:04:25 +0900 |
---|---|---|
committer | Akinori Hattori <hattya@gentoo.org> | 2018-08-18 11:04:25 +0900 |
commit | 3996b4a6d01bf9f5025bbeaf77c382c1f8b6be06 (patch) | |
tree | 4f87342ddc7431a0fa5f8bcc13d2875497a2e602 /x11-misc/qterm/files | |
parent | x11-misc/qterm: fix build with Qt 5.11 (diff) | |
download | gentoo-3996b4a6d01bf9f5025bbeaf77c382c1f8b6be06.tar.gz gentoo-3996b4a6d01bf9f5025bbeaf77c382c1f8b6be06.tar.bz2 gentoo-3996b4a6d01bf9f5025bbeaf77c382c1f8b6be06.zip |
x11-misc/qterm: fix build with libressl
Closes: https://bugs.gentoo.org/645390
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'x11-misc/qterm/files')
-rw-r--r-- | x11-misc/qterm/files/qterm-libressl.patch | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/x11-misc/qterm/files/qterm-libressl.patch b/x11-misc/qterm/files/qterm-libressl.patch new file mode 100644 index 000000000000..d0e0ae1f9cb5 --- /dev/null +++ b/x11-misc/qterm/files/qterm-libressl.patch @@ -0,0 +1,60 @@ +--- a/src/ssh/libcrypto-compat.c ++++ b/src/ssh/libcrypto-compat.c +@@ -8,7 +8,7 @@ + */ + + #include "libcrypto-compat.h" +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + #include <string.h> + #include <openssl/engine.h> + +--- a/src/ssh/libcrypto-compat.h ++++ b/src/ssh/libcrypto-compat.h +@@ -9,7 +9,7 @@ + #include <openssl/evp.h> + #include <openssl/hmac.h> + +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + + int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d); + int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q); +--- a/src/ssh/socket.cpp ++++ b/src/ssh/socket.cpp +@@ -36,7 +36,7 @@ + SSH2SocketPriv::SSH2SocketPriv(SocketPrivate * plainSocket, QByteArray & banner, QObject * parent) + : SSHSocketPriv(parent), m_banner(banner), m_status(Init), m_sessionID(), m_channelList() + { +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + OpenSSL_add_all_ciphers(); + #endif + m_sessionID = NULL; +@@ -56,7 +56,7 @@ + + SSH2SocketPriv::~SSH2SocketPriv() + { +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + EVP_cleanup(); + #endif + } +@@ -133,7 +133,7 @@ + #ifdef SSH_DEBUG + qDebug() << "init ssh1 session"; + #endif +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + OpenSSL_add_all_ciphers(); + #endif + m_inPacket = new SSH1InBuffer(plainSocket, this); +@@ -148,7 +148,7 @@ + + SSH1SocketPriv::~SSH1SocketPriv() + { +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + EVP_cleanup(); + #endif + } |