1 |
commit: a08fd23b4270c4105d441ff573fde2af037146e4 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 17 10:34:08 2018 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 17 10:34:08 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/mysql-extras.git/commit/?id=a08fd23b |
7 |
|
8 |
Add 20018_all_percona-server-5.7.23-fix-libressl-support.patch |
9 |
|
10 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
11 |
|
12 |
...ercona-server-5.7.23-fix-libressl-support.patch | 26 ++++++++++++++++++++++ |
13 |
1 file changed, 26 insertions(+) |
14 |
|
15 |
diff --git a/20018_all_percona-server-5.7.23-fix-libressl-support.patch b/20018_all_percona-server-5.7.23-fix-libressl-support.patch |
16 |
new file mode 100644 |
17 |
index 0000000..a30dbc1 |
18 |
--- /dev/null |
19 |
+++ b/20018_all_percona-server-5.7.23-fix-libressl-support.patch |
20 |
@@ -0,0 +1,26 @@ |
21 |
+https://bugs.gentoo.org/662826 |
22 |
+https://bugs.gentoo.org/668832 |
23 |
+ |
24 |
+--- a/sql/auth/sha2_password_common.cc |
25 |
++++ b/sql/auth/sha2_password_common.cc |
26 |
+@@ -146,7 +146,8 @@ bool SHA256_digest::retrieve_digest(unsigned char *digest, |
27 |
+ DBUG_RETURN(true); |
28 |
+ } |
29 |
+ m_ok= EVP_DigestFinal_ex(md_context, m_digest, NULL); |
30 |
+-#if defined(HAVE_WOLFSSL) || OPENSSL_VERSION_NUMBER < 0x10100000L |
31 |
++#if defined(HAVE_WOLFSSL) || OPENSSL_VERSION_NUMBER < 0x10100000L || \ |
32 |
++ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x02070000fL) |
33 |
+ EVP_MD_CTX_cleanup(md_context); |
34 |
+ #else /* OPENSSL_VERSION_NUMBER < 0x10100000L */ |
35 |
+ EVP_MD_CTX_reset(md_context); |
36 |
+--- a/vio/viosslfactories.c |
37 |
++++ b/vio/viosslfactories.c |
38 |
+@@ -123,7 +123,7 @@ static DH *get_dh2048(void) |
39 |
+ { |
40 |
+ BIGNUM* p= BN_bin2bn(dh2048_p,sizeof(dh2048_p),NULL); |
41 |
+ BIGNUM* g= BN_bin2bn(dh2048_g,sizeof(dh2048_g),NULL); |
42 |
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L |
43 |
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) |
44 |
+ dh->p= p; |
45 |
+ dh->g= g; |
46 |
+ if (! dh->p || ! dh->g) |