1 |
commit: c5bf7666c3bb6f495079ebf43eb9cfaa2198f1bc |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 17 00:33:06 2018 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 17 00:33:06 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/mysql-extras.git/commit/?id=c5bf7666 |
7 |
|
8 |
Update 20018_all_mysql-5.7.23-fix-libressl-support.patch |
9 |
|
10 |
Closes: https://bugs.gentoo.org/668832 |
11 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
12 |
|
13 |
20018_all_mysql-5.7.23-fix-libressl-support.patch | 36 +++++++++++++++++++++++ |
14 |
1 file changed, 36 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 f6beecd..c5ca308 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,4 +1,5 @@ |
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 |
@@ -12,3 +13,38 @@ https://bugs.gentoo.org/662826 |
27 |
EVP_MD_CTX_cleanup(md_context); |
28 |
#else /* OPENSSL_VERSION_NUMBER < 0x10100000L */ |
29 |
EVP_MD_CTX_reset(md_context); |
30 |
+--- a/vio/viosslfactories.c |
31 |
++++ b/vio/viosslfactories.c |
32 |
+@@ -121,21 +121,19 @@ static DH *get_dh2048(void) |
33 |
+ DH *dh; |
34 |
+ if ((dh=DH_new())) |
35 |
+ { |
36 |
+- BIGNUM *p= BN_bin2bn(dh2048_p, sizeof(dh2048_p), NULL); |
37 |
+- BIGNUM *g= BN_bin2bn(dh2048_g, sizeof(dh2048_g), NULL); |
38 |
+- if (!p || !g |
39 |
+-#if OPENSSL_VERSION_NUMBER >= 0x10100000L |
40 |
+- || !DH_set0_pqg(dh, p, NULL, g) |
41 |
+-#endif /* OPENSSL_VERSION_NUMBER >= 0x10100000L */ |
42 |
+- ) { |
43 |
+- /* DH_free() will free 'p' and 'g' at once. */ |
44 |
++ BIGNUM *p = BN_bin2bn(dh2048_p,sizeof(dh2048_p), NULL); |
45 |
++ BIGNUM *g = BN_bin2bn(dh2048_g,sizeof(dh2048_g), NULL); |
46 |
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) |
47 |
++ dh->p=p; |
48 |
++ dh->g=g; |
49 |
++ if (! dh->p || ! dh->g) |
50 |
++#else |
51 |
++ if (!DH_set0_pqg(dh, p, NULL, g)) |
52 |
++#endif |
53 |
++ { |
54 |
+ DH_free(dh); |
55 |
+- return NULL; |
56 |
++ dh = NULL; |
57 |
+ } |
58 |
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L |
59 |
+- dh->p= p; |
60 |
+- dh->g= g; |
61 |
+-#endif /* OPENSSL_VERSION_NUMBER < 0x10100000L */ |
62 |
+ } |
63 |
+ return(dh); |
64 |
+ } |