linuxkm/lkcapi_glue.c: bring in wolfcrypt/src/misc.c for ForceZero if FIPS_VERSION3_LT(6,0,0).

This commit is contained in:
Daniel Pouzzner
2025-03-29 00:26:31 -05:00
parent 3c16722538
commit 8092ff915c

View File

@@ -37,6 +37,16 @@
#include <linux/fips.h> #include <linux/fips.h>
#endif #endif
#if defined(HAVE_FIPS) && FIPS_VERSION3_LT(6,0,0)
/* need misc.c for ForceZero(). */
#ifdef NO_INLINE
#include <wolfssl/wolfcrypt/misc.h>
#else
#define WOLFSSL_MISC_INCLUDED
#include <wolfcrypt/src/misc.c>
#endif
#endif
#ifndef WOLFSSL_LINUXKM_LKCAPI_PRIORITY #ifndef WOLFSSL_LINUXKM_LKCAPI_PRIORITY
/* Larger number means higher priority. The highest in-tree priority is 4001, /* Larger number means higher priority. The highest in-tree priority is 4001,
* in the Cavium driver. * in the Cavium driver.