Ensure libctx/propq is propagated when handling X509_REQ
authorMatt Caswell <matt@openssl.org>
Thu, 27 May 2021 14:03:06 +0000 (15:03 +0100)
committerPauli <pauli@openssl.org>
Sat, 5 Jun 2021 07:39:27 +0000 (17:39 +1000)
commitd2b6c06274f37c5c6c967939ee556c4be5b568d0
tree8aa39fb3aa61f76fe8a9bf4728e8badb5b970814
parent7be04a3ac40fb6cf83be2c619dc30625988c6742
Ensure libctx/propq is propagated when handling X509_REQ

When we create via d2i or dup an X509_REQ we should ensure that the libctx
is properly propagated. We also ensure we create X509_REQ objects with the
proper libctx assigned in the CMP tests.

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/x509/x_all.c
crypto/x509/x_req.c
test/cmp_client_test.c
test/cmp_msg_test.c
test/testutil.h
test/testutil/load.c