[openssl/openssl] 78bd64: Avoid ifdefs in trace categories

Tomáš Mráz noreply at github.com
Thu Dec 22 10:37:04 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 78bd646b2f6a18cf8515e05a5f3efadff03b3920
      https://github.com/openssl/openssl/commit/78bd646b2f6a18cf8515e05a5f3efadff03b3920
  Author: Tomas Mraz <tomas at openssl.org>
  Date:   2022-12-22 (Thu, 22 Dec 2022)

  Changed paths:
    M crypto/trace.c
    M include/openssl/trace.h

  Log Message:
  -----------
  Avoid ifdefs in trace categories

The trace code assumes all categories are present and
the category numbers are equal to the index in the table.

Fixes #19915

Reviewed-by: Shane Lontis <shane.lontis at oracle.com>
Reviewed-by: Dmitry Belyavskiy <beldmit at gmail.com>
(Merged from https://github.com/openssl/openssl/pull/19917)


  Commit: e64a169fc678b5e57db28d06c25020d69bc61e4c
      https://github.com/openssl/openssl/commit/e64a169fc678b5e57db28d06c25020d69bc61e4c
  Author: Tomas Mraz <tomas at openssl.org>
  Date:   2022-12-22 (Thu, 22 Dec 2022)

  Changed paths:
    M test/trace_api_test.c

  Log Message:
  -----------
  Add testcase for OSSL_trace_set_callback()

Also test the OSSL_TRACE_CATEGORY_TRACE tracing - this fails
on address sanitizer runs without the fix for #19915

Reviewed-by: Shane Lontis <shane.lontis at oracle.com>
Reviewed-by: Dmitry Belyavskiy <beldmit at gmail.com>
(Merged from https://github.com/openssl/openssl/pull/19917)


Compare: https://github.com/openssl/openssl/compare/5a8fcd27bb1b...e64a169fc678


More information about the openssl-commits mailing list