From ad6019d6c0d22f384838b2f9ca339bdabed331a5 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Thu, 27 Jan 2011 14:27:24 +0000 Subject: Move locking and thread ID functions into new files lock.c and thr_id.c, redirect locking to minimal FIPS_lock() function where required. --- crypto/crypto.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crypto/crypto.h') diff --git a/crypto/crypto.h b/crypto/crypto.h index 5089c65882..84d3520ec2 100644 --- a/crypto/crypto.h +++ b/crypto/crypto.h @@ -249,6 +249,10 @@ typedef struct openssl_item_st #define CRYPTO_add(a,b,c) ((*(a))+=(b)) #endif +#if defined(OPENSSL_FIPSCANISTER) && defined(OPENSSL_FIPSEVP) +#define CRYPTO_lock FIPS_lock +#endif + /* Some applications as well as some parts of OpenSSL need to allocate and deallocate locks in a dynamic fashion. The following typedef makes this possible in a type-safe manner. */ -- cgit v1.2.3