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 b66302c1..f7d7e085 100644
--- a/smtpd/smtpd.h
+++ b/smtpd/smtpd.h
@@ -1434,6 +1434,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 */
int waitq_wait(void *, void (*)(void *, void *, void *), void *);
diff --git a/smtpd/util.c b/smtpd/util.c
index 712efbfe..a27ee764 100644
--- a/smtpd/util.c
+++ b/smtpd/util.c
@@ -811,3 +811,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);
+}