OSSL_CMP_validate_cert_path

Validate that cert chains to a trust anchor in trusted_store.

Synopsis

Declared in <openssl/cmp.h>

int
OSSL_CMP_validate_cert_path(
    OSSL_CMP_CTX const* ctx,
    X509_STORE* trusted_store,
    X509* cert);

Return Value

1 if the path validates, 0 if not, or -1 on error.

Parameters

NameDescription
ctxCMP context (used for untrusted intermediates and callbacks).
trusted_storeTrust store containing acceptable anchors.
certCertificate to validate.