user_settings.h
1 #ifndef _WIN_USER_SETTINGS_H_
2 #define _WIN_USER_SETTINGS_H_
3 
4 /* Verify this is Windows */
5 #ifndef _WIN32
6 #error This user_settings.h header is only designed for Windows
7 #endif
8 
9 /* Configurations */
10 #if defined(HAVE_FIPS)
11  /* FIPS */
12  #define OPENSSL_EXTRA
13  #define HAVE_THREAD_LS
14  #define WOLFSSL_KEY_GEN
15  #define HAVE_AESGCM
16  #define HAVE_HASHDRBG
17  #define WOLFSSL_SHA384
18  #define WOLFSSL_SHA512
19  #define NO_PSK
20  #define NO_HC128
21  #define NO_RC4
22  #define NO_RABBIT
23  #define NO_DSA
24  #define NO_MD4
25 
26  #if defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION >= 2)
27  #define WOLFSSL_SHA224
28  #define WOLFSSL_SHA3
29  #define WC_RSA_PSS
30  #define WC_RSA_NO_PADDING
31  #define HAVE_ECC
32  #define ECC_SHAMIR
33  #define HAVE_ECC_CDH
34  #define ECC_TIMING_RESISTANT
35  #define TFM_TIMING_RESISTANT
36  #define WOLFSSL_AES_COUNTER
37  #define WOLFSSL_AES_DIRECT
38  #define HAVE_AES_ECB
39  #define HAVE_AESCCM
40  #define WOLFSSL_CMAC
41  #define HAVE_HKDF
42  #define WOLFSSL_VALIDATE_ECC_IMPORT
43  #define WOLFSSL_VALIDATE_FFC_IMPORT
44  #define HAVE_FFDHE_Q
45  #define WOLFSSL_AESNI
46  #define HAVE_INTEL_RDSEED
47  #define FORCE_FAILURE_RDSEED
48  #endif /* FIPS v2 */
49 #else
50  /* Enables blinding mode, to prevent timing attacks */
51  #define WC_RSA_BLINDING
52 
53  #if defined(WOLFSSL_LIB)
54  /* The lib */
55  #define OPENSSL_EXTRA
56  #define WOLFSSL_RIPEMD
57  #define WOLFSSL_SHA512
58  #define NO_PSK
59  #define HAVE_EXTENDED_MASTER
60  #define WOLFSSL_SNIFFER
61  #define HAVE_TLS_EXTENSIONS
62  #define HAVE_SECURE_RENEGOTIATION
63 
64  #define HAVE_AESGCM
65  #define WOLFSSL_SHA384
66  #define WOLFSSL_SHA512
67 
68  #define HAVE_SUPPORTED_CURVES
69  #define HAVE_TLS_EXTENSIONS
70 
71  #define HAVE_ECC
72  #define ECC_SHAMIR
73  #define ECC_TIMING_RESISTANT
74  #else
75  /* The servers and clients */
76  #define OPENSSL_EXTRA
77  #define NO_PSK
78  #endif
79 #endif /* HAVE_FIPS */
80 
81 #endif /* _WIN_USER_SETTINGS_H_ */