From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1094140-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AA444138334 for <garchives@archives.gentoo.org>; Tue, 4 Jun 2019 11:30:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B5083E0893; Tue, 4 Jun 2019 11:30:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7A429E0893 for <gentoo-commits@lists.gentoo.org>; Tue, 4 Jun 2019 11:30:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3D7ED345681 for <gentoo-commits@lists.gentoo.org>; Tue, 4 Jun 2019 11:30:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D2D6D58B for <gentoo-commits@lists.gentoo.org>; Tue, 4 Jun 2019 11:30:12 +0000 (UTC) From: "Thomas Deutschmann" <whissi@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" <whissi@gentoo.org> Message-ID: <1559646549.d39d694e00c32933328ae2cf091c7ddb98a669f2.whissi@gentoo> Subject: [gentoo-commits] proj/mysql-extras:master commit in: / X-VCS-Repository: proj/mysql-extras X-VCS-Files: 20018_all_mysql-5.6.44-fix-libressl-support.patch X-VCS-Directories: / X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: d39d694e00c32933328ae2cf091c7ddb98a669f2 X-VCS-Branch: master Date: Tue, 4 Jun 2019 11:30:12 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 39aab849-31c3-4102-88dd-e436d8013966 X-Archives-Hash: 4f71efd4c9bfb980ab9857c068e542e6 commit: d39d694e00c32933328ae2cf091c7ddb98a669f2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> AuthorDate: Tue Jun 4 11:09:09 2019 +0000 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> CommitDate: Tue Jun 4 11:09:09 2019 +0000 URL: https://gitweb.gentoo.org/proj/mysql-extras.git/commit/?id=d39d694e Add LibreSSL patches for MySQL 5.6 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> 20018_all_mysql-5.6.44-fix-libressl-support.patch | 47 +++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/20018_all_mysql-5.6.44-fix-libressl-support.patch b/20018_all_mysql-5.6.44-fix-libressl-support.patch new file mode 100644 index 0000000..b180677 --- /dev/null +++ b/20018_all_mysql-5.6.44-fix-libressl-support.patch @@ -0,0 +1,47 @@ +--- a/sql/mysqld.cc ++++ b/sql/mysqld.cc +@@ -4358,7 +4358,10 @@ static int init_ssl() + { + #ifdef HAVE_OPENSSL + #ifndef HAVE_YASSL ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + CRYPTO_malloc_init(); ++#else /* OPENSSL_VERSION_NUMBER < 0x10100000L */ ++ OPENSSL_malloc_init(); + #endif + ssl_start(); + #ifndef EMBEDDED_LIBRARY +@@ -4372,7 +4375,9 @@ static int init_ssl() + opt_ssl_cipher, &error, + opt_ssl_crl, opt_ssl_crlpath); + DBUG_PRINT("info",("ssl_acceptor_fd: 0x%lx", (long) ssl_acceptor_fd)); ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + ERR_remove_state(0); ++#endif + if (!ssl_acceptor_fd) + { + sql_print_warning("Failed to setup SSL"); +--- a/vio/viosslfactories.c ++++ b/vio/viosslfactories.c +@@ -68,12 +68,18 @@ static DH *get_dh2048(void) + DH *dh; + if ((dh=DH_new())) + { +- dh->p=BN_bin2bn(dh2048_p,sizeof(dh2048_p),NULL); +- dh->g=BN_bin2bn(dh2048_g,sizeof(dh2048_g),NULL); ++ BIGNUM* p= BN_bin2bn(dh2048_p,sizeof(dh2048_p),NULL); ++ BIGNUM* g= BN_bin2bn(dh2048_g,sizeof(dh2048_g),NULL); ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) ++ dh->p= p; ++ dh->g= g; + if (! dh->p || ! dh->g) ++#else ++ if (!DH_set0_pqg(dh, p, NULL, g)) ++#endif + { + DH_free(dh); +- dh=0; ++ dh= NULL; + } + } + return(dh);