trace: apps/openssl: print the correct category name
authorDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Thu, 21 Mar 2019 17:27:50 +0000 (18:27 +0100)
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Fri, 29 Mar 2019 23:01:55 +0000 (00:01 +0100)
commit02bd2d7f5ce30928baf11226fa31125337251e49
treef81f490c3e672c5901adb4ff2771ada0178c3fe9
parent6a411436a5642a4c2ca934a649eced7118f3793d
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)
apps/openssl.c
crypto/trace.c
doc/man3/OSSL_trace_set_channel.pod
include/openssl/trace.h