projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow FIPS malloc callback setting. Automatically set some callbacks
[openssl.git]
/
fips
/
fips.h
diff --git
a/fips/fips.h
b/fips/fips.h
index 2c71041a70ab21d4758155cd802a50cb6c8c0c52..921591ba98313d813d5b3fe5c075d68094e70e9d 100644
(file)
--- a/
fips/fips.h
+++ b/
fips/fips.h
@@
-122,6
+122,10
@@
void FIPS_set_locking_callbacks(void (*func)(int mode, int type,
int (*add_cb)(int *pointer, int amount,
int type, const char *file, int line));
int (*add_cb)(int *pointer, int amount,
int type, const char *file, int line));
+void FIPS_set_malloc_callbacks(
+ void *(*malloc_cb)(int num, const char *file, int line),
+ void (*free_cb)(void *));
+
#define FIPS_ERROR_IGNORED(alg) OpenSSLDie(__FILE__, __LINE__, \
alg " previous FIPS forbidden algorithm error ignored");
#define FIPS_ERROR_IGNORED(alg) OpenSSLDie(__FILE__, __LINE__, \
alg " previous FIPS forbidden algorithm error ignored");