config-CyaSSL.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. /* config-RTX-TCP-FS.h
  2. *
  3. * Copyright (C) 2006-2015 wolfSSL Inc.
  4. *
  5. * This file is part of wolfSSL. (formerly known as CyaSSL)
  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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
  20. */
  21. /**** CyaSSL for KEIL-RL Configuration ****/
  22. #define __CORTEX_M3__
  23. #define CYASSL_MDK_ARM
  24. #define NO_WRITEV
  25. #define NO_CYASSL_DIR
  26. #define NO_MAIN_DRIVER
  27. #define CYASSL_DER_LOAD
  28. #define HAVE_NULL_CIPHER
  29. #define HAVE_KEIL_RTX
  30. #define CYASSL_CMSIS_RTOS
  31. #define CYASSL_KEIL_TCP_NET
  32. // <<< Use Configuration Wizard in Context Menu >>>
  33. // <h> CyaSSL Configuration
  34. // <h>SSL (Included by default)
  35. // </h>
  36. // <e>TLS
  37. #define MDK_CONF_TLS 1
  38. #if MDK_CONF_TLS == 0
  39. #define NO_TLS
  40. #endif
  41. // </e>
  42. // <e>CRL
  43. #define MDK_CONF_DER_LOAD 0
  44. #if MDK_CONF_DER_LOAD == 1
  45. #define CYASSL_DER_LOAD
  46. #endif
  47. // </e>
  48. // <e>OpenSSL Extra
  49. #define MDK_CONF_OPENSSL_EXTRA 1
  50. #if MDK_CONF_OPENSSL_EXTRA == 1
  51. #define OPENSSL_EXTRA
  52. #endif
  53. // </e>
  54. //</h>
  55. // <h>Cert/Key Generation
  56. // <e>CertGen
  57. #define MDK_CONF_CERT_GEN 0
  58. #if MDK_CONF_CERT_GEN == 1
  59. #define CYASSL_CERT_GEN
  60. #endif
  61. // </e>
  62. // <e>KeyGen
  63. #define MDK_CONF_KEY_GEN 0
  64. #if MDK_CONF_KEY_GEN == 1
  65. #define CYASSL_KEY_GEN
  66. #endif
  67. // </e>
  68. //</h>
  69. // <h>Others
  70. // <e>Inline
  71. #define MDK_CONF_INLINE 0
  72. #if MDK_CONF_INLINE == 0
  73. #define NO_INLINE
  74. #endif
  75. // </e>
  76. // <h>Debug
  77. // <e>Debug Message
  78. #define MDK_CONF_DebugMessage 0
  79. #if MDK_CONF_DebugMessage == 1
  80. #define DEBUG_CYASSL
  81. #endif
  82. // </e>
  83. // <e>Check malloc
  84. #define MDK_CONF_CheckMalloc 1
  85. #if MDK_CONF_CheckMalloc == 1
  86. #define CYASSL_MALLOC_CHECK
  87. #endif
  88. // </e>
  89. // </h>
  90. // <e>ErrNo.h
  91. #define MDK_CONF_ErrNo 0
  92. #if MDK_CONF_ErrNo == 1
  93. #define HAVE_ERRNO
  94. #endif
  95. // </e>
  96. // <e>Error Strings
  97. #define MDK_CONF_ErrorStrings 1
  98. #if MDK_CONF_ErrorStrings == 0
  99. #define NO_ERROR_STRINGS
  100. #endif
  101. // </e>
  102. // <e>zlib (need "zlib.h")
  103. #define MDK_CONF_LIBZ 0
  104. #if MDK_CONF_LIBZ == 1
  105. #define HAVE_LIBZ
  106. #endif
  107. // </e>
  108. // <e>CAVIUM (need CAVIUM headers)
  109. #define MDK_CONF_CAVIUM 0
  110. #if MDK_CONF_CAVIUM == 1
  111. #define HAVE_CAVIUM
  112. #endif
  113. // </e>
  114. // <e>Small Stack
  115. #define MDK_CONF_SmallStack 1
  116. #if MDK_CONF_SmallStack == 0
  117. #define NO_CYASSL_SMALL_STACK
  118. #endif
  119. // </e>
  120. // <e>Use Fast Math
  121. #define MDK_CONF_FASTMATH 0
  122. #if MDK_CONF_FASTMATH == 1
  123. #define USE_FAST_MATH
  124. #endif
  125. // </e>
  126. // </h>
  127. // <<< end of configuration section >>>