user_settings.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #ifndef _WIN_USER_SETTINGS_H_
  2. #define _WIN_USER_SETTINGS_H_
  3. /* Verify this is Windows */
  4. #ifndef _WIN32
  5. #error This user_settings.h header is only designed for Windows
  6. #endif
  7. /* Configurations */
  8. #if defined(HAVE_FIPS)
  9. /* FIPS */
  10. #define OPENSSL_EXTRA
  11. #define HAVE_THREAD_LS
  12. #define WOLFSSL_KEY_GEN
  13. #define HAVE_AESGCM
  14. #define HAVE_HASHDRBG
  15. #define WOLFSSL_SHA384
  16. #define WOLFSSL_SHA512
  17. #define NO_PSK
  18. #define NO_HC128
  19. #define NO_RC4
  20. #define NO_RABBIT
  21. #define NO_DSA
  22. #define NO_MD4
  23. #else
  24. /* Enables blinding mode, to prevent timing attacks */
  25. #define WC_RSA_BLINDING
  26. #if defined(WOLFSSL_LIB)
  27. /* The lib */
  28. #define OPENSSL_EXTRA
  29. #define WOLFSSL_RIPEMD
  30. #define WOLFSSL_SHA512
  31. #define NO_PSK
  32. #define HAVE_EXTENDED_MASTER
  33. #define WOLFSSL_SNIFFER
  34. #define HAVE_TLS_EXTENSIONS
  35. #define HAVE_SECURE_RENEGOTIATION
  36. #define HAVE_AESGCM
  37. #define WOLFSSL_SHA384
  38. #define WOLFSSL_SHA512
  39. #define HAVE_SUPPORTED_CURVES
  40. #define HAVE_TLS_EXTENSIONS
  41. #define HAVE_ECC
  42. #define ECC_SHAMIR
  43. #define ECC_TIMING_RESISTANT
  44. #else
  45. /* The servers and clients */
  46. #define OPENSSL_EXTRA
  47. #define NO_PSK
  48. #endif
  49. #endif /* HAVE_FIPS */
  50. #endif /* _WIN_USER_SETTINGS_H_ */