DRBG: unify initialization and cleanup code
[openssl.git] / crypto / rand / rand_lcl.h
index e3c0b76cde5843ace5d0579684c3f6a56fea81d5..a63b28be4ef2d4b39d8db93eede43bcdc460b79d 100644 (file)
@@ -115,6 +115,7 @@ typedef struct rand_drbg_ctr_st {
 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 fork_count;
     unsigned short flags; /* various external flags */