opensslconf.h 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. /* opensslconf.h */
  2. /* WARNING: Generated automatically from opensslconf.h.in by Configure. */
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /* OpenSSL was configured with the following options: */
  7. #ifndef OPENSSL_SYSNAME_MACOSX
  8. # define OPENSSL_SYSNAME_MACOSX
  9. #endif
  10. #ifndef OPENSSL_DOING_MAKEDEPEND
  11. #ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
  12. # define OPENSSL_NO_EC_NISTP_64_GCC_128
  13. #endif
  14. #ifndef OPENSSL_NO_GMP
  15. # define OPENSSL_NO_GMP
  16. #endif
  17. #ifndef OPENSSL_NO_JPAKE
  18. # define OPENSSL_NO_JPAKE
  19. #endif
  20. #ifndef OPENSSL_NO_KRB5
  21. # define OPENSSL_NO_KRB5
  22. #endif
  23. #ifndef OPENSSL_NO_MD2
  24. # define OPENSSL_NO_MD2
  25. #endif
  26. #ifndef OPENSSL_NO_RC5
  27. # define OPENSSL_NO_RC5
  28. #endif
  29. #ifndef OPENSSL_NO_RFC3779
  30. # define OPENSSL_NO_RFC3779
  31. #endif
  32. #ifndef OPENSSL_NO_SCTP
  33. # define OPENSSL_NO_SCTP
  34. #endif
  35. #ifndef OPENSSL_NO_SSL2
  36. # define OPENSSL_NO_SSL2
  37. #endif
  38. #ifndef OPENSSL_NO_STORE
  39. # define OPENSSL_NO_STORE
  40. #endif
  41. #ifndef OPENSSL_NO_UNIT_TEST
  42. # define OPENSSL_NO_UNIT_TEST
  43. #endif
  44. #ifndef OPENSSL_NO_WEAK_SSL_CIPHERS
  45. # define OPENSSL_NO_WEAK_SSL_CIPHERS
  46. #endif
  47. #endif /* OPENSSL_DOING_MAKEDEPEND */
  48. #ifndef OPENSSL_THREADS
  49. # define OPENSSL_THREADS
  50. #endif
  51. #ifndef OPENSSL_NO_DYNAMIC_ENGINE
  52. # define OPENSSL_NO_DYNAMIC_ENGINE
  53. #endif
  54. /* The OPENSSL_NO_* macros are also defined as NO_* if the application
  55. asks for it. This is a transient feature that is provided for those
  56. who haven't had the time to do the appropriate changes in their
  57. applications. */
  58. #ifdef OPENSSL_ALGORITHM_DEFINES
  59. # if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
  60. # define NO_EC_NISTP_64_GCC_128
  61. # endif
  62. # if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
  63. # define NO_GMP
  64. # endif
  65. # if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
  66. # define NO_JPAKE
  67. # endif
  68. # if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
  69. # define NO_KRB5
  70. # endif
  71. # if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
  72. # define NO_MD2
  73. # endif
  74. # if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
  75. # define NO_RC5
  76. # endif
  77. # if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
  78. # define NO_RFC3779
  79. # endif
  80. # if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
  81. # define NO_SCTP
  82. # endif
  83. # if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
  84. # define NO_SSL2
  85. # endif
  86. # if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
  87. # define NO_STORE
  88. # endif
  89. # if defined(OPENSSL_NO_UNIT_TEST) && !defined(NO_UNIT_TEST)
  90. # define NO_UNIT_TEST
  91. # endif
  92. # if defined(OPENSSL_NO_WEAK_SSL_CIPHERS) && !defined(NO_WEAK_SSL_CIPHERS)
  93. # define NO_WEAK_SSL_CIPHERS
  94. # endif
  95. #endif
  96. #define OPENSSL_CPUID_OBJ
  97. /* crypto/opensslconf.h.in */
  98. /* Generate 80386 code? */
  99. #undef I386_ONLY
  100. #if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
  101. #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
  102. #define ENGINESDIR "/tmp/openssl-1.0.1s-x86_64/lib/engines"
  103. #define OPENSSLDIR "/tmp/openssl-1.0.1s-x86_64"
  104. #endif
  105. #endif
  106. #undef OPENSSL_UNISTD
  107. #define OPENSSL_UNISTD <unistd.h>
  108. #undef OPENSSL_EXPORT_VAR_AS_FUNCTION
  109. #if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
  110. #define IDEA_INT unsigned int
  111. #endif
  112. #if defined(HEADER_MD2_H) && !defined(MD2_INT)
  113. #define MD2_INT unsigned int
  114. #endif
  115. #if defined(HEADER_RC2_H) && !defined(RC2_INT)
  116. /* I need to put in a mod for the alpha - eay */
  117. #define RC2_INT unsigned int
  118. #endif
  119. #if defined(HEADER_RC4_H)
  120. #if !defined(RC4_INT)
  121. /* using int types make the structure larger but make the code faster
  122. * on most boxes I have tested - up to %20 faster. */
  123. /*
  124. * I don't know what does "most" mean, but declaring "int" is a must on:
  125. * - Intel P6 because partial register stalls are very expensive;
  126. * - elder Alpha because it lacks byte load/store instructions;
  127. */
  128. #define RC4_INT unsigned char
  129. #endif
  130. #if !defined(RC4_CHUNK)
  131. /*
  132. * This enables code handling data aligned at natural CPU word
  133. * boundary. See crypto/rc4/rc4_enc.c for further details.
  134. */
  135. #define RC4_CHUNK unsigned long
  136. #endif
  137. #endif
  138. #if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
  139. /* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
  140. * %20 speed up (longs are 8 bytes, int's are 4). */
  141. #ifndef DES_LONG
  142. #define DES_LONG unsigned int
  143. #endif
  144. #endif
  145. #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
  146. #define CONFIG_HEADER_BN_H
  147. #undef BN_LLONG
  148. /* Should we define BN_DIV2W here? */
  149. /* Only one for the following should be defined */
  150. #define SIXTY_FOUR_BIT_LONG
  151. #undef SIXTY_FOUR_BIT
  152. #undef THIRTY_TWO_BIT
  153. #endif
  154. #if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
  155. #define CONFIG_HEADER_RC4_LOCL_H
  156. /* if this is defined data[i] is used instead of *data, this is a %20
  157. * speedup on x86 */
  158. #undef RC4_INDEX
  159. #endif
  160. #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
  161. #define CONFIG_HEADER_BF_LOCL_H
  162. #undef BF_PTR
  163. #endif /* HEADER_BF_LOCL_H */
  164. #if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
  165. #define CONFIG_HEADER_DES_LOCL_H
  166. #ifndef DES_DEFAULT_OPTIONS
  167. /* the following is tweaked from a config script, that is why it is a
  168. * protected undef/define */
  169. #ifndef DES_PTR
  170. #undef DES_PTR
  171. #endif
  172. /* This helps C compiler generate the correct code for multiple functional
  173. * units. It reduces register dependancies at the expense of 2 more
  174. * registers */
  175. #ifndef DES_RISC1
  176. #undef DES_RISC1
  177. #endif
  178. #ifndef DES_RISC2
  179. #undef DES_RISC2
  180. #endif
  181. #if defined(DES_RISC1) && defined(DES_RISC2)
  182. #error YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
  183. #endif
  184. /* Unroll the inner loop, this sometimes helps, sometimes hinders.
  185. * Very mucy CPU dependant */
  186. #ifndef DES_UNROLL
  187. #define DES_UNROLL
  188. #endif
  189. /* These default values were supplied by
  190. * Peter Gutman <pgut001@cs.auckland.ac.nz>
  191. * They are only used if nothing else has been defined */
  192. #if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
  193. /* Special defines which change the way the code is built depending on the
  194. CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
  195. even newer MIPS CPU's, but at the moment one size fits all for
  196. optimization options. Older Sparc's work better with only UNROLL, but
  197. there's no way to tell at compile time what it is you're running on */
  198. #if defined( __sun ) || defined ( sun ) /* Newer Sparc's */
  199. # define DES_PTR
  200. # define DES_RISC1
  201. # define DES_UNROLL
  202. #elif defined( __ultrix ) /* Older MIPS */
  203. # define DES_PTR
  204. # define DES_RISC2
  205. # define DES_UNROLL
  206. #elif defined( __osf1__ ) /* Alpha */
  207. # define DES_PTR
  208. # define DES_RISC2
  209. #elif defined ( _AIX ) /* RS6000 */
  210. /* Unknown */
  211. #elif defined( __hpux ) /* HP-PA */
  212. /* Unknown */
  213. #elif defined( __aux ) /* 68K */
  214. /* Unknown */
  215. #elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
  216. # define DES_UNROLL
  217. #elif defined( __sgi ) /* Newer MIPS */
  218. # define DES_PTR
  219. # define DES_RISC2
  220. # define DES_UNROLL
  221. #elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
  222. # define DES_PTR
  223. # define DES_RISC1
  224. # define DES_UNROLL
  225. #endif /* Systems-specific speed defines */
  226. #endif
  227. #endif /* DES_DEFAULT_OPTIONS */
  228. #endif /* HEADER_DES_LOCL_H */
  229. #ifdef __cplusplus
  230. }
  231. #endif