OSSL_trace_string

Write data to a trace BIO as text, optionally masking controls and truncating.

Synopsis

Declared in <openssl/trace.h>

int
OSSL_trace_string(
    BIO* out,
    int text,
    int full,
    unsigned char const* data,
    size_t size);

Return Value

Number of characters emitted, or -1 on error.

Parameters

NameDescription
outDestination BIO (typically the channel from OSSL_trace_begin()).
textNon-zero to emit raw text; zero masks control characters except newlines.
fullNon-zero to emit the full buffer; zero truncates to OSSL_TRACE_STRING_MAX characters.
dataBytes to print.
sizeNumber of bytes at data.