[BACK]Return to mem_clr.c CVS log [TXT][DIR] Up to [local] / src / lib / libcrypto

File: [local] / src / lib / libcrypto / mem_clr.c (download)

Revision 1.5, Wed Apr 10 14:51:02 2024 UTC (2 months ago) by beck
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -1 lines

Finish Hiding symbols in crypto.h

crypto.h already had the symbols not hidden behind LIBRESSL_INTERNAL
hidden - This now picks up the reset of them marking them as
LCRYPTO_UNUSED, and removes the LIBRESSL_INTERNAL guard.

These symbols will now be hidden, but if we use them inside
the library in a namespaced build we will get a deprecation
warning. use outside the library will be as with any other hidden
symbol, so fine.

ok tb@

/* $OpenBSD: mem_clr.c,v 1.5 2024/04/10 14:51:02 beck Exp $ */

/* Ted Unangst places this file in the public domain. */
#include <string.h>
#include <openssl/crypto.h>

void
OPENSSL_cleanse(void *ptr, size_t len)
{
	explicit_bzero(ptr, len);
}
LCRYPTO_ALIAS(OPENSSL_cleanse);