[#OSSL_CMP_print_to_bio]
= OSSL&lowbar;CMP&lowbar;print&lowbar;to&lowbar;bio
:mrdocs:

Format a CMP log record (component, location, severity, message) onto a BIO&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;CMP&lowbar;print&lowbar;to&lowbar;bio(
    xref:BIO.adoc[BIO]* bio,
    char const* component,
    char const* file,
    int line,
    xref:OSSL_CMP_severity.adoc[OSSL&lowbar;CMP&lowbar;severity] level,
    char const* msg);
----

== Return Value

1 on success, or 0 on write failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bio*
| Destination BIO&period;
| *component*
| Function or module name&semi; if NULL&sol;empty&sol;&quot;(unknown function)&quot;, &quot;CMP&quot; is used&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 message text&period;
|===


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