OSSL_CMP_print_to_bio

Format a CMP log record (component, location, severity, message) onto a BIO.

Synopsis

Declared in <openssl/cmp_util.h>

int
OSSL_CMP_print_to_bio(
    BIO* bio,
    char const* component,
    char const* file,
    int line,
    OSSL_CMP_severity level,
    char const* msg);

Return Value

1 on success, or 0 on write failure.

Parameters

NameDescription
bioDestination BIO.
componentFunction or module name; if NULL/empty/"(unknown function)", "CMP" is used.
fileSource file pathname, or NULL.
lineSource line number, or 0 if unknown.
levelSeverity (OSSL_CMP_LOG_*).
msgNUL-terminated message text.