summaryrefslogtreecommitdiffstats
path: root/include/internal/cryptlib.h
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2019-05-24 17:36:44 +0200
committerMatt Caswell <matt@openssl.org>2019-06-07 13:04:42 +0200
commita2f27fd750b9ae62a571a9212c7154889100bdb0 (patch)
tree54ffd1a0957459478bd30e2cec5e700b59e9c29b /include/internal/cryptlib.h
parentMake the rand_crng code OPENSSL_CTX aware (diff)
downloadopenssl-a2f27fd750b9ae62a571a9212c7154889100bdb0.tar.xz
openssl-a2f27fd750b9ae62a571a9212c7154889100bdb0.zip
Move the rand_nonce_lock code into drbg_lib.c
It was previously rand_lib but it makes more sense in drbg_lib.c since all the functions that use this lock are only ever called from drbg_lib.c We add some FIPS_MODE defines in preparation for later moving this code into the FIPS module. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9039)
Diffstat (limited to '')
-rw-r--r--include/internal/cryptlib.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/internal/cryptlib.h b/include/internal/cryptlib.h
index 585263a173..d76f9e1704 100644
--- a/include/internal/cryptlib.h
+++ b/include/internal/cryptlib.h
@@ -147,8 +147,9 @@ typedef struct ossl_ex_data_global_st {
# define OPENSSL_CTX_PROPERTY_STRING_INDEX 3
# define OPENSSL_CTX_NAMEMAP_INDEX 4
# define OPENSSL_CTX_DRBG_INDEX 5
-# define OPENSSL_CTX_RAND_CRNGT_INDEX 6
-# define OPENSSL_CTX_MAX_INDEXES 7
+# define OPENSSL_CTX_DRBG_NONCE_INDEX 6
+# define OPENSSL_CTX_RAND_CRNGT_INDEX 7
+# define OPENSSL_CTX_MAX_INDEXES 8
typedef struct openssl_ctx_method {
void *(*new_func)(OPENSSL_CTX *ctx);