Avoid including decoder/encoder/store headers into fips module
authorTomas Mraz <tomas@openssl.org>
Wed, 22 Jun 2022 13:08:18 +0000 (15:08 +0200)
committerTomas Mraz <tomas@openssl.org>
Fri, 24 Jun 2022 06:26:42 +0000 (08:26 +0200)
Fixes #18618

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18630)

(cherry picked from commit b07db93f6b38aaea8b131f7dcfba7ad7386196d2)

crypto/provider_core.c

index cacc2c4a6a345a25042389d4cf90c8e2657505d0..072e29e0237d5e3a25ffa551ef1e9ac2f0e05d23 100644 (file)
 #include <openssl/params.h>
 #include <openssl/opensslv.h>
 #include "crypto/cryptlib.h"
+#ifndef FIPS_MODULE
 #include "crypto/decoder.h" /* ossl_decoder_store_cache_flush */
 #include "crypto/encoder.h" /* ossl_encoder_store_cache_flush */
-#include "crypto/evp.h" /* evp_method_store_cache_flush */
 #include "crypto/store.h" /* ossl_store_loader_store_cache_flush */
+#endif
+#include "crypto/evp.h" /* evp_method_store_cache_flush */
 #include "crypto/rand.h"
 #include "internal/nelem.h"
 #include "internal/thread_once.h"