2
0

user_settings.h-cert2425 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. #ifndef _NETOS_USER_SETTINGS_H_
  2. #define _NETOS_USER_SETTINGS_H_
  3. /* Verify this is NetOS */
  4. /*
  5. #ifndef _NETOS
  6. #error This user_settings.h header is only designed for NetOS
  7. #endif
  8. */
  9. /* Configurations */
  10. #if defined(HAVE_FIPS)
  11. #if defined(WOLFSSL_LIB)
  12. #define HAVE_FIPS_VERSION 2
  13. /* The FIPS lib */
  14. #define THREADX
  15. #define BIG_ENDIAN_ORDER
  16. #define NO_WRITEV
  17. #define NO_WOLFSSL_DIR
  18. #if 0
  19. #define DEBUG_WOLFSSL
  20. #endif
  21. #define NO_DEV_RANDOM
  22. #define NETOS
  23. #define NO_FILESYSTEM
  24. #define FORCE_BUFFER_TEST
  25. /* wolfSSL FIPS TESTING UPDATES : */
  26. #define NO_ATTRIBUTE_CONSTRUCTOR
  27. #define NO_THREAD_LS
  28. #define NO_WOLFSSL_STUB
  29. #define WOLFSSL_KEY_GEN
  30. #define HAVE_FORCE_FIPS_FAILURE
  31. #define USE_CERT_BUFFERS_1024 /* for the op-tests */
  32. #define USE_CERT_BUFFERS_256 /* for the op-tests */
  33. #define TFM_TIMING_RESISTANT
  34. #define ECC_TIMING_RESISTANT
  35. #define WC_RSA_BLINDING
  36. #define HAVE_AESGCM
  37. #define WOLFSSL_SHA512
  38. #define WOLFSSL_SHA384
  39. #define NO_DSA
  40. #define HAVE_ECC
  41. #define TFM_ECC256
  42. #define ECC_SHAMIR
  43. #define WOLFSSL_BASE64_ENCODE
  44. #define NO_RC4
  45. #define HAVE_HASHDRBG
  46. #define HAVE_TLS_EXTENSIONS
  47. #define HAVE_SUPPORTED_CURVES
  48. #define HAVE_EXTENDED_MASTER
  49. #define NO_PSK
  50. #define NO_MD4
  51. #define NO_PWDBASED
  52. #define USE_FAST_MATH
  53. #define WC_NO_ASYNC_THREADING
  54. #define WC_RSAKEY_TYPE_DEFINED
  55. #define WC_RNG_TYPE_DEFINED
  56. #define NO_TESTSUITE_MAIN_DRIVER
  57. #define NO_MAIN_DRIVER
  58. extern unsigned char get_byte_from_pool(void);
  59. #define CUSTOM_RAND_GENERATE get_byte_from_pool
  60. #define CUSTOM_RAND_TYPE unsigned char
  61. #define OPENSSL_EXTRA
  62. #define HAVE_LIGHTY
  63. #define WOLFSSL_AES_DIRECT
  64. #define WOLFSSL_MYSQL_COMPATIBLE
  65. #else
  66. /* The FIPS apps */
  67. #define HAVE_FIPS_VERSION 2
  68. #define THREADX
  69. #define BIG_ENDIAN_ORDER
  70. #define NO_WRITEV
  71. #define NO_WOLFSSL_DIR
  72. #if 0
  73. #define DEBUG_WOLFSSL
  74. #endif
  75. #define NO_DEV_RANDOM
  76. #define NETOS
  77. #define NO_FILESYSTEM
  78. #define FORCE_BUFFER_TEST
  79. /* wolfSSL FIPS TESTING UPDATES : */
  80. #define NO_ATTRIBUTE_CONSTRUCTOR
  81. #define NO_THREAD_LS
  82. #define NO_WOLFSSL_STUB
  83. #define WOLFSSL_KEY_GEN
  84. #define HAVE_FORCE_FIPS_FAILURE
  85. #define USE_CERT_BUFFERS_2048 /* for the op-tests */
  86. #define USE_CERT_BUFFERS_256 /* for the op-tests */
  87. #define TFM_TIMING_RESISTANT
  88. #define ECC_TIMING_RESISTANT
  89. #define WC_RSA_BLINDING
  90. #define HAVE_AESGCM
  91. #define WOLFSSL_SHA512
  92. #define WOLFSSL_SHA384
  93. #define NO_DSA
  94. #define HAVE_ECC
  95. #define TFM_ECC256
  96. #define ECC_SHAMIR
  97. #define WOLFSSL_BASE64_ENCODE
  98. #define NO_RC4
  99. #define HAVE_HASHDRBG
  100. #define HAVE_TLS_EXTENSIONS
  101. #define HAVE_SUPPORTED_CURVES
  102. #define HAVE_EXTENDED_MASTER
  103. #define NO_PSK
  104. #define NO_MD4
  105. #define NO_PWDBASED
  106. #define USE_FAST_MATH
  107. #define WC_NO_ASYNC_THREADING
  108. #define WC_RSAKEY_TYPE_DEFINED
  109. #define WC_RNG_TYPE_DEFINED
  110. #define NO_TESTSUITE_MAIN_DRIVER
  111. #define NO_MAIN_DRIVER
  112. #define OPENSSL_EXTRA
  113. #define HAVE_LIGHTY
  114. #define WOLFSSL_AES_DIRECT
  115. #define WOLFSSL_MYSQL_COMPATIBLE
  116. #endif
  117. #else /* HAVE_FIPS */
  118. #if defined(WOLFSSL_LIB)
  119. /* The NON-FIPS lib */
  120. #define THREADX
  121. #define BIG_ENDIAN_ORDER
  122. #if 0
  123. #define OPENSSL_EXTRA
  124. #endif
  125. #define WOLFSSL_RIPEMD
  126. #define WOLFSSL_SHA512
  127. #define NO_PSK
  128. #define HAVE_EXTENDED_MASTER
  129. #define WOLFSSL_SNIFFER
  130. #define HAVE_TLS_EXTENSIONS
  131. #define HAVE_SECURE_RENEGOTIATION
  132. #define NO_WRITEV
  133. #define NO_WOLFSSL_DIR
  134. #define DEBUG_WOLFSSL
  135. #define NO_DEV_RANDOM
  136. #define NETOS
  137. #define NO_FILESYSTEM
  138. #else
  139. /* The NON-FIPS apps */
  140. #define THREADX
  141. #define BIG_ENDIAN_ORDER
  142. #if 0
  143. #define OPENSSL_EXTRA
  144. #endif
  145. #define NO_PSK
  146. #define HAVE_EXTENDED_MASTER
  147. #define WOLFSSL_SNIFFER
  148. #define HAVE_SECURE_RENEGOTIATION
  149. #define NO_WRITEV
  150. #define NO_WOLFSSL_DIR
  151. #define WOLFSSL_NO_CURRDIR
  152. #define DEBUG_WOLFSSL
  153. #define NETOS
  154. #define NO_FILESYSTEM
  155. #endif
  156. #endif /* HAVE_FIPS */
  157. #endif /* _NETOS_USER_SETTINGS_H_ */