head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.11.15.15.02.42; author vins; state Exp; branches; next ; commitid QqmxK3xKdrF1jz3H; desc @@ 1.1 log @acme-client: update to 1.3.8 # changes * Add support for external account binding * Allow wildcards to be specified in alternate names * Various bug fixes * License changed to GNU General Public License version 3 * Distribute ChangeLog and AUTHORS files @ text @$NetBSD$ Provide a compat wrapper for explicit_bzero(). --- compat/compat.c.orig 2026-10-10 11:50:17.000000000 +0000 +++ compat/compat.c @@@@ -14,6 +14,25 @@@@ */ #define MUL_NO_OVERFLOW ((size_t)1 << (sizeof(size_t) * 4)) +#if !HAVE_EXPLICIT_BZERO +/* + * From openbsd + * commit: f5d2eefeb6c492f8ab3e752fb0b086496271977f + * file : ‎sys/lib/libkern/explicit_bzero.c + * Slightly modified. + */ + +void +explicit_bzero(void *buf, size_t len) +{ +#if defined(__NetBSD__) + explicit_memset(buf, 0, len); +#else + memset(buf, 0, len); +#endif +} +#endif + #if !HAVE_FREEZERO void freezero(void *ptr, size_t size) @