aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--smtpd/smtpd.h1
-rw-r--r--smtpd/util.c6
2 files changed, 7 insertions, 0 deletions
diff --git a/smtpd/smtpd.h b/smtpd/smtpd.h
index 264a27ce..35dffc39 100644
--- a/smtpd/smtpd.h
+++ b/smtpd/smtpd.h
@@ -1406,6 +1406,7 @@ int session_socket_error(int);
int getmailname(char *, size_t);
int base64_encode(unsigned char const *, size_t, char *, size_t);
int base64_decode(char const *, unsigned char *, size_t);
+void explicit_bzero(void *, size_t);
/* waitq.c */
diff --git a/smtpd/util.c b/smtpd/util.c
index b41a8e7b..d03f680c 100644
--- a/smtpd/util.c
+++ b/smtpd/util.c
@@ -809,3 +809,9 @@ base64_decode(char const *src, unsigned char *dest, size_t destsize)
{
return __b64_pton(src, dest, destsize);
}
+
+void
+explicit_bzero(void *b, size_t len)
+{
+ bzero(b, len);
+}