From 045fc4d6868c411657625b5e06480f3791a0cddc Mon Sep 17 00:00:00 2001 From: David Garske Date: Thu, 15 Oct 2020 08:27:46 -0700 Subject: [PATCH] Fixes to support overriding minimum key sizes for examples. --- wolfssl/test.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wolfssl/test.h b/wolfssl/test.h index f9b56657e..a781a4e08 100644 --- a/wolfssl/test.h +++ b/wolfssl/test.h @@ -302,12 +302,16 @@ #if !defined(NO_FILESYSTEM) && defined(WOLFSSL_MAX_STRENGTH) #define DEFAULT_MIN_RSAKEY_BITS 2048 #else + #ifndef DEFAULT_MIN_RSAKEY_BITS #define DEFAULT_MIN_RSAKEY_BITS 1024 + #endif #endif #if !defined(NO_FILESYSTEM) && defined(WOLFSSL_MAX_STRENGTH) #define DEFAULT_MIN_ECCKEY_BITS 256 #else + #ifndef DEFAULT_MIN_ECCKEY_BITS #define DEFAULT_MIN_ECCKEY_BITS 224 + #endif #endif /* all certs relative to wolfSSL home directory now */