Give ASN.1 objects the ability to report their libctx/propq
authorMatt Caswell <matt@openssl.org>
Thu, 27 May 2021 09:56:02 +0000 (10:56 +0100)
committerPauli <pauli@openssl.org>
Sat, 5 Jun 2021 07:39:27 +0000 (17:39 +1000)
commit7be04a3ac40fb6cf83be2c619dc30625988c6742
tree1fa067011552138e104b42eb78dcdc3894572f00
parent6282d6c28456543734defc45f653adeec1362958
Give ASN.1 objects the ability to report their libctx/propq

Some ASN.1 objects have an embedded libctx/propq. If they have one we
give the ASN.1 code the ability to find these values and use them where
needed. This is used for OSSL_CMP_MSG_dup() and X509_dup().

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15591)
crypto/asn1/a_dup.c
crypto/cmp/cmp_asn.c
crypto/x509/x_x509.c
include/openssl/asn1t.h.in