diff options
author | Dr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> | 2018-03-15 19:48:43 +0100 |
---|---|---|
committer | Dr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> | 2018-03-16 18:31:30 +0100 |
commit | 31393fd9067a1444fe4b73bfac51ab44d8d344e2 (patch) | |
tree | cdc80daa5de09764ed98cc9f72a81629f49a5d29 /ssl | |
parent | INSTALL: Add a note about backward compatibility and "make variables" (diff) | |
download | openssl-31393fd9067a1444fe4b73bfac51ab44d8d344e2.tar.xz openssl-31393fd9067a1444fe4b73bfac51ab44d8d344e2.zip |
RAND_DRBG: add a function for setting the default DRBG type and flags
This commit adds a new api RAND_DRBG_set_defaults() which sets the
default type and flags for new DRBG instances. See also #5576.
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5632)
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/ssl_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 298588cd3d..cd972ae63f 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -696,7 +696,7 @@ SSL *SSL_new(SSL_CTX *ctx) */ if (RAND_get_rand_method() == RAND_OpenSSL()) { s->drbg = - RAND_DRBG_new(RAND_DRBG_NID, 0, RAND_DRBG_get0_public()); + RAND_DRBG_new(0, 0, RAND_DRBG_get0_public()); if (s->drbg == NULL || RAND_DRBG_instantiate(s->drbg, (const unsigned char *) SSL_version_str, |