mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-04-30 19:54:39 +00:00
cmp_msg.c: Copy libctx and propq of CMP_CTX to newly enrolled certificate
Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/11808)
This commit is contained in:
parent
28e9f62b2d
commit
cac30a69bc
@ -19,6 +19,7 @@
|
|||||||
#include <openssl/crmf.h>
|
#include <openssl/crmf.h>
|
||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
#include <openssl/x509.h>
|
#include <openssl/x509.h>
|
||||||
|
#include "crypto/x509.h" /* for x509_set0_libctx() */
|
||||||
|
|
||||||
DEFINE_STACK_OF(OSSL_CMP_CERTSTATUS)
|
DEFINE_STACK_OF(OSSL_CMP_CERTSTATUS)
|
||||||
DEFINE_STACK_OF(OSSL_CMP_ITAV)
|
DEFINE_STACK_OF(OSSL_CMP_ITAV)
|
||||||
@ -994,6 +995,8 @@ X509 *ossl_cmp_certresponse_get1_certificate(EVP_PKEY *privkey,
|
|||||||
}
|
}
|
||||||
if (crt == NULL)
|
if (crt == NULL)
|
||||||
CMPerr(0, CMP_R_CERTIFICATE_NOT_FOUND);
|
CMPerr(0, CMP_R_CERTIFICATE_NOT_FOUND);
|
||||||
|
else
|
||||||
|
(void)x509_set0_libctx(crt, ctx->libctx, ctx->propq);
|
||||||
return crt;
|
return crt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user