OSSL_CMP_CTX_build_cert_chain

Build and store a certificate chain for the CMP signer certificate.

Synopsis

Declared in <openssl/cmp.h>

int
OSSL_CMP_CTX_build_cert_chain(
    OSSL_CMP_CTX* ctx,
    X509_STORE* own_trusted,
    stack_st_X509* candidates);

Return Value

1 on success, 0 on error.

Parameters

NameDescription
ctxCMP context.
own_trustedOptional trust store for chain validation, or NULL to ignore verification errors.
candidatesOptional intermediate certificates to augment the untrusted set.