From 69483366fbec8af6466c42af05e2920f254cff41 Mon Sep 17 00:00:00 2001 From: Nickolas Lapp Date: Wed, 5 Oct 2016 10:20:13 -0600 Subject: [PATCH] Fixes for fips compatibility --- wolfssl/wolfcrypt/wc_port.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wolfssl/wolfcrypt/wc_port.h b/wolfssl/wolfcrypt/wc_port.h index b170b6b3a..23dd4e078 100644 --- a/wolfssl/wolfcrypt/wc_port.h +++ b/wolfssl/wolfcrypt/wc_port.h @@ -85,6 +85,13 @@ #endif #endif +/* For FIPS keep the function names the same */ +#ifdef HAVE_FIPS +#define wc_InitMutex InitMutex +#define wc_FreeMutex FreeMutex +#define wc_LockMutex LockMutex +#define wc_UnLockMutex UnLockMutex +#endif /* HAVE_FIPS */ #ifdef SINGLE_THREADED typedef int wolfSSL_Mutex;