FreeBSD Bugzilla – Attachment 189835 Details for
Bug 225261
databases/percona56-server: Add support to libressl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix libressl support
percona56-libressl.diff (text/plain), 4.94 KB, created by
Luca Pizzamiglio
on 2018-01-17 13:34:14 UTC
(
hide
)
Description:
Patch to fix libressl support
Filename:
MIME Type:
Creator:
Luca Pizzamiglio
Created:
2018-01-17 13:34:14 UTC
Size:
4.94 KB
patch
obsolete
>diff --git databases/percona56-client/files/patch-sql-common_client.c databases/percona56-client/files/patch-sql-common_client.c >new file mode 100644 >index 000000000000..2a6f3fe1a37f >--- /dev/null >+++ databases/percona56-client/files/patch-sql-common_client.c >@@ -0,0 +1,38 @@ >+--- sql-common/client.c.orig 2018-01-17 11:39:51.315029000 +0000 >++++ sql-common/client.c 2018-01-17 11:44:53.493273000 +0000 >+@@ -1884,7 +1884,7 @@ >+ *errptr= "Failed to get DNS name from SAN list item"; >+ DBUG_RETURN(1); >+ } >+-#if OPENSSL_VERSION_NUMBER < 0x10100000L >++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) >+ cn= (const char *)ASN1_STRING_data(dns_name); >+ #else >+ cn= (const char *)ASN1_STRING_get0_data(dns_name); >+@@ -1946,7 +1946,7 @@ >+ *errptr= "Invalid IP address embedded in the certificate SAN IP address"; >+ DBUG_RETURN(1); >+ } >+-#if OPENSSL_VERSION_NUMBER < 0x10100000L >++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) >+ ip= ASN1_STRING_data(ip_address); >+ #else >+ ip= ASN1_STRING_get0_data(ip_address); >+@@ -2111,7 +2111,7 @@ >+ if(server_ip_address != NULL) >+ { >+ iplen= ASN1_STRING_length(server_ip_address); >+-#if OPENSSL_VERSION_NUMBER < 0x10100000L >++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) >+ ipout= (const unsigned char *) ASN1_STRING_data(server_ip_address); >+ #else >+ ipout= (const unsigned char *) ASN1_STRING_get0_data(server_ip_address); >+@@ -2163,7 +2163,7 @@ >+ goto error; >+ } >+ >+-#if OPENSSL_VERSION_NUMBER < 0x10100000L >++#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); >diff --git databases/percona56-client/files/patch-vio_viosslfactories.c databases/percona56-client/files/patch-vio_viosslfactories.c >new file mode 100644 >index 000000000000..267a2fd82d03 >--- /dev/null >+++ databases/percona56-client/files/patch-vio_viosslfactories.c >@@ -0,0 +1,11 @@ >+--- vio/viosslfactories.c.orig 2018-01-17 11:42:33.764076000 +0000 >++++ vio/viosslfactories.c 2018-01-17 11:43:21.072238000 +0000 >+@@ -125,7 +125,7 @@ >+ { >+ BIGNUM* p= BN_bin2bn(dh2048_p,sizeof(dh2048_p),NULL); >+ BIGNUM* g= BN_bin2bn(dh2048_g,sizeof(dh2048_g),NULL); >+-#if OPENSSL_VERSION_NUMBER < 0x10100000L >++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined( LIBRESSL_VERSION_NUMBER ) >+ dh->p= p; >+ dh->g= g; >+ if (! dh->p || ! dh->g) >diff --git databases/percona56-server/files/patch-sql-common_client.c databases/percona56-server/files/patch-sql-common_client.c >new file mode 100644 >index 000000000000..2a6f3fe1a37f >--- /dev/null >+++ databases/percona56-server/files/patch-sql-common_client.c >@@ -0,0 +1,38 @@ >+--- sql-common/client.c.orig 2018-01-17 11:39:51.315029000 +0000 >++++ sql-common/client.c 2018-01-17 11:44:53.493273000 +0000 >+@@ -1884,7 +1884,7 @@ >+ *errptr= "Failed to get DNS name from SAN list item"; >+ DBUG_RETURN(1); >+ } >+-#if OPENSSL_VERSION_NUMBER < 0x10100000L >++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) >+ cn= (const char *)ASN1_STRING_data(dns_name); >+ #else >+ cn= (const char *)ASN1_STRING_get0_data(dns_name); >+@@ -1946,7 +1946,7 @@ >+ *errptr= "Invalid IP address embedded in the certificate SAN IP address"; >+ DBUG_RETURN(1); >+ } >+-#if OPENSSL_VERSION_NUMBER < 0x10100000L >++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) >+ ip= ASN1_STRING_data(ip_address); >+ #else >+ ip= ASN1_STRING_get0_data(ip_address); >+@@ -2111,7 +2111,7 @@ >+ if(server_ip_address != NULL) >+ { >+ iplen= ASN1_STRING_length(server_ip_address); >+-#if OPENSSL_VERSION_NUMBER < 0x10100000L >++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) >+ ipout= (const unsigned char *) ASN1_STRING_data(server_ip_address); >+ #else >+ ipout= (const unsigned char *) ASN1_STRING_get0_data(server_ip_address); >+@@ -2163,7 +2163,7 @@ >+ goto error; >+ } >+ >+-#if OPENSSL_VERSION_NUMBER < 0x10100000L >++#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); >diff --git databases/percona56-server/files/patch-vio_viosslfactories.c databases/percona56-server/files/patch-vio_viosslfactories.c >new file mode 100644 >index 000000000000..267a2fd82d03 >--- /dev/null >+++ databases/percona56-server/files/patch-vio_viosslfactories.c >@@ -0,0 +1,11 @@ >+--- vio/viosslfactories.c.orig 2018-01-17 11:42:33.764076000 +0000 >++++ vio/viosslfactories.c 2018-01-17 11:43:21.072238000 +0000 >+@@ -125,7 +125,7 @@ >+ { >+ BIGNUM* p= BN_bin2bn(dh2048_p,sizeof(dh2048_p),NULL); >+ BIGNUM* g= BN_bin2bn(dh2048_g,sizeof(dh2048_g),NULL); >+-#if OPENSSL_VERSION_NUMBER < 0x10100000L >++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined( LIBRESSL_VERSION_NUMBER ) >+ dh->p= p; >+ dh->g= g; >+ if (! dh->p || ! dh->g)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
pizzamig
:
maintainer-approval?
Actions:
View
|
Diff
Attachments on
bug 225261
: 189835