diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-01-27 14:27:24 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-01-27 14:27:24 +0000 |
commit | ad6019d6c0d22f384838b2f9ca339bdabed331a5 (patch) | |
tree | fd78efc15fcef7e62cee17ec664c1bf18564fd5e /crypto/crypto.h | |
parent | a27de7b7fde7c18e7e4f28c6aa2d9f06635d3f08 (diff) |
Move locking and thread ID functions into new files lock.c and thr_id.c,
redirect locking to minimal FIPS_lock() function where required.
Diffstat (limited to 'crypto/crypto.h')
-rw-r--r-- | crypto/crypto.h | 4 |
1 files changed, 4 insertions, 0 deletions
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. */ |