1 |
commit: a9c411d5ee037b430376d6f302cbea405653b7f7 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 17 21:59:41 2018 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 17 21:59:41 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/mysql-extras.git/commit/?id=a9c411d5 |
7 |
|
8 |
Update 20018_all_mysql-5.7.23-fix-libressl-support.patch |
9 |
|
10 |
Bug: https://bugs.gentoo.org/668894 |
11 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
12 |
|
13 |
20018_all_mysql-5.7.23-fix-libressl-support.patch | 13 +++++++++++++ |
14 |
1 file changed, 13 insertions(+) |
15 |
|
16 |
diff --git a/20018_all_mysql-5.7.23-fix-libressl-support.patch b/20018_all_mysql-5.7.23-fix-libressl-support.patch |
17 |
index c5ca308..6e4bd50 100644 |
18 |
--- a/20018_all_mysql-5.7.23-fix-libressl-support.patch |
19 |
+++ b/20018_all_mysql-5.7.23-fix-libressl-support.patch |
20 |
@@ -1,5 +1,6 @@ |
21 |
https://bugs.gentoo.org/662826 |
22 |
https://bugs.gentoo.org/668832 |
23 |
+https://bugs.gentoo.org/668894 |
24 |
|
25 |
--- a/sql/auth/sha2_password_common.cc |
26 |
+++ b/sql/auth/sha2_password_common.cc |
27 |
@@ -13,6 +14,18 @@ https://bugs.gentoo.org/668832 |
28 |
EVP_MD_CTX_cleanup(md_context); |
29 |
#else /* OPENSSL_VERSION_NUMBER < 0x10100000L */ |
30 |
EVP_MD_CTX_reset(md_context); |
31 |
+--- a/sql/mysqld.cc |
32 |
++++ b/sql/mysqld.cc |
33 |
+@@ -3408,7 +3408,8 @@ static int init_ssl() |
34 |
+ { |
35 |
+ #ifdef HAVE_OPENSSL |
36 |
+ #ifndef HAVE_YASSL |
37 |
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L |
38 |
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || \ |
39 |
++ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL) |
40 |
+ CRYPTO_malloc_init(); |
41 |
+ #else /* OPENSSL_VERSION_NUMBER < 0x10100000L */ |
42 |
+ OPENSSL_malloc_init(); |
43 |
--- a/vio/viosslfactories.c |
44 |
+++ b/vio/viosslfactories.c |
45 |
@@ -121,21 +121,19 @@ static DH *get_dh2048(void) |