From a142ebcf43b7032ad29a383cba9407e7540b2d4a Mon Sep 17 00:00:00 2001 From: C. McEnroe Date: Thu, 30 Jul 2020 13:36:17 -0400 Subject: Define explicit_bzero using memset_s on macOS --- configure | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'configure') diff --git a/configure b/configure index b11679d..8282dc7 100755 --- a/configure +++ b/configure @@ -45,6 +45,12 @@ case "$(uname)" in config libcrypto libtls ncursesw defvar OPENSSL_BIN openssl exec_prefix /bin/openssl ;; + (Darwin) + cflags -D__STDC_WANT_LIB_EXT1__=1 + cflags "-D'explicit_bzero(b,l)=memset_s((b),(l),0,(l))'" + config libcrypto libtls ncursesw + defvar OPENSSL_BIN openssl exec_prefix /bin/openssl + ;; (*) config libcrypto libtls ncursesw defvar OPENSSL_BIN openssl exec_prefix /bin/openssl -- cgit 1.4.1-2-gfad0