summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/mem_clr.c
diff options
context:
space:
mode:
authortb <>2024-11-05 11:05:01 +0000
committertb <>2024-11-05 11:05:01 +0000
commiteb765cd4a2b07da3fc92af29a4762d2c91e71441 (patch)
tree701a89c82b106700d9a949b62d0d172a0faa0d02 /src/lib/libcrypto/mem_clr.c
parent8b19337000a05871189304b9adfbddcca405e429 (diff)
downloadopenbsd-eb765cd4a2b07da3fc92af29a4762d2c91e71441.tar.gz
openbsd-eb765cd4a2b07da3fc92af29a4762d2c91e71441.tar.bz2
openbsd-eb765cd4a2b07da3fc92af29a4762d2c91e71441.zip
Move OPENSSL_cleanse() to crypto_legacy()
The correct spelling is explicit_bzero() and it doesn't need its own file. discussed with jsing
Diffstat (limited to 'src/lib/libcrypto/mem_clr.c')
-rw-r--r--src/lib/libcrypto/mem_clr.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/lib/libcrypto/mem_clr.c b/src/lib/libcrypto/mem_clr.c
deleted file mode 100644
index a936dcc5b8..0000000000
--- a/src/lib/libcrypto/mem_clr.c
+++ /dev/null
@@ -1,12 +0,0 @@
1/* $OpenBSD: mem_clr.c,v 1.5 2024/04/10 14:51:02 beck Exp $ */
2
3/* Ted Unangst places this file in the public domain. */
4#include <string.h>
5#include <openssl/crypto.h>
6
7void
8OPENSSL_cleanse(void *ptr, size_t len)
9{
10 explicit_bzero(ptr, len);
11}
12LCRYPTO_ALIAS(OPENSSL_cleanse);