diff options
Diffstat (limited to 'src/lib/libcrypto/crypto_memory.c')
-rw-r--r-- | src/lib/libcrypto/crypto_memory.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/lib/libcrypto/crypto_memory.c b/src/lib/libcrypto/crypto_memory.c index 773927b831..8c7bb5fe16 100644 --- a/src/lib/libcrypto/crypto_memory.c +++ b/src/lib/libcrypto/crypto_memory.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: crypto_memory.c,v 1.3 2024/11/06 04:18:42 tb Exp $ */ | 1 | /* $OpenBSD: crypto_memory.c,v 1.4 2025/03/09 15:29:56 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Bob Beck | 3 | * Copyright (c) 2014 Bob Beck |
4 | * | 4 | * |
@@ -29,21 +29,14 @@ OPENSSL_cleanse(void *ptr, size_t len) | |||
29 | LCRYPTO_ALIAS(OPENSSL_cleanse); | 29 | LCRYPTO_ALIAS(OPENSSL_cleanse); |
30 | 30 | ||
31 | int | 31 | int |
32 | CRYPTO_set_mem_functions(void *(*m)(size_t), void *(*r)(void *, size_t), | 32 | CRYPTO_set_mem_functions(void *(*m)(size_t, const char *, int), |
33 | void (*f)(void *)) | 33 | void *(*r)(void *, size_t, const char *, int), |
34 | void (*f)(void *, const char *, int)) | ||
34 | { | 35 | { |
35 | return 0; | 36 | return 0; |
36 | } | 37 | } |
37 | LCRYPTO_ALIAS(CRYPTO_set_mem_functions); | 38 | LCRYPTO_ALIAS(CRYPTO_set_mem_functions); |
38 | 39 | ||
39 | int | ||
40 | CRYPTO_set_mem_ex_functions(void *(*m)(size_t, const char *, int), | ||
41 | void *(*r)(void *, size_t, const char *, int), void (*f)(void *)) | ||
42 | { | ||
43 | return 0; | ||
44 | } | ||
45 | LCRYPTO_ALIAS(CRYPTO_set_mem_ex_functions); | ||
46 | |||
47 | void * | 40 | void * |
48 | CRYPTO_malloc(size_t num, const char *file, int line) | 41 | CRYPTO_malloc(size_t num, const char *file, int line) |
49 | { | 42 | { |