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:
@@ -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
|
||||
|
||||
@@ -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)) && \
|
||||
|
||||
Reference in New Issue
Block a user