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:
parent
6d87a10490
commit
d35543462b
@ -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
|
||||
|
||||
|
14
telephony/asterisk/patches/patch-main_iostream_c
Normal file
14
telephony/asterisk/patches/patch-main_iostream_c
Normal 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) {
|
Loading…
Reference in New Issue
Block a user