user_settings.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. /* user_settings.h
  2. *
  3. * Copyright (C) 2006-2024 wolfSSL Inc.
  4. *
  5. * This file is part of wolfSSL.
  6. *
  7. * wolfSSL is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * wolfSSL is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
  20. */
  21. /* These are the build settings used by the Visual Studio CSharp wrapper */
  22. #ifndef _WIN_CSHARP_USER_SETTINGS_H_
  23. #define _WIN_CSHARP_USER_SETTINGS_H_
  24. /* Features */
  25. #define NO_OLD_TLS
  26. #define WOLFSSL_TLS13
  27. #define WOLFSSL_DTLS
  28. #define WOLFSSL_DTLS13
  29. #define WOLFSSL_SEND_HRR_COOKIE
  30. #define WOLFSSL_DTLS_CID
  31. #define HAVE_EXTENDED_MASTER
  32. #define HAVE_SECURE_RENEGOTIATION
  33. #define HAVE_SUPPORTED_CURVES
  34. #define HAVE_TLS_EXTENSIONS
  35. #define WOLFSSL_CERT_EXT
  36. #define WOLFSSL_CERT_REQ
  37. #define WOLFSSL_CERT_GEN
  38. #define HAVE_ENCRYPT_THEN_MAC
  39. #define HAVE_ECC_ENCRYPT
  40. #define WOLFSSL_PUBLIC_MP
  41. #define NO_MULTIBYTE_PRINT
  42. #define WOLFSSL_KEY_GEN /* RSA key gen */
  43. #define WOLFSSL_ASN_TEMPLATE /* default */
  44. #define WOLFSSL_SHA3
  45. #if 0
  46. #define OPENSSL_EXTRA
  47. #endif
  48. #define HAVE_CRL
  49. #if 0
  50. /* start thread that can monitor CRL directory */
  51. #define HAVE_CRL_MONITOR
  52. #endif
  53. /* Algorithms */
  54. #define HAVE_ED25519
  55. #define HAVE_CURVE25519
  56. #define HAVE_AESGCM
  57. #define WOLFSSL_AESGCM_STREAM
  58. #define WOLFSSL_SHA384
  59. #define WOLFSSL_SHA512
  60. #define HAVE_HKDF
  61. #undef NO_DH
  62. #define HAVE_PUBLIC_FFDHE
  63. #define HAVE_FFDHE_2048
  64. #define HAVE_FFDHE_4096
  65. #undef NO_RSA
  66. #define WC_RSA_PSS
  67. #define WOLFSSL_PSS_LONG_SALT
  68. #define WC_RSA_BLINDING
  69. #define HAVE_ECC
  70. #define ECC_SHAMIR
  71. #define ECC_TIMING_RESISTANT
  72. #define HAVE_COMP_KEY
  73. /* Disable features */
  74. #define NO_PSK
  75. /* Disable Algorithms */
  76. #define NO_DES3
  77. #define NO_DSA
  78. #define NO_RC4
  79. #define NO_MD4
  80. #define NO_MD5
  81. #define NO_SHA
  82. /* Math */
  83. /* Single Precision Support for RSA/DH 1024/2048/3072 and
  84. * ECC P-256/P-384 */
  85. #define WOLFSSL_HAVE_SP_ECC
  86. #define WOLFSSL_HAVE_SP_DH
  87. #define WOLFSSL_HAVE_SP_RSA
  88. /* Optional Performance Speedups */
  89. #if 0
  90. #ifdef _WIN64
  91. /* Assembly speedups for SP math */
  92. #define WOLFSSL_SP_X86_64_ASM
  93. /* Support for RDSEED instruction */
  94. #define HAVE_INTEL_RDSEED
  95. /* AESNI on x64 */
  96. #define WOLFSSL_AESNI
  97. /* Intel ASM */
  98. #define USE_INTEL_SPEEDUP
  99. #define WOLFSSL_X86_64_BUILD
  100. /* Old versions of MASM compiler do not recognize newer
  101. * instructions. */
  102. #if 0
  103. #define NO_AVX2_SUPPORT
  104. #define NO_MOVBE_SUPPORT
  105. #endif
  106. #endif
  107. #endif
  108. /* Debug logging */
  109. #if 1
  110. #define DEBUG_WOLFSSL
  111. #else
  112. /* #define NO_ERROR_STRINGS */
  113. #endif
  114. #endif /* !_WIN_CSHARP_USER_SETTINGS_H_ */