databases/pgbouncer: fix build after SSL_CTX became opaque

SSL_CTX_get0_param() is available from libssl, so no need to redefine it.
This commit is contained in:
tb 2021-05-10 17:22:23 +00:00
parent 5ad37b4747
commit 8cbe12966a
2 changed files with 17 additions and 1 deletions

View File

@ -1,9 +1,10 @@
# $OpenBSD: Makefile,v 1.30 2020/07/05 11:29:36 landry Exp $
# $OpenBSD: Makefile,v 1.31 2021/05/10 17:22:23 tb Exp $
COMMENT = lightweight connection pooler for PostgreSQL
V = 1.14.0
DISTNAME = pgbouncer-${V}
REVISION = 0
CATEGORIES = databases

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-lib_usual_tls_tls_compat_h,v 1.1 2021/05/10 17:22:23 tb Exp $
Remove compat shim that breaks the build with opaque SSL_CTX.
Index: lib/usual/tls/tls_compat.h
--- lib/usual/tls/tls_compat.h.orig
+++ lib/usual/tls/tls_compat.h
@@ -35,7 +35,6 @@
#define SSL_CIPHER_get_kx_nid(ciph) ( 0 )
#define X509_get_key_usage(x509) ((x509)->ex_kusage)
#define X509_get_extended_key_usage(x509) ((x509)->ex_xkusage)
-#define SSL_CTX_get0_param(ssl_ctx) ((ssl_ctx)->param)
#define ASN1_STRING_get0_data(x) ((const unsigned char*)ASN1_STRING_data(x))
#define X509_OBJECT_get0_X509(x) ((x)->data.x509)