telephony/asterisk: prepare for opaque SSL.

Take the OpenSSL 1.1 codepath using SSL_is_server() instead of
reaching inside the SSL struct.

ok sthen (maintainer)
This commit is contained in:
tb 2021-08-06 14:50:35 +00:00
parent 6d87a10490
commit d35543462b
2 changed files with 16 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.348 2021/07/31 16:37:56 pascal Exp $
# $OpenBSD: Makefile,v 1.349 2021/08/06 14:50:35 tb Exp $
COMMENT-main= open source multi-protocol PBX and telephony toolkit
@ -8,6 +8,7 @@ DISTNAME= asterisk-${VER:S/beta/-beta/:S/rc/-rc/}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} pjproject-${PJ_V}.tar.bz2:0
PKGNAME-main= asterisk-${VER}
REVISION= 0
REVISION-main= 1
CATEGORIES= telephony

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-main_iostream_c,v 1.1 2021/08/06 14:50:35 tb Exp $
Index: main/iostream.c
--- main/iostream.c.orig
+++ main/iostream.c
@@ -553,7 +553,7 @@ int ast_iostream_close(struct ast_iostream *stream)
ERR_error_string(sslerr, err), ssl_error_to_string(sslerr, res));
}
-#if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10100000L)
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L
if (!SSL_is_server(stream->ssl)) {
#else
if (!stream->ssl->server) {