/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
15 lines
532 B
C
15 lines
532 B
C
--- sql-common/client.c.orig 2019-11-26 16:53:45 UTC
|
|
+++ sql-common/client.c
|
|
@@ -1980,7 +1980,11 @@ static int ssl_verify_server_cert(Vio *vio, const char
|
|
goto error;
|
|
}
|
|
|
|
- cn= (char *) ASN1_STRING_data(cn_asn1);
|
|
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
|
+ cn= (const char *) ASN1_STRING_data(cn_asn1);
|
|
+#else
|
|
+ cn= (const char *) ASN1_STRING_get0_data(cn_asn1);
|
|
+#endif
|
|
|
|
// There should not be any NULL embedded in the CN
|
|
if ((size_t)ASN1_STRING_length(cn_asn1) != strlen(cn))
|