summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/crypto_memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/crypto_memory.c')
-rw-r--r--src/lib/libcrypto/crypto_memory.c15
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)
29LCRYPTO_ALIAS(OPENSSL_cleanse); 29LCRYPTO_ALIAS(OPENSSL_cleanse);
30 30
31int 31int
32CRYPTO_set_mem_functions(void *(*m)(size_t), void *(*r)(void *, size_t), 32CRYPTO_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}
37LCRYPTO_ALIAS(CRYPTO_set_mem_functions); 38LCRYPTO_ALIAS(CRYPTO_set_mem_functions);
38 39
39int
40CRYPTO_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}
45LCRYPTO_ALIAS(CRYPTO_set_mem_ex_functions);
46
47void * 40void *
48CRYPTO_malloc(size_t num, const char *file, int line) 41CRYPTO_malloc(size_t num, const char *file, int line)
49{ 42{