OSSL_TRACE: ensure it's initialised
authorRichard Levitte <levitte@openssl.org>
Fri, 21 Jun 2019 09:20:15 +0000 (11:20 +0200)
committerRichard Levitte <levitte@openssl.org>
Sat, 22 Jun 2019 07:02:22 +0000 (09:02 +0200)
commitfe26f798526c14a3f8c9bb55d0eaf8eaa0d086e1
tree60f87ca7050e1dc46a79657e7fa9276ec09ae1c6
parentf8922b5107d098c78f846c8c999f96111345de8d
OSSL_TRACE: ensure it's initialised

When OSSL_TRACE functionality is called before anything else, it finds
itself uninitialised, i.e. its global lock hasn't been created yet.

Fortunately, we have an internal general setup function for the trace
functionality, that makes for a perfect spot to trigger initialisation.

Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/9212)
crypto/trace.c