user_settings.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. #if defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION >= 2)
  24. #define WOLFSSL_SHA224
  25. #define WOLFSSL_SHA3
  26. #define WC_RSA_PSS
  27. #define WC_RSA_NO_PADDING
  28. #define HAVE_ECC
  29. #define ECC_SHAMIR
  30. #define HAVE_ECC_CDH
  31. #define ECC_TIMING_RESISTANT
  32. #define TFM_TIMING_RESISTANT
  33. #define WOLFSSL_AES_COUNTER
  34. #define WOLFSSL_AES_DIRECT
  35. #define HAVE_AES_ECB
  36. #define HAVE_AESCCM
  37. #define WOLFSSL_CMAC
  38. #define HAVE_HKDF
  39. #define WOLFSSL_VALIDATE_ECC_IMPORT
  40. #define WOLFSSL_VALIDATE_FFC_IMPORT
  41. #define HAVE_FFDHE_Q
  42. #endif /* FIPS v2 */
  43. #else
  44. /* Enables blinding mode, to prevent timing attacks */
  45. #define WC_RSA_BLINDING
  46. #if defined(WOLFSSL_LIB)
  47. /* The lib */
  48. #define OPENSSL_EXTRA
  49. #define WOLFSSL_RIPEMD
  50. #define WOLFSSL_SHA512
  51. #define NO_PSK
  52. #define HAVE_EXTENDED_MASTER
  53. #define WOLFSSL_SNIFFER
  54. #define HAVE_TLS_EXTENSIONS
  55. #define HAVE_SECURE_RENEGOTIATION
  56. #define HAVE_AESGCM
  57. #define WOLFSSL_SHA384
  58. #define WOLFSSL_SHA512
  59. #define HAVE_SUPPORTED_CURVES
  60. #define HAVE_TLS_EXTENSIONS
  61. #define HAVE_ECC
  62. #define ECC_SHAMIR
  63. #define ECC_TIMING_RESISTANT
  64. #else
  65. /* The servers and clients */
  66. #define OPENSSL_EXTRA
  67. #define NO_PSK
  68. #endif
  69. #endif /* HAVE_FIPS */
  70. #endif /* _WIN_USER_SETTINGS_H_ */