diff options
author | Pauli <paul.dale@oracle.com> | 2020-09-21 16:07:34 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-09-23 15:28:29 +1000 |
commit | 44d2482ba62bf7fc2fd4cfc250ad09e0feaa42da (patch) | |
tree | 968b0231029d09c71040c76e66554fbbc0d9ca08 /include | |
parent | 11b93a1c82f2cb2be67b2d08cac4168a16555364 (diff) |
Add a "random" configuration section.
This permits the default trio of DRBGs to have their type and parameters set
using configuration.
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/12931)
Diffstat (limited to 'include')
-rw-r--r-- | include/crypto/rand.h | 5 | ||||
-rw-r--r-- | include/openssl/cryptoerr.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/crypto/rand.h b/include/crypto/rand.h index c5eef81462..a437565fe8 100644 --- a/include/crypto/rand.h +++ b/include/crypto/rand.h @@ -88,4 +88,9 @@ void rand_pool_cleanup(void); */ void rand_pool_keep_random_devices_open(int keep); +/* + * Configuration + */ +void ossl_random_add_conf_module(void); + #endif diff --git a/include/openssl/cryptoerr.h b/include/openssl/cryptoerr.h index 5ccddd0214..6add92a9ca 100644 --- a/include/openssl/cryptoerr.h +++ b/include/openssl/cryptoerr.h @@ -90,11 +90,13 @@ int ERR_load_CRYPTO_strings(void); # define CRYPTO_R_ODD_NUMBER_OF_DIGITS 103 # define CRYPTO_R_PROVIDER_ALREADY_EXISTS 104 # define CRYPTO_R_PROVIDER_SECTION_ERROR 105 +# define CRYPTO_R_RANDOM_SECTION_ERROR 119 # define CRYPTO_R_SECURE_MALLOC_FAILURE 111 # define CRYPTO_R_STRING_TOO_LONG 112 # define CRYPTO_R_TOO_MANY_BYTES 113 # define CRYPTO_R_TOO_MANY_RECORDS 114 # define CRYPTO_R_TOO_SMALL_BUFFER 116 +# define CRYPTO_R_UNKNOWN_NAME_IN_RANDOM_SECTION 120 # define CRYPTO_R_ZERO_LENGTH_NUMBER 115 #endif |