Define explicit_bzero using memset_s on macOS
parent
5a3b63e444
commit
a142ebcf43
3
chat.h
3
chat.h
|
@ -295,6 +295,3 @@ int getopt_config(
|
||||||
int argc, char *const *argv,
|
int argc, char *const *argv,
|
||||||
const char *optstring, const struct option *longopts, int *longindex
|
const char *optstring, const struct option *longopts, int *longindex
|
||||||
);
|
);
|
||||||
|
|
||||||
// Defined in libcrypto if missing from libc:
|
|
||||||
void explicit_bzero(void *b, size_t len);
|
|
||||||
|
|
|
@ -45,6 +45,12 @@ case "$(uname)" in
|
||||||
config libcrypto libtls ncursesw
|
config libcrypto libtls ncursesw
|
||||||
defvar OPENSSL_BIN openssl exec_prefix /bin/openssl
|
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
|
config libcrypto libtls ncursesw
|
||||||
defvar OPENSSL_BIN openssl exec_prefix /bin/openssl
|
defvar OPENSSL_BIN openssl exec_prefix /bin/openssl
|
||||||
|
|
Loading…
Reference in New Issue