Lines 1-6
Link Here
|
1 |
diff --git extra/yassl/include/openssl/ssl.h extra/yassl/include/openssl/ssl.h |
1 |
--- extra/yassl/include/openssl/ssl.h.orig 2019-07-16 14:08:43 UTC |
2 |
index 10fa4913b7e..ff6cb696661 100644 |
|
|
3 |
--- extra/yassl/include/openssl/ssl.h.orig |
4 |
+++ extra/yassl/include/openssl/ssl.h |
2 |
+++ extra/yassl/include/openssl/ssl.h |
5 |
@@ -1,5 +1,5 @@ |
3 |
@@ -1,5 +1,5 @@ |
6 |
/* |
4 |
/* |
Lines 18-26
Link Here
|
18 |
unsigned long ERR_get_error(void); |
16 |
unsigned long ERR_get_error(void); |
19 |
unsigned long ERR_peek_error(void); |
17 |
unsigned long ERR_peek_error(void); |
20 |
int ERR_GET_REASON(int); |
18 |
int ERR_GET_REASON(int); |
21 |
diff --git extra/yassl/src/ssl.cpp extra/yassl/src/ssl.cpp |
19 |
--- extra/yassl/src/ssl.cpp.orig 2019-07-16 14:08:43 UTC |
22 |
index 39244a01b92..c992d446487 100644 |
|
|
23 |
--- extra/yassl/src/ssl.cpp.orig |
24 |
+++ extra/yassl/src/ssl.cpp |
20 |
+++ extra/yassl/src/ssl.cpp |
25 |
@@ -1,5 +1,5 @@ |
21 |
@@ -1,5 +1,5 @@ |
26 |
/* |
22 |
/* |
Lines 29-35
Link Here
|
29 |
|
25 |
|
30 |
This program is free software; you can redistribute it and/or modify |
26 |
This program is free software; you can redistribute it and/or modify |
31 |
it under the terms of the GNU General Public License as published by |
27 |
it under the terms of the GNU General Public License as published by |
32 |
@@ -1615,7 +1615,7 @@ int SSLeay_add_ssl_algorithms() // compatibility only |
28 |
@@ -1516,7 +1516,7 @@ int SSLeay_add_ssl_algorithms() // compatibility only |
33 |
} |
29 |
} |
34 |
|
30 |
|
35 |
|
31 |
|
Lines 38-54
Link Here
|
38 |
{ |
34 |
{ |
39 |
GetErrors().Remove(); |
35 |
GetErrors().Remove(); |
40 |
} |
36 |
} |
41 |
diff --git mysys_ssl/my_aes_openssl.cc mysys_ssl/my_aes_openssl.cc |
37 |
--- mysys_ssl/my_aes_openssl.cc.orig 2019-07-16 14:08:43 UTC |
42 |
index 261ba8ab732..a0f8c147c7a 100644 |
|
|
43 |
--- mysys_ssl/my_aes_openssl.cc.orig |
44 |
+++ mysys_ssl/my_aes_openssl.cc |
38 |
+++ mysys_ssl/my_aes_openssl.cc |
45 |
@@ -1,4 +1,4 @@ |
39 |
@@ -1,4 +1,4 @@ |
46 |
-/* Copyright (c) 2015, 2014 Oracle and/or its affiliates. All rights reserved. |
40 |
-/* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. |
47 |
+/* Copyright (c) 2015, 2018 Oracle and/or its affiliates. All rights reserved. |
41 |
+/* Copyright (c) 2015, 2018 Oracle and/or its affiliates. All rights reserved. |
48 |
|
42 |
|
49 |
This program is free software; you can redistribute it and/or modify |
43 |
This program is free software; you can redistribute it and/or modify |
50 |
it under the terms of the GNU General Public License as published by |
44 |
it under the terms of the GNU General Public License as published by |
51 |
@@ -122,33 +122,46 @@ int my_aes_encrypt(const unsigned char *source, uint32 source_length, |
45 |
@@ -108,33 +108,46 @@ int my_aes_encrypt(const unsigned char *source, uint32 |
52 |
const unsigned char *key, uint32 key_length, |
46 |
const unsigned char *key, uint32 key_length, |
53 |
enum my_aes_opmode mode, const unsigned char *iv) |
47 |
enum my_aes_opmode mode, const unsigned char *iv) |
54 |
{ |
48 |
{ |
Lines 103-109
Link Here
|
103 |
return MY_AES_BAD_DATA; |
97 |
return MY_AES_BAD_DATA; |
104 |
} |
98 |
} |
105 |
|
99 |
|
106 |
@@ -159,7 +172,12 @@ int my_aes_decrypt(const unsigned char *source, uint32 source_length, |
100 |
@@ -145,7 +158,12 @@ int my_aes_decrypt(const unsigned char *source, uint32 |
107 |
enum my_aes_opmode mode, const unsigned char *iv) |
101 |
enum my_aes_opmode mode, const unsigned char *iv) |
108 |
{ |
102 |
{ |
109 |
|
103 |
|
Lines 117-123
Link Here
|
117 |
const EVP_CIPHER *cipher= aes_evp_type(mode); |
111 |
const EVP_CIPHER *cipher= aes_evp_type(mode); |
118 |
int u_len, f_len; |
112 |
int u_len, f_len; |
119 |
|
113 |
|
120 |
@@ -167,27 +185,34 @@ int my_aes_decrypt(const unsigned char *source, uint32 source_length, |
114 |
@@ -153,27 +171,34 @@ int my_aes_decrypt(const unsigned char *source, uint32 |
121 |
unsigned char rkey[MAX_AES_KEY_LENGTH / 8]; |
115 |
unsigned char rkey[MAX_AES_KEY_LENGTH / 8]; |
122 |
|
116 |
|
123 |
my_aes_create_key(key, key_length, rkey, mode); |
117 |
my_aes_create_key(key, key_length, rkey, mode); |
Lines 161-171
Link Here
|
161 |
return MY_AES_BAD_DATA; |
155 |
return MY_AES_BAD_DATA; |
162 |
} |
156 |
} |
163 |
|
157 |
|
164 |
diff --git sql-common/client.c sql-common/client.c |
158 |
--- sql-common/client.c.orig 2019-07-16 14:08:43 UTC |
165 |
index 19faefe8323..f1192306ccb 100644 |
|
|
166 |
--- sql-common/client.c.orig |
167 |
+++ sql-common/client.c |
159 |
+++ sql-common/client.c |
168 |
@@ -2744,7 +2744,11 @@ static int ssl_verify_server_cert(Vio *vio, const char* server_hostname, const c |
160 |
@@ -1968,7 +1968,11 @@ static int ssl_verify_server_cert(Vio *vio, const char |
169 |
goto error; |
161 |
goto error; |
170 |
} |
162 |
} |
171 |
|
163 |
|
Lines 177-187
Link Here
|
177 |
|
169 |
|
178 |
// There should not be any NULL embedded in the CN |
170 |
// There should not be any NULL embedded in the CN |
179 |
if ((size_t)ASN1_STRING_length(cn_asn1) != strlen(cn)) |
171 |
if ((size_t)ASN1_STRING_length(cn_asn1) != strlen(cn)) |
180 |
diff --git sql/mysqld.cc sql/mysqld.cc |
172 |
--- sql/mysqld.cc.orig 2019-07-16 14:08:43 UTC |
181 |
index 4acff4e4d9b..307778771be 100644 |
|
|
182 |
--- sql/mysqld.cc.orig |
183 |
+++ sql/mysqld.cc |
173 |
+++ sql/mysqld.cc |
184 |
@@ -3408,7 +3408,11 @@ static int init_ssl() |
174 |
@@ -4511,7 +4511,11 @@ static int init_ssl() |
185 |
{ |
175 |
{ |
186 |
#ifdef HAVE_OPENSSL |
176 |
#ifdef HAVE_OPENSSL |
187 |
#ifndef HAVE_YASSL |
177 |
#ifndef HAVE_YASSL |
Lines 193-201
Link Here
|
193 |
#endif |
183 |
#endif |
194 |
ssl_start(); |
184 |
ssl_start(); |
195 |
#ifndef EMBEDDED_LIBRARY |
185 |
#ifndef EMBEDDED_LIBRARY |
196 |
@@ -3434,7 +3438,9 @@ static int init_ssl() |
186 |
@@ -4525,7 +4529,9 @@ static int init_ssl() |
197 |
opt_ssl_cipher, &error, |
187 |
opt_ssl_cipher, &error, |
198 |
opt_ssl_crl, opt_ssl_crlpath, ssl_ctx_flags); |
188 |
opt_ssl_crl, opt_ssl_crlpath); |
199 |
DBUG_PRINT("info",("ssl_acceptor_fd: 0x%lx", (long) ssl_acceptor_fd)); |
189 |
DBUG_PRINT("info",("ssl_acceptor_fd: 0x%lx", (long) ssl_acceptor_fd)); |
200 |
- ERR_remove_state(0); |
190 |
- ERR_remove_state(0); |
201 |
+#if OPENSSL_VERSION_NUMBER < 0x10100000L |
191 |
+#if OPENSSL_VERSION_NUMBER < 0x10100000L |
Lines 203-214
Link Here
|
203 |
+#endif /* OPENSSL_VERSION_NUMBER < 0x10100000L */ |
193 |
+#endif /* OPENSSL_VERSION_NUMBER < 0x10100000L */ |
204 |
if (!ssl_acceptor_fd) |
194 |
if (!ssl_acceptor_fd) |
205 |
{ |
195 |
{ |
206 |
/* |
196 |
sql_print_warning("Failed to setup SSL"); |
207 |
diff --git sql/rpl_slave.cc sql/rpl_slave.cc |
197 |
--- sql/rpl_slave.cc.orig 2019-07-16 14:08:43 UTC |
208 |
index aee13e12cb2..37a20870bd4 100644 |
|
|
209 |
--- sql/rpl_slave.cc.orig |
210 |
+++ sql/rpl_slave.cc |
198 |
+++ sql/rpl_slave.cc |
211 |
@@ -6026,7 +6026,9 @@ ignore_log_space_limit=%d", |
199 |
@@ -5258,7 +5258,9 @@ err: |
212 |
mysql_mutex_unlock(&mi->run_lock); |
200 |
mysql_mutex_unlock(&mi->run_lock); |
213 |
DBUG_LEAVE; // Must match DBUG_ENTER() |
201 |
DBUG_LEAVE; // Must match DBUG_ENTER() |
214 |
my_thread_end(); |
202 |
my_thread_end(); |
Lines 219-225
Link Here
|
219 |
pthread_exit(0); |
207 |
pthread_exit(0); |
220 |
return(0); // Avoid compiler warnings |
208 |
return(0); // Avoid compiler warnings |
221 |
} |
209 |
} |
222 |
@@ -6256,7 +6258,9 @@ extern "C" void *handle_slave_worker(void *arg) |
210 |
@@ -5449,7 +5451,9 @@ err: |
223 |
} |
211 |
} |
224 |
|
212 |
|
225 |
my_thread_end(); |
213 |
my_thread_end(); |
Lines 230-236
Link Here
|
230 |
pthread_exit(0); |
218 |
pthread_exit(0); |
231 |
DBUG_RETURN(0); |
219 |
DBUG_RETURN(0); |
232 |
} |
220 |
} |
233 |
@@ -7597,7 +7601,9 @@ llstr(rli->get_group_master_log_pos(), llbuff)); |
221 |
@@ -6663,7 +6667,9 @@ log '%s' at position %s, relay log '%s' position: %s", |
234 |
|
222 |
|
235 |
DBUG_LEAVE; // Must match DBUG_ENTER() |
223 |
DBUG_LEAVE; // Must match DBUG_ENTER() |
236 |
my_thread_end(); |
224 |
my_thread_end(); |
Lines 241-257
Link Here
|
241 |
pthread_exit(0); |
229 |
pthread_exit(0); |
242 |
return 0; // Avoid compiler warnings |
230 |
return 0; // Avoid compiler warnings |
243 |
} |
231 |
} |
244 |
diff --git vio/viossl.c vio/viossl.c |
232 |
--- vio/viossl.c.orig 2019-07-16 14:08:43 UTC |
245 |
index 5622cb7ee92..f738570f832 100644 |
|
|
246 |
--- vio/viossl.c.orig |
247 |
+++ vio/viossl.c |
233 |
+++ vio/viossl.c |
248 |
@@ -1,4 +1,4 @@ |
234 |
@@ -1,4 +1,4 @@ |
249 |
-/* Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. |
235 |
-/* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved. |
250 |
+/* Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. |
236 |
+/* Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. |
251 |
|
237 |
|
252 |
This program is free software; you can redistribute it and/or modify |
238 |
This program is free software; you can redistribute it and/or modify |
253 |
it under the terms of the GNU General Public License as published by |
239 |
it under the terms of the GNU General Public License as published by |
254 |
@@ -419,7 +421,11 @@ static int ssl_do(struct st_VioSSLFd *ptr, Vio *vio, long timeout, |
240 |
@@ -415,7 +415,11 @@ static int ssl_do(struct st_VioSSLFd *ptr, Vio *vio, |
255 |
for (j = 0; j < n; j++) |
241 |
for (j = 0; j < n; j++) |
256 |
{ |
242 |
{ |
257 |
SSL_COMP *c = sk_SSL_COMP_value(ssl_comp_methods, j); |
243 |
SSL_COMP *c = sk_SSL_COMP_value(ssl_comp_methods, j); |
Lines 263-279
Link Here
|
263 |
} |
249 |
} |
264 |
} |
250 |
} |
265 |
#endif |
251 |
#endif |
266 |
diff --git vio/viosslfactories.c vio/viosslfactories.c |
252 |
--- vio/viosslfactories.c.orig 2019-07-16 14:08:43 UTC |
267 |
index f50678a37b3..d3891fd8b12 100644 |
|
|
268 |
--- vio/viosslfactories.c.orig |
269 |
+++ vio/viosslfactories.c |
253 |
+++ vio/viosslfactories.c |
270 |
@@ -1,4 +1,4 @@ |
254 |
@@ -1,4 +1,4 @@ |
271 |
-/* Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. |
255 |
-/* Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. |
272 |
+/* Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. |
256 |
+/* Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. |
273 |
|
257 |
|
274 |
This program is free software; you can redistribute it and/or modify |
258 |
This program is free software; you can redistribute it and/or modify |
275 |
it under the terms of the GNU General Public License as published by |
259 |
it under the terms of the GNU General Public License as published by |
276 |
@@ -121,13 +121,21 @@ static DH *get_dh2048(void) |
260 |
@@ -68,13 +68,21 @@ static DH *get_dh2048(void) |
277 |
DH *dh; |
261 |
DH *dh; |
278 |
if ((dh=DH_new())) |
262 |
if ((dh=DH_new())) |
279 |
{ |
263 |
{ |