Build and store a certificate chain for the CMP signer certificate.
Declared in <openssl/cmp.h>
int
OSSL_CMP_CTX_build_cert_chain(
OSSL_CMP_CTX* ctx,
X509_STORE* own_trusted,
stack_st_X509* candidates);
1 on success, 0 on error.
| Name | Description |
|---|---|
| ctx | CMP context. |
| own_trusted | Optional trust store for chain validation, or NULL to ignore verification errors. |
| candidates | Optional intermediate certificates to augment the untrusted set. |