opensslconf.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  1. /* opensslconf.h */
  2. /* WARNING: Generated automatically from opensslconf.h.in by Configure. */
  3. /* OpenSSL was configured with the following options: */
  4. #ifndef OPENSSL_DOING_MAKEDEPEND
  5. #ifndef OPENSSL_NO_AES
  6. # define OPENSSL_NO_AES
  7. #endif
  8. #ifndef OPENSSL_NO_BF
  9. # define OPENSSL_NO_BF
  10. #endif
  11. #ifndef OPENSSL_NO_CAMELLIA
  12. # define OPENSSL_NO_CAMELLIA
  13. #endif
  14. #ifndef OPENSSL_NO_CAPIENG
  15. # define OPENSSL_NO_CAPIENG
  16. #endif
  17. #ifndef OPENSSL_NO_CAST
  18. # define OPENSSL_NO_CAST
  19. #endif
  20. #ifndef OPENSSL_NO_CMS
  21. # define OPENSSL_NO_CMS
  22. #endif
  23. #ifndef OPENSSL_NO_DES
  24. # define OPENSSL_NO_DES
  25. #endif
  26. #ifndef OPENSSL_NO_DH
  27. # define OPENSSL_NO_DH
  28. #endif
  29. #ifndef OPENSSL_NO_DSA
  30. # define OPENSSL_NO_DSA
  31. #endif
  32. #ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
  33. # define OPENSSL_NO_EC_NISTP_64_GCC_128
  34. #endif
  35. #ifndef OPENSSL_NO_ENGINE
  36. # define OPENSSL_NO_ENGINE
  37. #endif
  38. #ifndef OPENSSL_NO_GMP
  39. # define OPENSSL_NO_GMP
  40. #endif
  41. #ifndef OPENSSL_NO_GOST
  42. # define OPENSSL_NO_GOST
  43. #endif
  44. #ifndef OPENSSL_NO_HEARTBEATS
  45. # define OPENSSL_NO_HEARTBEATS
  46. #endif
  47. #ifndef OPENSSL_NO_IDEA
  48. # define OPENSSL_NO_IDEA
  49. #endif
  50. #ifndef OPENSSL_NO_JPAKE
  51. # define OPENSSL_NO_JPAKE
  52. #endif
  53. #ifndef OPENSSL_NO_KRB5
  54. # define OPENSSL_NO_KRB5
  55. #endif
  56. #ifndef OPENSSL_NO_MD2
  57. # define OPENSSL_NO_MD2
  58. #endif
  59. #ifndef OPENSSL_NO_MD4
  60. # define OPENSSL_NO_MD4
  61. #endif
  62. #ifndef OPENSSL_NO_MDC2
  63. # define OPENSSL_NO_MDC2
  64. #endif
  65. #ifndef OPENSSL_NO_OCSP
  66. # define OPENSSL_NO_OCSP
  67. #endif
  68. #ifndef OPENSSL_NO_PEM
  69. # define OPENSSL_NO_PEM
  70. #endif
  71. #ifndef OPENSSL_NO_RC2
  72. # define OPENSSL_NO_RC2
  73. #endif
  74. #ifndef OPENSSL_NO_RC4
  75. # define OPENSSL_NO_RC4
  76. #endif
  77. #ifndef OPENSSL_NO_RC5
  78. # define OPENSSL_NO_RC5
  79. #endif
  80. #ifndef OPENSSL_NO_RFC3779
  81. # define OPENSSL_NO_RFC3779
  82. #endif
  83. #ifndef OPENSSL_NO_RIPEMD
  84. # define OPENSSL_NO_RIPEMD
  85. #endif
  86. #ifndef OPENSSL_NO_RSA
  87. # define OPENSSL_NO_RSA
  88. #endif
  89. #ifndef OPENSSL_NO_SCTP
  90. # define OPENSSL_NO_SCTP
  91. #endif
  92. #ifndef OPENSSL_NO_SEED
  93. # define OPENSSL_NO_SEED
  94. #endif
  95. #ifndef OPENSSL_NO_SOCK
  96. # define OPENSSL_NO_SOCK
  97. #endif
  98. #ifndef OPENSSL_NO_SRP
  99. # define OPENSSL_NO_SRP
  100. #endif
  101. #ifndef OPENSSL_NO_SSL2
  102. # define OPENSSL_NO_SSL2
  103. #endif
  104. #ifndef OPENSSL_NO_SSL3
  105. # define OPENSSL_NO_SSL3
  106. #endif
  107. #ifndef OPENSSL_NO_STORE
  108. # define OPENSSL_NO_STORE
  109. #endif
  110. #ifndef OPENSSL_NO_TLS1
  111. # define OPENSSL_NO_TLS1
  112. #endif
  113. #ifndef OPENSSL_NO_TLSEXT
  114. # define OPENSSL_NO_TLSEXT
  115. #endif
  116. #ifndef OPENSSL_NO_TS
  117. # define OPENSSL_NO_TS
  118. #endif
  119. #ifndef OPENSSL_NO_TXT_DB
  120. # define OPENSSL_NO_TXT_DB
  121. #endif
  122. #ifndef OPENSSL_NO_UI
  123. # define OPENSSL_NO_UI
  124. #endif
  125. #ifndef OPENSSL_NO_WHRLPOOL
  126. # define OPENSSL_NO_WHRLPOOL
  127. #endif
  128. #endif /* OPENSSL_DOING_MAKEDEPEND */
  129. #ifndef OPENSSL_THREADS
  130. # define OPENSSL_THREADS
  131. #endif
  132. #ifndef OPENSSL_NO_ERR
  133. # define OPENSSL_NO_ERR
  134. #endif
  135. #ifndef OPENSSL_NO_HW
  136. # define OPENSSL_NO_HW
  137. #endif
  138. #ifndef OPENSSL_NO_DYNAMIC_ENGINE
  139. # define OPENSSL_NO_DYNAMIC_ENGINE
  140. #endif
  141. /* The OPENSSL_NO_* macros are also defined as NO_* if the application
  142. asks for it. This is a transient feature that is provided for those
  143. who haven't had the time to do the appropriate changes in their
  144. applications. */
  145. #ifdef OPENSSL_ALGORITHM_DEFINES
  146. # if defined(OPENSSL_NO_AES) && !defined(NO_AES)
  147. # define NO_AES
  148. # endif
  149. # if defined(OPENSSL_NO_BF) && !defined(NO_BF)
  150. # define NO_BF
  151. # endif
  152. # if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
  153. # define NO_CAMELLIA
  154. # endif
  155. # if defined(OPENSSL_NO_CAPIENG) && !defined(NO_CAPIENG)
  156. # define NO_CAPIENG
  157. # endif
  158. # if defined(OPENSSL_NO_CAST) && !defined(NO_CAST)
  159. # define NO_CAST
  160. # endif
  161. # if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
  162. # define NO_CMS
  163. # endif
  164. # if defined(OPENSSL_NO_DES) && !defined(NO_DES)
  165. # define NO_DES
  166. # endif
  167. # if defined(OPENSSL_NO_DH) && !defined(NO_DH)
  168. # define NO_DH
  169. # endif
  170. # if defined(OPENSSL_NO_DSA) && !defined(NO_DSA)
  171. # define NO_DSA
  172. # endif
  173. # if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
  174. # define NO_EC_NISTP_64_GCC_128
  175. # endif
  176. # if defined(OPENSSL_NO_ENGINE) && !defined(NO_ENGINE)
  177. # define NO_ENGINE
  178. # endif
  179. # if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
  180. # define NO_GMP
  181. # endif
  182. # if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
  183. # define NO_GOST
  184. # endif
  185. # if defined(OPENSSL_NO_HEARTBEATS) && !defined(NO_HEARTBEATS)
  186. # define NO_HEARTBEATS
  187. # endif
  188. # if defined(OPENSSL_NO_IDEA) && !defined(NO_IDEA)
  189. # define NO_IDEA
  190. # endif
  191. # if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
  192. # define NO_JPAKE
  193. # endif
  194. # if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
  195. # define NO_KRB5
  196. # endif
  197. # if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
  198. # define NO_MD2
  199. # endif
  200. # if defined(OPENSSL_NO_MD4) && !defined(NO_MD4)
  201. # define NO_MD4
  202. # endif
  203. # if defined(OPENSSL_NO_MDC2) && !defined(NO_MDC2)
  204. # define NO_MDC2
  205. # endif
  206. # if defined(OPENSSL_NO_OCSP) && !defined(NO_OCSP)
  207. # define NO_OCSP
  208. # endif
  209. # if defined(OPENSSL_NO_PEM) && !defined(NO_PEM)
  210. # define NO_PEM
  211. # endif
  212. # if defined(OPENSSL_NO_RC2) && !defined(NO_RC2)
  213. # define NO_RC2
  214. # endif
  215. # if defined(OPENSSL_NO_RC4) && !defined(NO_RC4)
  216. # define NO_RC4
  217. # endif
  218. # if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
  219. # define NO_RC5
  220. # endif
  221. # if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
  222. # define NO_RFC3779
  223. # endif
  224. # if defined(OPENSSL_NO_RIPEMD) && !defined(NO_RIPEMD)
  225. # define NO_RIPEMD
  226. # endif
  227. # if defined(OPENSSL_NO_RSA) && !defined(NO_RSA)
  228. # define NO_RSA
  229. # endif
  230. # if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
  231. # define NO_SCTP
  232. # endif
  233. # if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
  234. # define NO_SEED
  235. # endif
  236. # if defined(OPENSSL_NO_SOCK) && !defined(NO_SOCK)
  237. # define NO_SOCK
  238. # endif
  239. # if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
  240. # define NO_SRP
  241. # endif
  242. # if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
  243. # define NO_SSL2
  244. # endif
  245. # if defined(OPENSSL_NO_SSL3) && !defined(NO_SSL3)
  246. # define NO_SSL3
  247. # endif
  248. # if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
  249. # define NO_STORE
  250. # endif
  251. # if defined(OPENSSL_NO_TLS1) && !defined(NO_TLS1)
  252. # define NO_TLS1
  253. # endif
  254. # if defined(OPENSSL_NO_TLSEXT) && !defined(NO_TLSEXT)
  255. # define NO_TLSEXT
  256. # endif
  257. # if defined(OPENSSL_NO_TS) && !defined(NO_TS)
  258. # define NO_TS
  259. # endif
  260. # if defined(OPENSSL_NO_TXT_DB) && !defined(NO_TXT_DB)
  261. # define NO_TXT_DB
  262. # endif
  263. # if defined(OPENSSL_NO_UI) && !defined(NO_UI)
  264. # define NO_UI
  265. # endif
  266. # if defined(OPENSSL_NO_WHRLPOOL) && !defined(NO_WHRLPOOL)
  267. # define NO_WHRLPOOL
  268. # endif
  269. #endif
  270. #define OPENSSL_CPUID_OBJ
  271. /* crypto/opensslconf.h.in */
  272. /* Generate 80386 code? */
  273. #undef I386_ONLY
  274. #if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
  275. #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
  276. #define ENGINESDIR "/usr/local/ssl/lib/engines"
  277. #define OPENSSLDIR "/usr/local/ssl"
  278. #endif
  279. #endif
  280. #undef OPENSSL_UNISTD
  281. #define OPENSSL_UNISTD <unistd.h>
  282. #undef OPENSSL_EXPORT_VAR_AS_FUNCTION
  283. #if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
  284. #define IDEA_INT unsigned int
  285. #endif
  286. #if defined(HEADER_MD2_H) && !defined(MD2_INT)
  287. #define MD2_INT unsigned int
  288. #endif
  289. #if defined(HEADER_RC2_H) && !defined(RC2_INT)
  290. /* I need to put in a mod for the alpha - eay */
  291. #define RC2_INT unsigned int
  292. #endif
  293. #if defined(HEADER_RC4_H)
  294. #if !defined(RC4_INT)
  295. /* using int types make the structure larger but make the code faster
  296. * on most boxes I have tested - up to %20 faster. */
  297. /*
  298. * I don't know what does "most" mean, but declaring "int" is a must on:
  299. * - Intel P6 because partial register stalls are very expensive;
  300. * - elder Alpha because it lacks byte load/store instructions;
  301. */
  302. #define RC4_INT unsigned int
  303. #endif
  304. #if !defined(RC4_CHUNK)
  305. /*
  306. * This enables code handling data aligned at natural CPU word
  307. * boundary. See crypto/rc4/rc4_enc.c for further details.
  308. */
  309. #define RC4_CHUNK unsigned long
  310. #endif
  311. #endif
  312. #if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
  313. /* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
  314. * %20 speed up (longs are 8 bytes, int's are 4). */
  315. #ifndef DES_LONG
  316. #define DES_LONG unsigned int
  317. #endif
  318. #endif
  319. #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
  320. #define CONFIG_HEADER_BN_H
  321. #undef BN_LLONG
  322. /* Should we define BN_DIV2W here? */
  323. /* Only one for the following should be defined */
  324. #define SIXTY_FOUR_BIT_LONG
  325. #undef SIXTY_FOUR_BIT
  326. #undef THIRTY_TWO_BIT
  327. #endif
  328. #if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
  329. #define CONFIG_HEADER_RC4_LOCL_H
  330. /* if this is defined data[i] is used instead of *data, this is a %20
  331. * speedup on x86 */
  332. #undef RC4_INDEX
  333. #endif
  334. #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
  335. #define CONFIG_HEADER_BF_LOCL_H
  336. #undef BF_PTR
  337. #endif /* HEADER_BF_LOCL_H */
  338. #if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
  339. #define CONFIG_HEADER_DES_LOCL_H
  340. #ifndef DES_DEFAULT_OPTIONS
  341. /* the following is tweaked from a config script, that is why it is a
  342. * protected undef/define */
  343. #ifndef DES_PTR
  344. #undef DES_PTR
  345. #endif
  346. /* This helps C compiler generate the correct code for multiple functional
  347. * units. It reduces register dependancies at the expense of 2 more
  348. * registers */
  349. #ifndef DES_RISC1
  350. #undef DES_RISC1
  351. #endif
  352. #ifndef DES_RISC2
  353. #undef DES_RISC2
  354. #endif
  355. #if defined(DES_RISC1) && defined(DES_RISC2)
  356. YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
  357. #endif
  358. /* Unroll the inner loop, this sometimes helps, sometimes hinders.
  359. * Very mucy CPU dependant */
  360. #ifndef DES_UNROLL
  361. #define DES_UNROLL
  362. #endif
  363. /* These default values were supplied by
  364. * Peter Gutman <[email protected]>
  365. * They are only used if nothing else has been defined */
  366. #if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
  367. /* Special defines which change the way the code is built depending on the
  368. CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
  369. even newer MIPS CPU's, but at the moment one size fits all for
  370. optimization options. Older Sparc's work better with only UNROLL, but
  371. there's no way to tell at compile time what it is you're running on */
  372. #if defined( sun ) /* Newer Sparc's */
  373. # define DES_PTR
  374. # define DES_RISC1
  375. # define DES_UNROLL
  376. #elif defined( __ultrix ) /* Older MIPS */
  377. # define DES_PTR
  378. # define DES_RISC2
  379. # define DES_UNROLL
  380. #elif defined( __osf1__ ) /* Alpha */
  381. # define DES_PTR
  382. # define DES_RISC2
  383. #elif defined ( _AIX ) /* RS6000 */
  384. /* Unknown */
  385. #elif defined( __hpux ) /* HP-PA */
  386. /* Unknown */
  387. #elif defined( __aux ) /* 68K */
  388. /* Unknown */
  389. #elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
  390. # define DES_UNROLL
  391. #elif defined( __sgi ) /* Newer MIPS */
  392. # define DES_PTR
  393. # define DES_RISC2
  394. # define DES_UNROLL
  395. #elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
  396. # define DES_PTR
  397. # define DES_RISC1
  398. # define DES_UNROLL
  399. #endif /* Systems-specific speed defines */
  400. #endif
  401. #endif /* DES_DEFAULT_OPTIONS */
  402. #endif /* HEADER_DES_LOCL_H */