Adding a trace category for PROVIDER calls

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25630)
This commit is contained in:
Neil Horman 2024-10-04 07:01:30 -04:00
parent 5c5b8d2d7c
commit 193296eaaa
2 changed files with 4 additions and 1 deletions

View 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)

View 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| */