diff options
author | Dr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> | 2019-03-21 18:27:50 +0100 |
---|---|---|
committer | Dr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> | 2019-03-30 00:01:55 +0100 |
commit | 02bd2d7f5ce30928baf11226fa31125337251e49 (patch) | |
tree | f81f490c3e672c5901adb4ff2771ada0178c3fe9 /crypto/trace.c | |
parent | 6a411436a5642a4c2ca934a649eced7118f3793d (diff) | |
download | openssl-02bd2d7f5ce30928baf11226fa31125337251e49.tar.gz |
trace: apps/openssl: print the correct category name
Previously, if the openssl application was run with OPENSSL_TRACE=any,
all trace output would just show 'ANY' as the category name, which was
not very useful. To get the correct category name printed in the trace
output, the openssl application now registers separate channels for
each category.
The trace API is unchanged, it is still possible for an application to
register a single channel for the 'ANY' category to see all outputt,
if it does not need this level of detail.
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8552)
Diffstat (limited to 'crypto/trace.c')
-rw-r--r-- | crypto/trace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/trace.c b/crypto/trace.c index 5e2fec299a..70e93c292d 100644 --- a/crypto/trace.c +++ b/crypto/trace.c @@ -330,7 +330,7 @@ int OSSL_trace_set_channel(int category, BIO *channel) #ifndef OPENSSL_NO_TRACE if (category >= 0 && category < OSSL_TRACE_CATEGORY_NUM) return set_trace_data(category, SIMPLE_CHANNEL, &channel, NULL, NULL, - trace_attach_cb, trace_detach_cb)) + trace_attach_cb, trace_detach_cb); #endif return 0; } |