]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Disable tracing within the FIPS module
authorJon Spillett <jon.spillett@oracle.com>
Mon, 31 May 2021 03:14:24 +0000 (13:14 +1000)
committerShane Lontis <shane.lontis@oracle.com>
Wed, 2 Jun 2021 21:32:54 +0000 (07:32 +1000)
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/15537)

include/openssl/trace.h

index 58e5cc8f11de70b7e2834fe5d322c240e567e810..e88ad9d13d89734b10bad9edfe1e5ae63099236d 100644 (file)
@@ -198,7 +198,7 @@ void OSSL_trace_end(int category, BIO *channel);
  * call OSSL_TRACE_CANCEL(category).
  */
 
-# ifndef OPENSSL_NO_TRACE
+# if !defined OPENSSL_NO_TRACE && !defined FIPS_MODULE
 
 #  define OSSL_TRACE_BEGIN(category) \
     do { \
@@ -237,7 +237,7 @@ void OSSL_trace_end(int category, BIO *channel);
  *         ...
  *     }
  */
-# ifndef OPENSSL_NO_TRACE
+# if !defined OPENSSL_NO_TRACE && !defined FIPS_MODULE
 
 #  define OSSL_TRACE_ENABLED(category) \
     OSSL_trace_enabled(OSSL_TRACE_CATEGORY_##category)