summaryrefslogtreecommitdiffstats
path: root/crypto/evp/evp_local.h
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2020-09-16 11:10:01 +1000
committerPauli <paul.dale@oracle.com>2020-09-23 08:39:43 +1000
commit4640cd00c36f0535d297d1ed10665597c4e2c7f2 (patch)
tree6cfc1e1d8566472d2878090d5bd2f2e347be031d /crypto/evp/evp_local.h
parent8e3a64fdb6e1e2826a334b095147d3ebe1acac2a (diff)
rand: reference count the EVP_RAND contexts.
This is required before the RAND/DRBG framework can be made user mutable. Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/12904)
Diffstat (limited to 'crypto/evp/evp_local.h')
-rw-r--r--crypto/evp/evp_local.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/evp/evp_local.h b/crypto/evp/evp_local.h
index 3268aa4109..285c69103b 100644
--- a/crypto/evp/evp_local.h
+++ b/crypto/evp/evp_local.h
@@ -69,6 +69,9 @@ struct evp_kdf_ctx_st {
struct evp_rand_ctx_st {
EVP_RAND *meth; /* Method structure */
void *data; /* Algorithm-specific data */
+ EVP_RAND_CTX *parent; /* Parent EVP_RAND or NULL if none */
+ CRYPTO_REF_COUNT refcnt; /* Context reference count */
+ CRYPTO_RWLOCK *refcnt_lock;
} /* EVP_RAND_CTX */ ;
struct evp_keymgmt_st {