mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-04 08:12:06 +01:00
26 lines
794 B
Diff
26 lines
794 B
Diff
From e743e8ab3cf629a6337f508b2733d1a7ec3084ab Mon Sep 17 00:00:00 2001
|
|
From: Seven Du <dujinfang@x-y-t.cn>
|
|
Date: Tue, 28 Dec 2021 08:15:23 +0800
|
|
Subject: [PATCH] [core] fix macOS build when missing CRYPTO_mem_ctrl
|
|
|
|
https://github.com/signalwire/freeswitch/issues/1461
|
|
https://github.com/signalwire/libks/commit/3493e9c952964c80e402aa0497891d57dc5f8d40
|
|
---
|
|
src/switch_core_cert.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/src/switch_core_cert.c b/src/switch_core_cert.c
|
|
index 565f548e51..c4fdd84210 100644
|
|
--- a/src/switch_core_cert.c
|
|
+++ b/src/switch_core_cert.c
|
|
@@ -281,7 +281,9 @@ SWITCH_DECLARE(int) switch_core_gen_certs(const char *prefix)
|
|
}
|
|
}
|
|
|
|
+#ifdef CRYPTO_MEM_CHECK_ON
|
|
CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON);
|
|
+#endif
|
|
|
|
//bio_err=BIO_new_fp(stderr, BIO_NOCLOSE);
|
|
|