aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/crypto.h
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-01-27 14:27:24 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-01-27 14:27:24 +0000
commitad6019d6c0d22f384838b2f9ca339bdabed331a5 (patch)
treefd78efc15fcef7e62cee17ec664c1bf18564fd5e /crypto/crypto.h
parenta27de7b7fde7c18e7e4f28c6aa2d9f06635d3f08 (diff)
downloadopenssl-ad6019d6c0d22f384838b2f9ca339bdabed331a5.tar.gz
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.h4
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. */