From 8e0874b1be515abc8845e3ad41c4332f992e5687 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Tue, 24 Dec 2019 22:17:28 +0100 Subject: [PATCH] Fix build with LibreSSL 2.7 Upstream: submitted, https://github.com/AGProjects/python-sipsimple/pull/8 --- deps/pjsip/third_party/zsrtp/include/openssl_compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/pjsip/third_party/zsrtp/include/openssl_compat.h b/deps/pjsip/third_party/zsrtp/include/openssl_compat.h index 5b6e183e..aebbf996 100644 --- a/deps/pjsip/third_party/zsrtp/include/openssl_compat.h +++ b/deps/pjsip/third_party/zsrtp/include/openssl_compat.h @@ -3,7 +3,7 @@ #include -#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined (LIBRESSL_VERSION_NUMBER) +#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L) static HMAC_CTX *HMAC_CTX_new(void) { HMAC_CTX *ctx = (HMAC_CTX*)OPENSSL_malloc(sizeof(HMAC_CTX)); -- 2.24.1