From dea2878fac8bde549fa0dd3b8e895703b174391b Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Tue, 25 May 2021 17:16:18 +0100 Subject: Teach more of the ASN.1 code about libctx/propq Make sure we pass libctx/propq down to all the layers so that objects that are created during parsing have the right values. Then use this new capability for PKCS7. Reviewed-by: Shane Lontis Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/15591) --- crypto/asn1/asn1_local.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crypto/asn1/asn1_local.h') diff --git a/crypto/asn1/asn1_local.h b/crypto/asn1/asn1_local.h index 15843ac689..f73bd8fc6a 100644 --- a/crypto/asn1/asn1_local.h +++ b/crypto/asn1/asn1_local.h @@ -89,3 +89,6 @@ int ossl_c2i_uint64_int(uint64_t *ret, int *neg, const unsigned char **pp, int ossl_i2c_uint64_int(unsigned char *p, uint64_t r, int neg); ASN1_TIME *ossl_asn1_time_from_tm(ASN1_TIME *s, struct tm *ts, int type); + +int ossl_asn1_item_ex_new_intern(ASN1_VALUE **pval, const ASN1_ITEM *it, + OSSL_LIB_CTX *libctx, const char *propq); -- cgit v1.2.3