From fc1d73bb0c4f2977c999031debc7946c9b29fc8b Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Tue, 3 Apr 2018 16:33:55 +0200 Subject: VMS: stricter acquisition of entropy for the pool Fail harshly (in debug builds) when rand_pool_acquire_entropy isn't delivering the required amount of entropy. In release builds, this produces an error with details. We also take the opportunity to modernise the types used. Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/5857) --- include/openssl/randerr.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/openssl/randerr.h b/include/openssl/randerr.h index 4746ad6..415ca2f 100644 --- a/include/openssl/randerr.h +++ b/include/openssl/randerr.h @@ -35,6 +35,7 @@ int ERR_load_RAND_strings(void); # define RAND_F_RAND_DRBG_SET_DEFAULTS 121 # define RAND_F_RAND_DRBG_UNINSTANTIATE 118 # define RAND_F_RAND_LOAD_FILE 111 +# define RAND_F_RAND_POOL_ACQUIRE_ENTROPY 122 # define RAND_F_RAND_POOL_ADD 103 # define RAND_F_RAND_POOL_ADD_BEGIN 113 # define RAND_F_RAND_POOL_ADD_END 114 @@ -74,6 +75,7 @@ int ERR_load_RAND_strings(void); # define RAND_R_PREDICTION_RESISTANCE_NOT_SUPPORTED 133 # define RAND_R_PRNG_NOT_SEEDED 100 # define RAND_R_RANDOM_POOL_OVERFLOW 125 +# define RAND_R_RANDOM_POOL_UNDERFLOW 134 # define RAND_R_REQUEST_TOO_LARGE_FOR_DRBG 117 # define RAND_R_RESEED_ERROR 118 # define RAND_R_SELFTEST_FAILURE 119 -- cgit v1.1