diff options
author | beck <> | 2024-04-10 14:51:02 +0000 |
---|---|---|
committer | beck <> | 2024-04-10 14:51:02 +0000 |
commit | 8f5c098da9d2f4cfab60d5924c5dda86cf4709a2 (patch) | |
tree | 1de2e3788fdb529f8ab9454147625167504e92c8 /src/lib/libcrypto/malloc-wrapper.c | |
parent | c891b03850ff24679520e725b3b3c270d97b96e4 (diff) | |
download | openbsd-8f5c098da9d2f4cfab60d5924c5dda86cf4709a2.tar.gz openbsd-8f5c098da9d2f4cfab60d5924c5dda86cf4709a2.tar.bz2 openbsd-8f5c098da9d2f4cfab60d5924c5dda86cf4709a2.zip |
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@
Diffstat (limited to 'src/lib/libcrypto/malloc-wrapper.c')
-rw-r--r-- | src/lib/libcrypto/malloc-wrapper.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 @@ | |||
1 | /* $OpenBSD: malloc-wrapper.c,v 1.10 2024/03/02 11:35:09 tb Exp $ */ | 1 | /* $OpenBSD: malloc-wrapper.c,v 1.11 2024/04/10 14:51:02 beck Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Bob Beck | 3 | * Copyright (c) 2014 Bob Beck |
4 | * | 4 | * |
@@ -41,15 +41,18 @@ CRYPTO_malloc(size_t num, const char *file, int line) | |||
41 | { | 41 | { |
42 | return malloc(num); | 42 | return malloc(num); |
43 | } | 43 | } |
44 | LCRYPTO_ALIAS(CRYPTO_malloc); | ||
44 | 45 | ||
45 | char * | 46 | char * |
46 | CRYPTO_strdup(const char *str, const char *file, int line) | 47 | CRYPTO_strdup(const char *str, const char *file, int line) |
47 | { | 48 | { |
48 | return strdup(str); | 49 | return strdup(str); |
49 | } | 50 | } |
51 | LCRYPTO_ALIAS(CRYPTO_strdup); | ||
50 | 52 | ||
51 | void | 53 | void |
52 | CRYPTO_free(void *ptr, const char *file, int line) | 54 | CRYPTO_free(void *ptr, const char *file, int line) |
53 | { | 55 | { |
54 | free(ptr); | 56 | free(ptr); |
55 | } | 57 | } |
58 | LCRYPTO_ALIAS(CRYPTO_free); | ||