From 28391ee6892093e7875a30c2bc0924a7bbcb17ea Mon Sep 17 00:00:00 2001 From: beck <> Date: Wed, 10 Apr 2024 14:51:02 +0000 Subject: 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@ --- src/lib/libcrypto/malloc-wrapper.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lib/libcrypto/malloc-wrapper.c') diff --git a/src/lib/libcrypto/malloc-wrapper.c b/src/lib/libcrypto/malloc-wrapper.c index fb42169b2f..7330903c6c 100644 --- a/src/lib/libcrypto/malloc-wrapper.c +++ b/src/lib/libcrypto/malloc-wrapper.c @@ -1,4 +1,4 @@ -/* $OpenBSD: malloc-wrapper.c,v 1.10 2024/03/02 11:35:09 tb Exp $ */ +/* $OpenBSD: malloc-wrapper.c,v 1.11 2024/04/10 14:51:02 beck Exp $ */ /* * Copyright (c) 2014 Bob Beck * @@ -41,15 +41,18 @@ CRYPTO_malloc(size_t num, const char *file, int line) { return malloc(num); } +LCRYPTO_ALIAS(CRYPTO_malloc); char * CRYPTO_strdup(const char *str, const char *file, int line) { return strdup(str); } +LCRYPTO_ALIAS(CRYPTO_strdup); void CRYPTO_free(void *ptr, const char *file, int line) { free(ptr); } +LCRYPTO_ALIAS(CRYPTO_free); -- cgit v1.2.3-55-g6feb