Line 0
Link Here
|
|
|
1 |
--- rapid/plugin/group_replication/libmysqlgcs/src/bindings/xcom/xcom/xcom_ssl_transport.c.orig 2019-12-18 12:59:40 UTC |
2 |
+++ rapid/plugin/group_replication/libmysqlgcs/src/bindings/xcom/xcom/xcom_ssl_transport.c |
3 |
@@ -232,7 +232,7 @@ static int configure_ssl_algorithms(SSL_CTX* ssl_ctx, |
4 |
const char* tls_version) |
5 |
{ |
6 |
DH *dh= NULL; |
7 |
-#ifdef HAVE_TLSv13 |
8 |
+#ifdef SSL_OP_NO_TLSv1_3 |
9 |
/* We support TLS up to 1.2, so explicitly disable TLS 1.3. */ |
10 |
long ssl_ctx_options= SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 | SSL_OP_NO_TLSv1_3; |
11 |
#else |
12 |
@@ -257,14 +257,14 @@ static int configure_ssl_algorithms(SSL_CTX* ssl_ctx, |
13 |
SSL_OP_NO_TLSv1 | |
14 |
SSL_OP_NO_TLSv1_1 |
15 |
| SSL_OP_NO_TLSv1_2 |
16 |
-#ifdef HAVE_TLSv13 |
17 |
+#ifdef SSL_OP_NO_TLSv1_3 |
18 |
| SSL_OP_NO_TLSv1_3 |
19 |
-#endif /* HAVE_TLSv13 */ |
20 |
+#endif /* SSL_OP_NO_TLSv1_3 */ |
21 |
); |
22 |
|
23 |
SSL_CTX_set_options(ssl_ctx, ssl_ctx_options); |
24 |
|
25 |
-#ifdef HAVE_TLSv13 |
26 |
+#if defined(HAVE_TLSv13) && !defined(LIBRESSL_VERSION_NUMBER) |
27 |
/* We do not support TLS 1.3. |
28 |
Setting empty TLS 1.3 ciphersuites disables them. */ |
29 |
if (SSL_CTX_set_ciphersuites(ssl_ctx, "") == 0) |