summaryrefslogtreecommitdiffstats
path: root/crypto/crypto.h
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2001-01-10 13:14:58 +0000
committerRichard Levitte <levitte@openssl.org>2001-01-10 13:14:58 +0000
commit65a22e8e4dd1763a195b5c4ff8ff2574a13b3240 (patch)
tree3f06b57c3205be04c0b033621cacaec7581fd7e5 /crypto/crypto.h
parentcbf0f45f90ce316360f07c8b6c5f37b913d9c24d (diff)
As response to a user request to be able to use external memory
handling routines that need file name and line number information, I've added a call level to our memory handling routines to allow that kind of hooking.
Diffstat (limited to 'crypto/crypto.h')
-rw-r--r--crypto/crypto.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/crypto/crypto.h b/crypto/crypto.h
index 96a852a703..328b0e86e7 100644
--- a/crypto/crypto.h
+++ b/crypto/crypto.h
@@ -320,6 +320,11 @@ void (*CRYPTO_get_dynlock_destroy_callback(void))(struct CRYPTO_dynlock_value *l
* call the latter last if you need different functions */
int CRYPTO_set_mem_functions(void *(*m)(size_t),void *(*r)(void *,size_t), void (*f)(void *));
int CRYPTO_set_locked_mem_functions(void *(*m)(size_t), void (*free_func)(void *));
+int CRYPTO_set_mem_ex_functions(void *(*m)(size_t,const char *,int),
+ void *(*r)(void *,size_t,const char *,int),
+ void (*f)(void *,const char *,int));
+int CRYPTO_set_locked_mem_ex_functions(void *(*m)(size_t,const char *,int),
+ void (*free_func)(void *,const char *,int));
int CRYPTO_set_mem_debug_functions(void (*m)(void *,int,const char *,int,int),
void (*r)(void *,void *,int,const char *,int,int),
void (*f)(void *,int),
@@ -327,6 +332,11 @@ int CRYPTO_set_mem_debug_functions(void (*m)(void *,int,const char *,int,int),
long (*go)(void));
void CRYPTO_get_mem_functions(void *(**m)(size_t),void *(**r)(void *, size_t), void (**f)(void *));
void CRYPTO_get_locked_mem_functions(void *(**m)(size_t), void (**f)(void *));
+void CRYPTO_get_mem_ex_functions(void *(**m)(size_t,const char *,int),
+ void *(**r)(void *, size_t,const char *,int),
+ void (**f)(void *,const char *,int));
+void CRYPTO_get_locked_mem_ex_functions(void *(**m)(size_t,const char *,int),
+ void (**f)(void *,const char *,int));
void CRYPTO_get_mem_debug_functions(void (**m)(void *,int,const char *,int,int),
void (**r)(void *,void *,int,const char *,int,int),
void (**f)(void *,int),