From: Seven Du Date: Tue, 28 Dec 2021 00:15:23 +0000 (+0800) Subject: [core] fix macOS build when missing CRYPTO_mem_ctrl X-Git-Tag: v1.10.8^2~94^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e743e8ab3cf629a6337f508b2733d1a7ec3084ab;p=thirdparty%2Ffreeswitch.git [core] fix macOS build when missing CRYPTO_mem_ctrl https://github.com/signalwire/freeswitch/issues/1461 https://github.com/signalwire/libks/commit/3493e9c952964c80e402aa0497891d57dc5f8d40 --- 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);