1
0
mirror of https://github.com/wolfSSL/wolfssl.git synced 2026-10-24 04:09:07 +03:00

wolfssl/wolfcrypt/wc_compat.h and linuxkm/module_exports.c.template: recognize WC_NO_COMPAT_H_REMAPS, and use it to inhibit false kernel symbol exports.

This commit is contained in:
Daniel Pouzzner
2026-09-22 18:09:32 -05:00
parent 5389dedb0f
commit 0309184849
2 changed files with 4 additions and 1 deletions

View File

@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
*/
#define WC_NO_COMPAT_H_REMAPS
#include <wolfssl/wolfcrypt/libwolfssl_sources.h>
#ifdef HAVE_FIPS

View File

@@ -23,7 +23,8 @@
\brief Header file containing wolfCrypt compatibility shims
*/
#if (defined(WOLF_CRYPT_SHA256_H) && !defined(NO_SHA256) && \
#if defined(WC_NO_COMPAT_H_REMAPS) || \
(defined(WOLF_CRYPT_SHA256_H) && !defined(NO_SHA256) && \
!defined(WC_SHA256_TYPE_DEFINED) && !defined(SHA256_NOINLINE)) || \
(defined(WOLF_CRYPT_SHA512_H) && \
(defined(WOLFSSL_SHA512) || defined(WOLFSSL_SHA384)) && \