Module Name: src
Committed By: christos
Date: Sun May 26 02:42:00 UTC 2019
Modified Files:
src/external/bsd/unbound/include: config.h
Log Message:
use explicit_memset()
XXX: fix in autoconf
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/bsd/unbound/include/config.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/unbound/include/config.h
diff -u src/external/bsd/unbound/include/config.h:1.5 src/external/bsd/unbound/include/config.h:1.6
--- src/external/bsd/unbound/include/config.h:1.5 Sat May 25 17:31:28 2019
+++ src/external/bsd/unbound/include/config.h Sat May 25 22:42:00 2019
@@ -1183,8 +1183,9 @@ int isblank(int c);
#endif
#ifndef HAVE_EXPLICIT_BZERO
-#define explicit_bzero unbound_explicit_bzero
-void explicit_bzero(void* buf, size_t len);
+// #define explicit_bzero unbound_explicit_bzero
+// void explicit_bzero(void* buf, size_t len);
+#define explicit_bzero(a, b) explicit_memset(a, 0, b)
#endif
#if defined(HAVE_INET_NTOP) && !HAVE_DECL_INET_NTOP
@@ -1219,7 +1220,6 @@ void *reallocarray(void *ptr, size_t nme
# endif
#endif /* HAVE_LIBRESSL */
#ifndef HAVE_ARC4RANDOM
-void explicit_bzero(void* buf, size_t len);
int getentropy(void* buf, size_t len);
uint32_t arc4random(void);
void arc4random_buf(void* buf, size_t n);