OSSL_trace_set_channel

Attach a BIO as the simple trace channel for category (ownership transfers on success).

Synopsis

Declared in <openssl/trace.h>

int
OSSL_trace_set_channel(
    int category,
    BIO* channel);

Description

Mutually exclusive with OSSL_trace_set_callback() for the same category.

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
categoryOSSL_TRACE_CATEGORY_* value selecting the channel.
channelSink BIO for trace output, or NULL to disable tracing for category.