diff options
author | Nicholas Vinson <nvinson234@gmail.com> | 2016-12-12 23:45:55 -0800 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2016-12-13 15:55:16 +0100 |
commit | d663a68c1b428f18fe13677b57944b9868f23806 (patch) | |
tree | 4b03161bf802cc9f3ba11033061ae3328c334bd3 /net-irc/hexchat/files | |
parent | www-apps/nextcloud: drop old versions (diff) | |
download | gentoo-d663a68c1b428f18fe13677b57944b9868f23806.tar.gz gentoo-d663a68c1b428f18fe13677b57944b9868f23806.tar.bz2 gentoo-d663a68c1b428f18fe13677b57944b9868f23806.zip |
net-irc/hexchat: Fix libreSSL and missing dep.
Adds preprocessor libreSSL check to Fix libreSSL compile-time.
Adds autconf-archive as a bdep.
Gentoo-bug: 602372
Gentoo-bug: 602438
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Closes: https://github.com/gentoo/gentoo/pull/3109
Diffstat (limited to 'net-irc/hexchat/files')
-rw-r--r-- | net-irc/hexchat/files/hexchat-2.12.4-libressl.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/net-irc/hexchat/files/hexchat-2.12.4-libressl.patch b/net-irc/hexchat/files/hexchat-2.12.4-libressl.patch new file mode 100644 index 000000000000..3b3adc09dd55 --- /dev/null +++ b/net-irc/hexchat/files/hexchat-2.12.4-libressl.patch @@ -0,0 +1,29 @@ +# diff -pU5 hexchat-2.12.4/src/common/ssl.c.old hexchat-2.12.4/src/common/ssl.c +--- hexchat-2.12.4/src/common/ssl.c ++++ hexchat-2.12.4/src/common/ssl.c +@@ -174,11 +174,11 @@ _SSL_get_cert_info (struct cert_info *ce + key = X509_get_X509_PUBKEY(peer_cert); + if (!X509_PUBKEY_get0_param(NULL, NULL, 0, &algor, key)) + return 1; + + alg = OBJ_obj2nid (algor->algorithm); +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined LIBRESSL_VERSION_NUMBER + sign_alg = OBJ_obj2nid (peer_cert->sig_alg->algorithm); + #else + sign_alg = X509_get_signature_nid (peer_cert); + #endif + ASN1_TIME_snprintf (notBefore, sizeof (notBefore), +@@ -304,11 +304,11 @@ _SSL_socket (SSL_CTX *ctx, int sd) + /* FATAL */ + __SSL_critical_error ("SSL_new"); + + SSL_set_fd (ssl, sd); + +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined LIBRESSL_VERSION_NUMBER + method = ctx->method; + #else + method = SSL_CTX_get_ssl_method (ctx); + #endif + if (method == SSLv23_client_method()) |