From 730cede82d3e31c966e04e0b6189d41cc99e0886 Mon Sep 17 00:00:00 2001 From: toddouska Date: Wed, 12 Nov 2014 17:09:16 -0800 Subject: [PATCH] add HAVE_FORCE_FIPS_FAILURE for operational testing --- cyassl/ctaocrypt/fips_test.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cyassl/ctaocrypt/fips_test.h b/cyassl/ctaocrypt/fips_test.h index b492a4fd7..dae090b61 100644 --- a/cyassl/ctaocrypt/fips_test.h +++ b/cyassl/ctaocrypt/fips_test.h @@ -44,6 +44,11 @@ CYASSL_API int wolfCrypt_SetCb_fips(wolfCrypt_fips_cb cbf); CYASSL_API int wolfCrypt_GetStatus_fips(void); CYASSL_API const char* wolfCrypt_GetCoreHash_fips(void); +#ifdef HAVE_FORCE_FIPS_FAILURE + /* Public function to force failure mode for operational testing */ + CYASSL_API int wolfCrypt_SetStatus_fips(int); +#endif + #ifdef __cplusplus } /* extern "C" */