summaryrefslogtreecommitdiffstats
path: root/crypto/rand/drbg_ctr.c
diff options
context:
space:
mode:
authorDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>2018-03-15 19:48:43 +0100
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>2018-03-16 18:31:30 +0100
commit31393fd9067a1444fe4b73bfac51ab44d8d344e2 (patch)
treecdc80daa5de09764ed98cc9f72a81629f49a5d29 /crypto/rand/drbg_ctr.c
parent80f2787717c2181438d4dc2da701fe784fd6286e (diff)
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 'crypto/rand/drbg_ctr.c')
-rw-r--r--crypto/rand/drbg_ctr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rand/drbg_ctr.c b/crypto/rand/drbg_ctr.c
index 84425dc4e0..ac4af331d7 100644
--- a/crypto/rand/drbg_ctr.c
+++ b/crypto/rand/drbg_ctr.c
@@ -317,7 +317,7 @@ int drbg_ctr_init(RAND_DRBG *drbg)
RAND_DRBG_CTR *ctr = &drbg->data.ctr;
size_t keylen;
- switch (drbg->nid) {
+ switch (drbg->type) {
default:
/* This can't happen, but silence the compiler warning. */
return 0;