]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Adding a trace category for PROVIDER calls
authorNeil Horman <nhorman@openssl.org>
Fri, 4 Oct 2024 11:01:30 +0000 (07:01 -0400)
committerNeil Horman <nhorman@openssl.org>
Tue, 19 Nov 2024 13:36:19 +0000 (08:36 -0500)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25630)

crypto/trace.c
include/openssl/trace.h

index 3e10d91fc26386573d8f9f8d3f80c31bf98ee2bb..3538707d4459fd3487bbe975415a8cd421eeabf9 100644 (file)
@@ -140,6 +140,7 @@ static const struct trace_category_st
     TRACE_CATEGORY_(ENCODER),
     TRACE_CATEGORY_(REF_COUNT),
     TRACE_CATEGORY_(HTTP),
+    TRACE_CATEGORY_(PROVIDER),
 }; /* KEEP THIS LIST IN SYNC with #define OSSL_TRACE_CATEGORY_... in trace.h */
 
 const char *OSSL_trace_get_category_name(int num)
index 9a5b56ea5fc4b52e9305cd303181586165c2f24c..98b4ea17cd18bd274e36efd00e2f644496bfaa1d 100644 (file)
@@ -56,8 +56,10 @@ extern "C" {
 # define OSSL_TRACE_CATEGORY_ENCODER            16
 # define OSSL_TRACE_CATEGORY_REF_COUNT          17
 # define OSSL_TRACE_CATEGORY_HTTP               18
+# define OSSL_TRACE_CATEGORY_PROVIDER           19
+
 /* Count of available categories. */
-# define OSSL_TRACE_CATEGORY_NUM                19
+# define OSSL_TRACE_CATEGORY_NUM                20 
 /* KEEP THIS LIST IN SYNC with trace_categories[] in crypto/trace.c */
 
 /* Returns the trace category number for the given |name| */