From e2379c4956099294994e090b9bede94bbbbdcab1 Mon Sep 17 00:00:00 2001 From: auth12 Date: Thu, 16 Jul 2020 13:37:51 +0100 Subject: Added windows support on client. --- client/wolfssl/IDE/WIN/user_settings.h | 76 ++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 client/wolfssl/IDE/WIN/user_settings.h (limited to 'client/wolfssl/IDE/WIN/user_settings.h') diff --git a/client/wolfssl/IDE/WIN/user_settings.h b/client/wolfssl/IDE/WIN/user_settings.h new file mode 100644 index 0000000..d5fc044 --- /dev/null +++ b/client/wolfssl/IDE/WIN/user_settings.h @@ -0,0 +1,76 @@ +#ifndef _WIN_USER_SETTINGS_H_ +#define _WIN_USER_SETTINGS_H_ + +/* Verify this is Windows */ +#ifndef _WIN32 +#error This user_settings.h header is only designed for Windows +#endif + +/* Configurations */ +#if defined(HAVE_FIPS) + /* FIPS */ + #define OPENSSL_EXTRA + #define HAVE_THREAD_LS + #define WOLFSSL_KEY_GEN + #define HAVE_AESGCM + #define HAVE_HASHDRBG + #define WOLFSSL_SHA384 + #define WOLFSSL_SHA512 + #define NO_PSK + #define NO_HC128 + #define NO_RC4 + #define NO_RABBIT + #define NO_DSA + #define NO_MD4 + + #define GCM_NONCE_MID_SZ 12 +#else + /* Enables blinding mode, to prevent timing attacks */ + #define WC_RSA_BLINDING + #define NO_MULTIBYTE_PRINT + + #if defined(WOLFSSL_LIB) + /* The lib */ + #define OPENSSL_EXTRA + #define WOLFSSL_RIPEMD + #define WOLFSSL_SHA512 + #define NO_PSK + #define HAVE_EXTENDED_MASTER + #define WOLFSSL_SNIFFER + #define HAVE_TLS_EXTENSIONS + #define HAVE_SECURE_RENEGOTIATION + + #define HAVE_AESGCM + #define WOLFSSL_SHA384 + #define WOLFSSL_SHA512 + + #define HAVE_SUPPORTED_CURVES + #define HAVE_TLS_EXTENSIONS + + #define HAVE_ECC + #define ECC_SHAMIR + #define ECC_TIMING_RESISTANT + + /* Optional Performance Speedups */ + #if 0 + /* AESNI on x64 */ + #ifdef _WIN64 + #define HAVE_INTEL_RDSEED + #define WOLFSSL_AESNI + #endif + + /* Single Precision Support for RSA/DH 1024/2048/3072 and ECC P-256 */ + #define WOLFSSL_SP + #define WOLFSSL_HAVE_SP_ECC + #define WOLFSSL_HAVE_SP_DH + #define WOLFSSL_HAVE_SP_RSA + #endif + + #else + /* The servers and clients */ + #define OPENSSL_EXTRA + #define NO_PSK + #endif +#endif /* HAVE_FIPS */ + +#endif /* _WIN_USER_SETTINGS_H_ */ -- cgit v1.2.3 From 4e6a09d486ed462ee4cf38c3735a12d530dc09d4 Mon Sep 17 00:00:00 2001 From: auth12 <67507608+auth12@users.noreply.github.com> Date: Sun, 19 Jul 2020 11:45:43 -0700 Subject: Added asmjit. Fixed solution file. --- client/wolfssl/IDE/WIN/user_settings.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'client/wolfssl/IDE/WIN/user_settings.h') diff --git a/client/wolfssl/IDE/WIN/user_settings.h b/client/wolfssl/IDE/WIN/user_settings.h index d5fc044..2c477bd 100644 --- a/client/wolfssl/IDE/WIN/user_settings.h +++ b/client/wolfssl/IDE/WIN/user_settings.h @@ -31,12 +31,10 @@ #if defined(WOLFSSL_LIB) /* The lib */ - #define OPENSSL_EXTRA - #define WOLFSSL_RIPEMD +#define NO_WOLFSSL_SERVER #define WOLFSSL_SHA512 #define NO_PSK #define HAVE_EXTENDED_MASTER - #define WOLFSSL_SNIFFER #define HAVE_TLS_EXTENSIONS #define HAVE_SECURE_RENEGOTIATION -- cgit v1.2.3