[#OSSL_CMP_log_cb_t]
= OSSL&lowbar;CMP&lowbar;log&lowbar;cb&lowbar;t
:mrdocs:

Callback type for CMP logging&colon; receive component, source location, severity, and message&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
typedef int(* OSSL&lowbar;CMP&lowbar;log&lowbar;cb&lowbar;t)(char const*, char const*, int, xref:OSSL_CMP_severity.adoc[OSSL&lowbar;CMP&lowbar;severity], char const*);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *func*
| Component or function name, or NULL&period;
| *file*
| Source file pathname, or NULL&period;
| *line*
| Source line number, or 0 if unknown&period;
| *level*
| Severity (OSSL&lowbar;CMP&lowbar;LOG&lowbar;&ast;)&period;
| *msg*
| NUL&hyphen;terminated log line, typically ending with a newline&period;
|===


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