diff options
author | Jochen Neumeister <joneum@FreeBSD.org> | 2020-03-12 07:47:46 +0000 |
---|---|---|
committer | Jochen Neumeister <joneum@FreeBSD.org> | 2020-03-12 07:47:46 +0000 |
commit | 25f1ebfadd241438d2101129bffda8faecb88afe (patch) | |
tree | 088d51fc7cab27979248e5b4d19ca23decedaeb2 /databases/mysql56-server/files/patch-vio_viosslfactories.c | |
parent | 5cfd4e8b48060eb366e6c29d62c2afe246d3c82a (diff) | |
download | ports-25f1ebfadd241438d2101129bffda8faecb88afe.tar.gz ports-25f1ebfadd241438d2101129bffda8faecb88afe.zip |
MFH: r528272
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
Sponsored by: Netzkommune GmbH
Approved by: ports-secteam (joneum)
Notes
Notes:
svn path=/branches/2020Q1/; revision=528273
Diffstat (limited to 'databases/mysql56-server/files/patch-vio_viosslfactories.c')
-rw-r--r-- | databases/mysql56-server/files/patch-vio_viosslfactories.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/databases/mysql56-server/files/patch-vio_viosslfactories.c b/databases/mysql56-server/files/patch-vio_viosslfactories.c new file mode 100644 index 000000000000..d6a164910a0d --- /dev/null +++ b/databases/mysql56-server/files/patch-vio_viosslfactories.c @@ -0,0 +1,20 @@ +--- vio/viosslfactories.c.orig 2019-11-26 16:53:45 UTC ++++ vio/viosslfactories.c +@@ -91,7 +91,7 @@ static DH *get_dh2048(void) + DH_free(dh); + return NULL; + } +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + dh->p= p; + dh->g= g; + #endif /* OPENSSL_VERSION_NUMBER < 0x10100000L */ +@@ -250,7 +250,7 @@ new_VioSSLFd(const char *key_file, const char *cert_fi + DBUG_RETURN(0); + + if (!(ssl_fd->ssl_context= SSL_CTX_new(is_client ? +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + SSLv23_client_method() : + SSLv23_server_method() + #else /* OPENSSL_VERSION_NUMBER < 0x10100000L */ |