OSSL_trace_set_callback

Enable tracing for category by sending output to callback.

Synopsis

Declared in <openssl/trace.h>

int
OSSL_trace_set_callback(
    int category,
    OSSL_trace_cb callback,
    void* data);

Description

Mutually exclusive with OSSL_trace_set_channel() for the same category.

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
categoryOSSL_TRACE_CATEGORY_* value selecting the channel.
callbackTrace callback, or NULL to disable tracing for category.
dataUser pointer passed to callback on each invocation.