Enable tracing for category by sending output to callback.
Declared in <openssl/trace.h>
int
OSSL_trace_set_callback(
int category,
OSSL_trace_cb callback,
void* data);
Mutually exclusive with OSSL_trace_set_channel() for the same category.
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| category | OSSL_TRACE_CATEGORY_* value selecting the channel. |
| callback | Trace callback, or NULL to disable tracing for category. |
| data | User pointer passed to callback on each invocation. |