[#OSSL_CMP_validate_msg]
= OSSL&lowbar;CMP&lowbar;validate&lowbar;msg
:mrdocs:

Verify protection and header fields of an incoming CMP message&period;

== Synopsis

Declared in `&lt;openssl&sol;cmp&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;CMP&lowbar;validate&lowbar;msg(
    xref:OSSL_CMP_CTX.adoc[OSSL&lowbar;CMP&lowbar;CTX]* ctx,
    xref:OSSL_CMP_MSG.adoc[OSSL&lowbar;CMP&lowbar;MSG] const* msg);
----

== Return Value

1 if valid, 0 if invalid, or &hyphen;1 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| CMP context with trust and protection settings&period;
| *msg*
| CMP message to validate&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
