diff options
author | Matt Caswell <matt@openssl.org> | 2019-05-24 17:36:44 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2019-06-07 13:04:42 +0200 |
commit | a2f27fd750b9ae62a571a9212c7154889100bdb0 (patch) | |
tree | 54ffd1a0957459478bd30e2cec5e700b59e9c29b /include/internal/cryptlib.h | |
parent | Make the rand_crng code OPENSSL_CTX aware (diff) | |
download | openssl-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.h | 5 |
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); |