OSSL_CMP_CTX_set1_srvCert

Pin the expected CMP server certificate for response verification.

Synopsis

Declared in <openssl/cmp.h>

int
OSSL_CMP_CTX_set1_srvCert(
    OSSL_CMP_CTX* ctx,
    X509* cert);

Return Value

1 on success, 0 on error.

Parameters

NameDescription
ctxCMP context.
certServer certificate to trust directly, or NULL to clear.