From 418cca5efdab3a650c288cf87a46e94d516928f7 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Tue, 10 Apr 2018 13:29:19 -0700 Subject: [PATCH] Test Fixes 1. Something changed in the wolfSSL layer with respect to setting some constants for old FIPS mode, didn't take into account new FIPS mode. --- wolfssl/internal.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wolfssl/internal.h b/wolfssl/internal.h index 8c41a5893..5d4bfd4e9 100644 --- a/wolfssl/internal.h +++ b/wolfssl/internal.h @@ -1161,7 +1161,8 @@ enum Misc { MAX_REQUEST_SZ = 256, /* Maximum cert req len (no auth yet */ SESSION_FLUSH_COUNT = 256, /* Flush session cache unless user turns off */ -#ifdef HAVE_FIPS +#if defined(HAVE_FIPS) && \ + (!defined(HAVE_FIPS_VERSION) || (HAVE_FIPS_VERSION < 2)) MAX_SYM_KEY_SIZE = AES_256_KEY_SIZE, #else MAX_SYM_KEY_SIZE = WC_MAX_SYM_KEY_SIZE,