we have BIO_meth_new (which pgsql checks for) but not some of the other

functions that it also needs, neuter for now to unbreak. from jsing
This commit is contained in:
sthen 2018-02-18 17:49:08 +00:00
parent 1fe6ab3687
commit a1200e56e2
4 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-src_backend_libpq_be-secure-openssl_c,v 1.1 2018/02/18 17:49:08 sthen Exp $
Index: src/backend/libpq/be-secure-openssl.c
--- src/backend/libpq/be-secure-openssl.c.orig
+++ src/backend/libpq/be-secure-openssl.c
@@ -748,7 +748,7 @@ my_BIO_s_socket(void)
if (!my_bio_methods)
{
BIO_METHOD *biom = (BIO_METHOD *) BIO_s_socket();
-#ifdef HAVE_BIO_METH_NEW
+#if defined(HAVE_BIO_METH_NEW) && !defined(LIBRESSL_VERSION_NUMBER)
int my_bio_index;
my_bio_index = BIO_get_new_index();

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-src_interfaces_libpq_fe-secure-openssl_c,v 1.1 2018/02/18 17:49:08 sthen Exp $
Index: src/interfaces/libpq/fe-secure-openssl.c
--- src/interfaces/libpq/fe-secure-openssl.c.orig
+++ src/interfaces/libpq/fe-secure-openssl.c
@@ -1640,7 +1640,7 @@ my_BIO_s_socket(void)
if (!my_bio_methods)
{
BIO_METHOD *biom = (BIO_METHOD *) BIO_s_socket();
-#ifdef HAVE_BIO_METH_NEW
+#if defined(HAVE_BIO_METH_NEW) && !defined(LIBRESSL_VERSION_NUMBER)
int my_bio_index;
my_bio_index = BIO_get_new_index();

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-src_backend_libpq_be-secure-openssl_c,v 1.1 2018/02/18 17:49:08 sthen Exp $
Index: src/backend/libpq/be-secure-openssl.c
--- src/backend/libpq/be-secure-openssl.c.orig
+++ src/backend/libpq/be-secure-openssl.c
@@ -823,7 +823,7 @@ my_BIO_s_socket(void)
if (!my_bio_methods)
{
BIO_METHOD *biom = (BIO_METHOD *) BIO_s_socket();
-#ifdef HAVE_BIO_METH_NEW
+#if defined(HAVE_BIO_METH_NEW) && !defined(LIBRESSL_VERSION_NUMBER)
int my_bio_index;
my_bio_index = BIO_get_new_index();

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-src_interfaces_libpq_fe-secure-openssl_c,v 1.1 2018/02/18 17:49:08 sthen Exp $
Index: src/interfaces/libpq/fe-secure-openssl.c
--- src/interfaces/libpq/fe-secure-openssl.c.orig
+++ src/interfaces/libpq/fe-secure-openssl.c
@@ -1640,7 +1640,7 @@ my_BIO_s_socket(void)
if (!my_bio_methods)
{
BIO_METHOD *biom = (BIO_METHOD *) BIO_s_socket();
-#ifdef HAVE_BIO_METH_NEW
+#if defined(HAVE_BIO_METH_NEW) && !defined(LIBRESSL_VERSION_NUMBER)
int my_bio_index;
my_bio_index = BIO_get_new_index();