Convert drbg_lib to use OPENSSL_CTX for its global data
[openssl.git] / crypto / rand / rand_lcl.h
index 3ce5f7ad97c7a723fbb5cd128ac4c66a49b165d7..4e1c9c02d39d6a32608123ec0ababea1d733108e 100644 (file)
@@ -192,6 +192,8 @@ struct rand_pool_st {
  */
 struct rand_drbg_st {
     CRYPTO_RWLOCK *lock;
+    /* The library context this DRBG is associated with, if any */
+    OPENSSL_CTX *libctx;
     RAND_DRBG *parent;
     int secure; /* 1: allocated on the secure heap, 0: otherwise */
     int type; /* the nid of the underlying algorithm */