summaryrefslogtreecommitdiffstats
path: root/fips/fips.h
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-02-14 17:05:42 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-02-14 17:05:42 +0000
commitc876a4b7b119faa80add62d7a04b46eda8b7bf99 (patch)
treecf6da21dc438ac37042f43b94202a62064632807 /fips/fips.h
parentc966120412eed91db87f83b863ccd1ea68bb9468 (diff)
Include support for an add_lock callback to tiny FIPS locking API.
Diffstat (limited to 'fips/fips.h')
-rw-r--r--fips/fips.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/fips/fips.h b/fips/fips.h
index facdbc725c..97fab1d06e 100644
--- a/fips/fips.h
+++ b/fips/fips.h
@@ -109,14 +109,17 @@ int fips_cipher_test(struct evp_cipher_ctx_st *ctx,
void fips_set_selftest_fail(void);
int fips_check_rsa(struct rsa_st *rsa);
-void FIPS_set_locking_callback(void (*func)(int mode, int type,
- const char *file,int line));
+void FIPS_set_locking_callbacks(void (*func)(int mode, int type,
+ const char *file,int line),
+ int (*add_cb)(int *pointer, int amount,
+ int type, const char *file, int line));
/* Where necessary redirect standard OpenSSL APIs to FIPS versions */
#if defined(OPENSSL_FIPSCANISTER) && defined(OPENSSL_FIPSAPI)
#define CRYPTO_lock FIPS_lock
+#define CRYPTO_add_lock FIPS_add_lock
#define CRYPTO_malloc FIPS_malloc
#define CRYPTO_free FIPS_free