Verify protection and header fields of an incoming CMP message.
Declared in <openssl/cmp.h>
int
OSSL_CMP_validate_msg(
OSSL_CMP_CTX* ctx,
OSSL_CMP_MSG const* msg);
1 if valid, 0 if invalid, or -1 on error.
| Name | Description |
|---|---|
| ctx | CMP context with trust and protection settings. |
| msg | CMP message to validate. |