From c2bd9677788989f8289b28cec5eb2524f7b0b514 Mon Sep 17 00:00:00 2001 From: Jochen Neumeister Date: Thu, 12 Mar 2020 07:42:38 +0000 Subject: This fix a Problem, when MySQL build with libressl /var/ports/usr/ports/databases/mysql56-client/work/mysql-5.6.47/vio/viosslfactories.c:230:25: error: use of undeclared identifier 'SSL_OP_NO_TLSv1_3' SSL_OP_NO_TLSv1_3 | ^ /var/ports/usr/ports/databases/mysql56-client/work/mysql-5.6.47/vio/viosslfactories.c:275:12: warning: implicit declaration of function 'SSL_CTX_set_ciphersuites' is invalid in C99 [-Wimplicit-function-declaration] if (0 == SSL_CTX_set_ciphersuites(ssl_fd->ssl_context, "")) Special thanks for his help to: fluffy PR: 244320 MFH: 2020Q1 Sponsored by: Netzkommune GmbH --- databases/mysql56-server/files/patch-vio_vio.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 databases/mysql56-server/files/patch-vio_vio.c (limited to 'databases/mysql56-server/files/patch-vio_vio.c') diff --git a/databases/mysql56-server/files/patch-vio_vio.c b/databases/mysql56-server/files/patch-vio_vio.c new file mode 100644 index 000000000000..042c4d65e8f2 --- /dev/null +++ b/databases/mysql56-server/files/patch-vio_vio.c @@ -0,0 +1,11 @@ +--- vio/vio.c.orig 2019-11-26 16:53:45 UTC ++++ vio/vio.c +@@ -394,7 +394,7 @@ void vio_end(void) + { + #if defined(HAVE_OPENSSL) + // This one is needed on the client side +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + ERR_remove_thread_state(0); + #endif /* OPENSSL_VERSION_NUMBER < 0x10100000L */ + ERR_free_strings(); -- cgit v1.2.3