user_settings_dtls.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. /* DTLS configuration including DTLS v.1.3 which requires TLS v.1.3. */
  8. /* The below DTLS configurations can be copied in to another user_settings.h
  9. file that may have other settings that need to be preserved.
  10. */
  11. #define WOLFSSL_TLS13
  12. #define WOLFSSL_DTLS
  13. #define WOLFSSL_DTLS13
  14. #define HAVE_HKDF
  15. #define HAVE_FFDHE_2048
  16. #define WC_RSA_PSS
  17. /* DTLS configuration */
  18. /* Configurations */
  19. #if defined(HAVE_FIPS)
  20. /* FIPS */
  21. #define OPENSSL_EXTRA
  22. #define HAVE_THREAD_LS
  23. #define WOLFSSL_KEY_GEN
  24. #define HAVE_AESGCM
  25. #define HAVE_HASHDRBG
  26. #define WOLFSSL_SHA384
  27. #define WOLFSSL_SHA512
  28. #define NO_PSK
  29. #define NO_RC4
  30. #define NO_DSA
  31. #define NO_MD4
  32. #define GCM_NONCE_MID_SZ 12
  33. #else
  34. /* Enables blinding mode, to prevent timing attacks */
  35. #define WC_RSA_BLINDING
  36. #define NO_MULTIBYTE_PRINT
  37. #if defined(WOLFSSL_LIB)
  38. /* The lib */
  39. #define OPENSSL_EXTRA
  40. #define WOLFSSL_RIPEMD
  41. #define NO_PSK
  42. #define HAVE_EXTENDED_MASTER
  43. #define WOLFSSL_SNIFFER
  44. #define HAVE_SECURE_RENEGOTIATION
  45. #define HAVE_AESGCM
  46. #define WOLFSSL_SHA384
  47. #define WOLFSSL_SHA512
  48. #define HAVE_SUPPORTED_CURVES
  49. #define HAVE_TLS_EXTENSIONS
  50. #define HAVE_ECC
  51. #define ECC_SHAMIR
  52. #define ECC_TIMING_RESISTANT
  53. /* Optional Performance Speedups */
  54. #if 0
  55. /* AESNI on x64 */
  56. #ifdef _WIN64
  57. #define HAVE_INTEL_RDSEED
  58. #define WOLFSSL_AESNI
  59. #endif
  60. /* Single Precision Support for RSA/DH 1024/2048/3072 and
  61. * ECC P-256/P-384 */
  62. #define WOLFSSL_SP
  63. #define WOLFSSL_HAVE_SP_ECC
  64. #define WOLFSSL_HAVE_SP_DH
  65. #define WOLFSSL_HAVE_SP_RSA
  66. #ifdef _WIN64
  67. /* Old versions of MASM compiler do not recognize newer
  68. * instructions. */
  69. #if 0
  70. #define NO_AVX2_SUPPORT
  71. #define NO_MOVBE_SUPPORT
  72. #endif
  73. #define WOLFSSL_SP_ASM
  74. #define WOLFSSL_SP_X86_64_ASM
  75. #endif
  76. #endif
  77. #else
  78. /* The servers and clients */
  79. #define OPENSSL_EXTRA
  80. #define NO_PSK
  81. #endif
  82. #endif /* HAVE_FIPS */
  83. #endif /* _WIN_USER_SETTINGS_H_ */