diff options
author | Rich Salz <rsalz@akamai.com> | 2021-05-19 17:09:49 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2021-05-28 10:04:31 +0200 |
commit | a935791d54078f43209ffbc1886ac5e68772ce34 (patch) | |
tree | 3f130fe3e12b6671584ff421984542579d5268a8 /crypto/trace.c | |
parent | Fix doc typos. (diff) | |
download | openssl-a935791d54078f43209ffbc1886ac5e68772ce34.tar.xz openssl-a935791d54078f43209ffbc1886ac5e68772ce34.zip |
Rework and make DEBUG macros consistent.
Remove unused -DCONF_DEBUG and -DBN_CTX_DEBUG.
Rename REF_PRINT to REF_DEBUG for consistency, and add a new
tracing category and use it for printing reference counts.
Rename -DDEBUG_UNUSED to -DUNUSED_RESULT_DEBUG
Fix BN_DEBUG_RAND so it compiles and, when set, force DEBUG_RAND to
be set also.
Rename engine_debug_ref to be ENGINE_REF_PRINT also for consistency.
Fixes #15357
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15353)
Diffstat (limited to 'crypto/trace.c')
-rw-r--r-- | crypto/trace.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/trace.c b/crypto/trace.c index 0c3a90b002..f012b617ab 100644 --- a/crypto/trace.c +++ b/crypto/trace.c @@ -16,6 +16,7 @@ #include <openssl/trace.h> #include "internal/bio.h" #include "internal/nelem.h" +#include "internal/refcount.h" #include "crypto/cryptlib.h" #include "e_os.h" /* strcasecmp for Windows */ @@ -138,6 +139,7 @@ static const struct trace_category_st trace_categories[] = { TRACE_CATEGORY_(STORE), TRACE_CATEGORY_(DECODER), TRACE_CATEGORY_(ENCODER), + TRACE_CATEGORY_(REF_COUNT) }; const char *OSSL_trace_get_category_name(int num) |