trace: add PROVIDER_CONF trace category
authorDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Thu, 4 Apr 2019 16:27:15 +0000 (18:27 +0200)
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Thu, 4 Apr 2019 16:35:22 +0000 (18:35 +0200)
Fixes #8667

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8672)

crypto/trace.c
doc/man3/OSSL_trace_set_channel.pod
include/openssl/trace.h

index efcf8be76c5557d20c029d99f092d10c8b5cf63a..c9623b0fde4a1d89a7425494e78b5ab1e8cdca01 100644 (file)
@@ -132,6 +132,7 @@ static const struct trace_category_st trace_categories[] = {
     TRACE_CATEGORY_(PKCS12_DECRYPT),
     TRACE_CATEGORY_(X509V3_POLICY),
     TRACE_CATEGORY_(BN_CTX),
+    TRACE_CATEGORY_(PROVIDER_CONF),
 };
 
 const char *OSSL_trace_get_category_name(int num)
index 46e248f45d067fca8ddbfa52826763802acf78e7..cb349674c45b1c04db93eba8baec54af6245b1ee 100644 (file)
@@ -176,6 +176,10 @@ point during evaluation.
 
 Traces BIGNUM context operations.
 
+=item C<OSSL_TRACE_CATEGORY_PROVIDER_CONF>
+
+Traces the OSSL_PROVIDER configuration.
+
 =back
 
 There is also C<OSSL_TRACE_CATEGORY_ALL>, which works as a fallback
index 48c98ca396bfda7356dfb364383ada3aac9cdeaa..aff1a32a189b3a76386ba0d7874bd36ae0394ada 100644 (file)
@@ -49,7 +49,8 @@ extern "C" {
 # define OSSL_TRACE_CATEGORY_PKCS12_DECRYPT     10
 # define OSSL_TRACE_CATEGORY_X509V3_POLICY      11
 # define OSSL_TRACE_CATEGORY_BN_CTX             12
-# define OSSL_TRACE_CATEGORY_NUM                13
+# define OSSL_TRACE_CATEGORY_PROVIDER_CONF      13
+# define OSSL_TRACE_CATEGORY_NUM                14
 
 /* Returns the trace category number for the given |name| */
 int OSSL_trace_get_category_num(const char *name);