OSSL_CMP_validate_msg

Verify protection and header fields of an incoming CMP message.

Synopsis

Declared in <openssl/cmp.h>

int
OSSL_CMP_validate_msg(
    OSSL_CMP_CTX* ctx,
    OSSL_CMP_MSG const* msg);

Return Value

1 if valid, 0 if invalid, or -1 on error.

Parameters

NameDescription
ctxCMP context with trust and protection settings.
msgCMP message to validate.