Rework and make DEBUG macros consistent.
authorRich Salz <rsalz@akamai.com>
Wed, 19 May 2021 15:09:49 +0000 (11:09 -0400)
committerRichard Levitte <levitte@openssl.org>
Fri, 28 May 2021 08:04:31 +0000 (10:04 +0200)
commita935791d54078f43209ffbc1886ac5e68772ce34
tree3f130fe3e12b6671584ff421984542579d5268a8
parent6bf3692d311ad15d3667e7015bbe1a8f849f3c7b
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)
20 files changed:
CHANGES.md
Configurations/90-team.norelease.conf
Configure
crypto/asn1/tasn_utl.c
crypto/bio/bio_local.h
crypto/bn/bn_exp.c
crypto/bn/bn_gf2m.c
crypto/bn/bn_local.h
crypto/ec/ecp_nistp224.c
crypto/ec/ecp_nistp256.c
crypto/ec/ecp_nistp521.c
crypto/engine/eng_init.c
crypto/engine/eng_lib.c
crypto/engine/eng_list.c
crypto/engine/eng_local.h
crypto/engine/tb_asnmth.c
crypto/trace.c
include/internal/refcount.h
include/openssl/e_os2.h
include/openssl/trace.h