opensslconf.h 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  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. #define OPENSSL_SYS_WINDOWS
  8. #define NON_EMPTY_TRANSLATION_UNIT
  9. #define OPENSSL_RAND_SEED_OS
  10. #define OPENSSL_NO_TS
  11. #ifndef OPENSSL_DOING_MAKEDEPEND
  12. #ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
  13. # define OPENSSL_NO_EC_NISTP_64_GCC_128
  14. #endif
  15. #ifndef OPENSSL_NO_GMP
  16. # define OPENSSL_NO_GMP
  17. #endif
  18. #ifndef OPENSSL_NO_JPAKE
  19. # define OPENSSL_NO_JPAKE
  20. #endif
  21. #ifndef OPENSSL_NO_KRB5
  22. # define OPENSSL_NO_KRB5
  23. #endif
  24. #ifndef OPENSSL_NO_LIBUNBOUND
  25. # define OPENSSL_NO_LIBUNBOUND
  26. #endif
  27. #ifndef OPENSSL_NO_MD2
  28. # define OPENSSL_NO_MD2
  29. #endif
  30. #ifndef OPENSSL_NO_RC5
  31. # define OPENSSL_NO_RC5
  32. #endif
  33. #ifndef OPENSSL_NO_RFC3779
  34. # define OPENSSL_NO_RFC3779
  35. #endif
  36. #ifndef OPENSSL_NO_SCTP
  37. # define OPENSSL_NO_SCTP
  38. #endif
  39. #ifndef OPENSSL_NO_SSL_TRACE
  40. # define OPENSSL_NO_SSL_TRACE
  41. #endif
  42. #ifndef OPENSSL_NO_SSL2
  43. # define OPENSSL_NO_SSL2
  44. #endif
  45. #ifndef OPENSSL_NO_STORE
  46. # define OPENSSL_NO_STORE
  47. #endif
  48. #ifndef OPENSSL_NO_UNIT_TEST
  49. # define OPENSSL_NO_UNIT_TEST
  50. #endif
  51. #ifndef OPENSSL_NO_WEAK_SSL_CIPHERS
  52. # define OPENSSL_NO_WEAK_SSL_CIPHERS
  53. #endif
  54. #endif /* OPENSSL_DOING_MAKEDEPEND */
  55. #ifndef OPENSSL_THREADS
  56. # define OPENSSL_THREADS
  57. #endif
  58. /* The OPENSSL_NO_* macros are also defined as NO_* if the application
  59. asks for it. This is a transient feature that is provided for those
  60. who haven't had the time to do the appropriate changes in their
  61. applications. */
  62. #ifdef OPENSSL_ALGORITHM_DEFINES
  63. # if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
  64. # define NO_EC_NISTP_64_GCC_128
  65. # endif
  66. # if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
  67. # define NO_GMP
  68. # endif
  69. # if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
  70. # define NO_JPAKE
  71. # endif
  72. # if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
  73. # define NO_KRB5
  74. # endif
  75. # if defined(OPENSSL_NO_LIBUNBOUND) && !defined(NO_LIBUNBOUND)
  76. # define NO_LIBUNBOUND
  77. # endif
  78. # if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
  79. # define NO_MD2
  80. # endif
  81. # if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
  82. # define NO_RC5
  83. # endif
  84. # if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
  85. # define NO_RFC3779
  86. # endif
  87. # if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
  88. # define NO_SCTP
  89. # endif
  90. # if defined(OPENSSL_NO_SSL_TRACE) && !defined(NO_SSL_TRACE)
  91. # define NO_SSL_TRACE
  92. # endif
  93. # if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
  94. # define NO_SSL2
  95. # endif
  96. # if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
  97. # define NO_STORE
  98. # endif
  99. # if defined(OPENSSL_NO_UNIT_TEST) && !defined(NO_UNIT_TEST)
  100. # define NO_UNIT_TEST
  101. # endif
  102. # if defined(OPENSSL_NO_WEAK_SSL_CIPHERS) && !defined(NO_WEAK_SSL_CIPHERS)
  103. # define NO_WEAK_SSL_CIPHERS
  104. # endif
  105. #endif
  106. /* crypto/opensslconf.h.in */
  107. /* Generate 80386 code? */
  108. #undef I386_ONLY
  109. #define ENGINESDIR "%ProgramFiles(86)%\\OpenSSL\\lib\\engines"
  110. #define OPENSSLDIR "%CommonProgramFiles(86)%\\SSL"
  111. #undef OPENSSL_UNISTD
  112. #define OPENSSL_UNISTD <unistd.h>
  113. #undef OPENSSL_EXPORT_VAR_AS_FUNCTION
  114. #define OPENSSL_EXPORT_VAR_AS_FUNCTION
  115. #if defined(HEADER_MD2_H) && !defined(MD2_INT)
  116. #define MD2_INT unsigned int
  117. #endif
  118. #if defined(HEADER_RC4_H)
  119. #if !defined(RC4_INT)
  120. /* using int types make the structure larger but make the code faster
  121. * on most boxes I have tested - up to %20 faster. */
  122. /*
  123. * I don't know what does "most" mean, but declaring "int" is a must on:
  124. * - Intel P6 because partial register stalls are very expensive;
  125. * - elder Alpha because it lacks byte load/store instructions;
  126. */
  127. #define RC4_INT unsigned int
  128. #endif
  129. #if !defined(RC4_CHUNK)
  130. /*
  131. * This enables code handling data aligned at natural CPU word
  132. * boundary. See crypto/rc4/rc4_enc.c for further details.
  133. */
  134. #undef RC4_CHUNK
  135. #endif
  136. #endif
  137. #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
  138. #define CONFIG_HEADER_BN_H
  139. #define BN_LLONG
  140. /* Should we define BN_DIV2W here? */
  141. /* Only one for the following should be defined */
  142. #undef SIXTY_FOUR_BIT_LONG
  143. #undef SIXTY_FOUR_BIT
  144. #define THIRTY_TWO_BIT
  145. #endif
  146. #if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
  147. #define CONFIG_HEADER_RC4_LOCL_H
  148. /* if this is defined data[i] is used instead of *data, this is a %20
  149. * speedup on x86 */
  150. #define RC4_INDEX
  151. #endif
  152. #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
  153. #define CONFIG_HEADER_BF_LOCL_H
  154. #undef BF_PTR
  155. #endif /* HEADER_BF_LOCL_H */
  156. #if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
  157. #define CONFIG_HEADER_DES_LOCL_H
  158. #ifndef DES_DEFAULT_OPTIONS
  159. /* the following is tweaked from a config script, that is why it is a
  160. * protected undef/define */
  161. #ifndef DES_PTR
  162. #define DES_PTR
  163. #endif
  164. /* This helps C compiler generate the correct code for multiple functional
  165. * units. It reduces register dependancies at the expense of 2 more
  166. * registers */
  167. #ifndef DES_RISC1
  168. #undef DES_RISC1
  169. #endif
  170. #ifndef DES_RISC2
  171. #undef DES_RISC2
  172. #endif
  173. #if defined(DES_RISC1) && defined(DES_RISC2)
  174. #error YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
  175. #endif
  176. /* Unroll the inner loop, this sometimes helps, sometimes hinders.
  177. * Very mucy CPU dependant */
  178. #ifndef DES_UNROLL
  179. #undef DES_UNROLL
  180. #endif
  181. /* These default values were supplied by
  182. * Peter Gutman <[email protected]>
  183. * They are only used if nothing else has been defined */
  184. #if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
  185. /* Special defines which change the way the code is built depending on the
  186. CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
  187. even newer MIPS CPU's, but at the moment one size fits all for
  188. optimization options. Older Sparc's work better with only UNROLL, but
  189. there's no way to tell at compile time what it is you're running on */
  190. #if defined( __sun ) || defined ( sun ) /* Newer Sparc's */
  191. # define DES_PTR
  192. # define DES_RISC1
  193. # define DES_UNROLL
  194. #elif defined( __ultrix ) /* Older MIPS */
  195. # define DES_PTR
  196. # define DES_RISC2
  197. # define DES_UNROLL
  198. #elif defined( __osf1__ ) /* Alpha */
  199. # define DES_PTR
  200. # define DES_RISC2
  201. #elif defined ( _AIX ) /* RS6000 */
  202. /* Unknown */
  203. #elif defined( __hpux ) /* HP-PA */
  204. /* Unknown */
  205. #elif defined( __aux ) /* 68K */
  206. /* Unknown */
  207. #elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
  208. # define DES_UNROLL
  209. #elif defined( __sgi ) /* Newer MIPS */
  210. # define DES_PTR
  211. # define DES_RISC2
  212. # define DES_UNROLL
  213. #elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
  214. # define DES_PTR
  215. # define DES_RISC1
  216. # define DES_UNROLL
  217. #endif /* Systems-specific speed defines */
  218. #endif
  219. #endif /* DES_DEFAULT_OPTIONS */
  220. #endif /* HEADER_DES_LOCL_H */
  221. /*
  222. * Applications should use -DOPENSSL_API_COMPAT=<version> to suppress the
  223. * declarations of functions deprecated in or before <version>. Otherwise, they
  224. * still won't see them if the library has been built to disable deprecated
  225. * functions.
  226. */
  227. #ifndef DECLARE_DEPRECATED
  228. # define DECLARE_DEPRECATED(f) f;
  229. # ifdef __GNUC__
  230. # if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 0)
  231. # undef DECLARE_DEPRECATED
  232. # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
  233. # endif
  234. # endif
  235. #endif
  236. #ifndef OPENSSL_FILE
  237. # ifdef OPENSSL_NO_FILENAMES
  238. # define OPENSSL_FILE ""
  239. # define OPENSSL_LINE 0
  240. # else
  241. # define OPENSSL_FILE __FILE__
  242. # define OPENSSL_LINE __LINE__
  243. # endif
  244. #endif
  245. #ifndef OPENSSL_MIN_API
  246. # define OPENSSL_MIN_API 0x10200000L
  247. #endif
  248. #if !defined(OPENSSL_API_COMPAT) || OPENSSL_API_COMPAT < OPENSSL_MIN_API
  249. # undef OPENSSL_API_COMPAT
  250. # define OPENSSL_API_COMPAT OPENSSL_MIN_API
  251. #endif
  252. /*
  253. * Do not deprecate things to be deprecated in version 1.2.0 before the
  254. * OpenSSL version number matches.
  255. */
  256. #if OPENSSL_VERSION_NUMBER < 0x10200000L
  257. # define DEPRECATEDIN_1_2_0(f) f;
  258. #elif OPENSSL_API_COMPAT < 0x10200000L
  259. # define DEPRECATEDIN_1_2_0(f) DECLARE_DEPRECATED(f)
  260. #else
  261. # define DEPRECATEDIN_1_2_0(f)
  262. #endif
  263. #if OPENSSL_API_COMPAT < 0x10100000L
  264. # define DEPRECATEDIN_1_1_0(f) DECLARE_DEPRECATED(f)
  265. #else
  266. # define DEPRECATEDIN_1_1_0(f)
  267. #endif
  268. #if OPENSSL_API_COMPAT < 0x10000000L
  269. # define DEPRECATEDIN_1_0_0(f) DECLARE_DEPRECATED(f)
  270. #else
  271. # define DEPRECATEDIN_1_0_0(f)
  272. #endif
  273. #if OPENSSL_API_COMPAT < 0x00908000L
  274. # define DEPRECATEDIN_0_9_8(f) DECLARE_DEPRECATED(f)
  275. #else
  276. # define DEPRECATEDIN_0_9_8(f)
  277. #endif
  278. #define _setmode setmode
  279. #define _strdup strdup
  280. #ifdef __cplusplus
  281. }
  282. #endif
  283. #ifndef _timeb
  284. #define _timeb timeb
  285. #endif
  286. #ifndef _ftime
  287. #define _ftime ftime
  288. #endif