mirror of
https://git.freebsd.org/ports.git
synced 2025-07-02 10:00:37 -04:00
/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
20 lines
829 B
C
20 lines
829 B
C
--- 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 */
|