summaryrefslogtreecommitdiffstats
path: root/crypto/rand/rand_lcl.h
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/rand_lcl.h
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/rand_lcl.h')
-rw-r--r--crypto/rand/rand_lcl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rand/rand_lcl.h b/crypto/rand/rand_lcl.h
index 2f1a52bb59..32526fbb54 100644
--- a/crypto/rand/rand_lcl.h
+++ b/crypto/rand/rand_lcl.h
@@ -116,7 +116,7 @@ struct rand_drbg_st {
CRYPTO_RWLOCK *lock;
RAND_DRBG *parent;
int secure; /* 1: allocated on the secure heap, 0: otherwise */
- int nid; /* the underlying algorithm */
+ int type; /* the nid of the underlying algorithm */
int fork_count;
unsigned short flags; /* various external flags */