Add a QUERY trace category

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-05 09:51:00 -04:00
parent 11539fd734
commit 3eed43f8a1
2 changed files with 3 additions and 1 deletions

View File

@ -141,6 +141,7 @@ static const struct trace_category_st
TRACE_CATEGORY_(REF_COUNT), TRACE_CATEGORY_(REF_COUNT),
TRACE_CATEGORY_(HTTP), TRACE_CATEGORY_(HTTP),
TRACE_CATEGORY_(PROVIDER), TRACE_CATEGORY_(PROVIDER),
TRACE_CATEGORY_(QUERY),
}; /* KEEP THIS LIST IN SYNC with #define OSSL_TRACE_CATEGORY_... in trace.h */ }; /* KEEP THIS LIST IN SYNC with #define OSSL_TRACE_CATEGORY_... in trace.h */
const char *OSSL_trace_get_category_name(int num) const char *OSSL_trace_get_category_name(int num)

View File

@ -57,9 +57,10 @@ extern "C" {
# define OSSL_TRACE_CATEGORY_REF_COUNT 17 # define OSSL_TRACE_CATEGORY_REF_COUNT 17
# define OSSL_TRACE_CATEGORY_HTTP 18 # define OSSL_TRACE_CATEGORY_HTTP 18
# define OSSL_TRACE_CATEGORY_PROVIDER 19 # define OSSL_TRACE_CATEGORY_PROVIDER 19
# define OSSL_TRACE_CATEGORY_QUERY 20
/* Count of available categories. */ /* Count of available categories. */
# define OSSL_TRACE_CATEGORY_NUM 20 # define OSSL_TRACE_CATEGORY_NUM 21
/* KEEP THIS LIST IN SYNC with trace_categories[] in crypto/trace.c */ /* KEEP THIS LIST IN SYNC with trace_categories[] in crypto/trace.c */
/* Returns the trace category number for the given |name| */ /* Returns the trace category number for the given |name| */