summaryrefslogtreecommitdiff
path: root/databases/mysql91-server/files/patch-vio_viosslfactories.cc
diff options
context:
space:
mode:
authorJochen Neumeister <joneum@FreeBSD.org>2025-01-09 19:41:14 +0100
committerJochen Neumeister <joneum@FreeBSD.org>2025-01-09 19:44:37 +0100
commit1fbff9cbe8d96f127a6f5a9564eaffe25dae78e3 (patch)
tree0a8293230edb91e091f88fa75bd89862f61b155d /databases/mysql91-server/files/patch-vio_viosslfactories.cc
parentdeskutils/gucharmap: upgrade to Version 16.0.2 (diff)
databases/mysql91-{server|client}: add new Ports
Welcome MySQL 9.1 What is new in MySQL9.1: https://dev.mysql.com/doc/relnotes/mysql/9.1/en/news-9-1-0.html MySQL8.4+ supports only 64-bit platforms! Sponsored by: Netzkommune GmbH Special thanks to: samm
Diffstat (limited to 'databases/mysql91-server/files/patch-vio_viosslfactories.cc')
-rw-r--r--databases/mysql91-server/files/patch-vio_viosslfactories.cc46
1 files changed, 46 insertions, 0 deletions
diff --git a/databases/mysql91-server/files/patch-vio_viosslfactories.cc b/databases/mysql91-server/files/patch-vio_viosslfactories.cc
new file mode 100644
index 000000000000..0e28a57cf4f4
--- /dev/null
+++ b/databases/mysql91-server/files/patch-vio_viosslfactories.cc
@@ -0,0 +1,46 @@
+--- vio/viosslfactories.cc.orig 2024-04-10 06:26:28 UTC
++++ vio/viosslfactories.cc
+@@ -46,6 +46,7 @@
+ #include <tls_ciphers.h>
+
+ #include "my_openssl_fips.h"
++#include "openssl/crypto.h"
+ #define TLS_VERSION_OPTION_SIZE 256
+
+ static bool ssl_initialized = false;
+@@ -334,7 +335,7 @@ long process_tls_version(const char *tls_version) {
+ const char *separator = ",";
+ char *token, *lasts = nullptr;
+
+-#ifdef HAVE_TLSv13
++#if defined(HAVE_TLSv13) && !defined(LIBRESSL_VERSION_NUMBER)
+ const char *tls_version_name_list[] = {"TLSv1.2", "TLSv1.3"};
+ const char ctx_flag_default[] = "TLSv1.2,TLSv1.3";
+ const long tls_ctx_list[] = {SSL_OP_NO_TLSv1_2, SSL_OP_NO_TLSv1_3};
+@@ -405,7 +406,7 @@ static struct st_VioSSLFd *new_VioSSLFd(
+ ssl_ctx_options = (ssl_ctx_options | ssl_ctx_flags) &
+ (SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 | SSL_OP_NO_TLSv1 |
+ SSL_OP_NO_TLSv1_1 | SSL_OP_NO_TLSv1_2
+-#ifdef HAVE_TLSv13
++#if defined(HAVE_TLSv13) && !defined(LIBRESSL_VERSION_NUMBER)
+ | SSL_OP_NO_TLSv1_3
+ #endif /* HAVE_TLSv13 */
+ | SSL_OP_NO_TICKET);
+@@ -414,7 +415,7 @@ static struct st_VioSSLFd *new_VioSSLFd(
+ return nullptr;
+
+ if (!(ssl_fd->ssl_context = SSL_CTX_new(is_client ?
+-#ifdef HAVE_TLSv13
++#if defined(HAVE_TLSv13) && !defined(LIBRESSL_VERSION_NUMBER)
+ TLS_client_method()
+ : TLS_server_method()
+ #else /* HAVE_TLSv13 */
+@@ -429,7 +430,7 @@ static struct st_VioSSLFd *new_VioSSLFd(
+ return nullptr;
+ }
+
+-#ifdef HAVE_TLSv13
++#if defined(HAVE_TLSv13) && !defined(LIBRESSL_VERSION_NUMBER)
+ /*
+ Set OpenSSL TLS v1.3 ciphersuites.
+ Note that an empty list is permissible.