ports/net/kamailio/files/patch-src_modules_tls_tls__bio.c
Boris Korzun d01782846b net/kamailio: update to 5.8.4
- submitter becomes maintainer
 - added GCRYPT and MICROHTTPD options
 - small fixes

Changelog: https://www.kamailio.org/pub/kamailio/5.8.4/ChangeLog
Release notes: https://www.kamailio.org/w/kamailio-v5-8-0-release-notes/

PR:		283010
Reported by:	p5B2EA84B3@t-online.de
Approved by:	dmitry.wagin@ya.ru (maintainer)
2025-01-17 13:34:00 +01:00

20 lines
937 B
C

--- src/modules/tls/tls_bio.c.orig 2024-11-12 10:25:56 UTC
+++ src/modules/tls/tls_bio.c
@@ -63,7 +63,7 @@ static long tls_bio_mbuf_ctrl(BIO *b, int cmd, long ar
static long tls_bio_mbuf_ctrl(BIO *b, int cmd, long arg1, void *arg2);
-#if OPENSSL_VERSION_NUMBER < 0x010100000L || defined(LIBRESSL_VERSION_NUMBER)
+#if OPENSSL_VERSION_NUMBER < 0x010100000L || ( defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL )
static BIO_METHOD tls_mbuf_method = {
BIO_TYPE_TLS_MBUF, /* type */
"sr_tls_mbuf", /* name */
@@ -109,7 +109,7 @@ BIO_METHOD *tls_BIO_mbuf(void)
/** returns a custom tls_mbuf BIO. */
BIO_METHOD *tls_BIO_mbuf(void)
{
-#if OPENSSL_VERSION_NUMBER < 0x010100000L || defined(LIBRESSL_VERSION_NUMBER)
+#if OPENSSL_VERSION_NUMBER < 0x010100000L || ( defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL )
return &tls_mbuf_method;
#else
if(tls_mbuf_method != NULL) {