Skip to content

Commit 3cebf35

Browse files
committed
Cleanups for IDE/WIN10 user_settings.h to allow for FIPS 140-2 3389 cert. Fixed compiler warning with possible use of uninitialized data.
1 parent 0e35e9c commit 3cebf35

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

IDE/WIN10/user_settings.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
#ifndef _WIN_USER_SETTINGS_H_
22
#define _WIN_USER_SETTINGS_H_
33

4+
/* For FIPS 140-2 3389 build set to "#if 1" */
5+
#if 0
6+
#undef HAVE_FIPS
7+
#define HAVE_FIPS
8+
#undef HAVE_FIPS_VERSION
9+
#define HAVE_FIPS_VERSION 2
10+
#undef HAVE_FIPS_VERSION_MINOR
11+
#define HAVE_FIPS_VERSION_MINOR 0
12+
#endif
13+
414
/* Set the following to 1 for WCv5.0-RC12 build. */
515
#if 0
616
#undef HAVE_FIPS
@@ -67,8 +77,10 @@
6777
#define WOLFSSL_VALIDATE_FFC_IMPORT
6878
#define HAVE_FFDHE_Q
6979
#define HAVE_PUBLIC_FFDHE
80+
#ifdef _WIN64
7081
#define WOLFSSL_AESNI
7182
#define HAVE_INTEL_RDSEED
83+
#endif
7284
#define FORCE_FAILURE_RDSEED
7385
#endif /* FIPS v2 */
7486
#if defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION >= 5)

src/pk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2110,7 +2110,7 @@ int wolfSSL_PEM_write_RSAPrivateKey(XFILE fp, WOLFSSL_RSA *rsa,
21102110
{
21112111
int ret = 1;
21122112
byte* pem = NULL;
2113-
int pLen;
2113+
int pLen = 0;
21142114

21152115
(void)cb;
21162116
(void)arg;

0 commit comments

Comments
 (0)