opensslconf.h 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. /* opensslconf.h */
  2. /* WARNING: Generated automatically from opensslconf.h.in by Configure. */
  3. /* OpenSSL was configured with the following options: */
  4. #ifndef OPENSSL_SYSNAME_MACOSX
  5. # define OPENSSL_SYSNAME_MACOSX
  6. #endif
  7. #ifndef OPENSSL_DOING_MAKEDEPEND
  8. #ifndef OPENSSL_NO_CAMELLIA
  9. # define OPENSSL_NO_CAMELLIA
  10. #endif
  11. #ifndef OPENSSL_NO_CAPIENG
  12. # define OPENSSL_NO_CAPIENG
  13. #endif
  14. #ifndef OPENSSL_NO_CMS
  15. # define OPENSSL_NO_CMS
  16. #endif
  17. #ifndef OPENSSL_NO_GMP
  18. # define OPENSSL_NO_GMP
  19. #endif
  20. #ifndef OPENSSL_NO_JPAKE
  21. # define OPENSSL_NO_JPAKE
  22. #endif
  23. #ifndef OPENSSL_NO_KRB5
  24. # define OPENSSL_NO_KRB5
  25. #endif
  26. #ifndef OPENSSL_NO_MDC2
  27. # define OPENSSL_NO_MDC2
  28. #endif
  29. #ifndef OPENSSL_NO_RC5
  30. # define OPENSSL_NO_RC5
  31. #endif
  32. #ifndef OPENSSL_NO_RFC3779
  33. # define OPENSSL_NO_RFC3779
  34. #endif
  35. #ifndef OPENSSL_NO_SEED
  36. # define OPENSSL_NO_SEED
  37. #endif
  38. #endif /* OPENSSL_DOING_MAKEDEPEND */
  39. #ifndef OPENSSL_THREADS
  40. # define OPENSSL_THREADS
  41. #endif
  42. #ifndef OPENSSL_NO_STATIC_ENGINE
  43. # define OPENSSL_NO_STATIC_ENGINE
  44. #endif
  45. /* The OPENSSL_NO_* macros are also defined as NO_* if the application
  46. asks for it. This is a transient feature that is provided for those
  47. who haven't had the time to do the appropriate changes in their
  48. applications. */
  49. #ifdef OPENSSL_ALGORITHM_DEFINES
  50. # if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
  51. # define NO_CAMELLIA
  52. # endif
  53. # if defined(OPENSSL_NO_CAPIENG) && !defined(NO_CAPIENG)
  54. # define NO_CAPIENG
  55. # endif
  56. # if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
  57. # define NO_CMS
  58. # endif
  59. # if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
  60. # define NO_GMP
  61. # endif
  62. # if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
  63. # define NO_JPAKE
  64. # endif
  65. # if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
  66. # define NO_KRB5
  67. # endif
  68. # if defined(OPENSSL_NO_MDC2) && !defined(NO_MDC2)
  69. # define NO_MDC2
  70. # endif
  71. # if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
  72. # define NO_RC5
  73. # endif
  74. # if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
  75. # define NO_RFC3779
  76. # endif
  77. # if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
  78. # define NO_SEED
  79. # endif
  80. #endif
  81. /* crypto/opensslconf.h.in */
  82. #ifdef OPENSSL_DOING_MAKEDEPEND
  83. /* Include any symbols here that have to be explicitly set to enable a feature
  84. * that should be visible to makedepend.
  85. *
  86. * [Our "make depend" doesn't actually look at this, we use actual build settings
  87. * instead; we want to make it easy to remove subdirectories with disabled algorithms.]
  88. */
  89. #ifndef OPENSSL_FIPS
  90. #define OPENSSL_FIPS
  91. #endif
  92. #endif
  93. /* Generate 80386 code? */
  94. #undef I386_ONLY
  95. #if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
  96. #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
  97. #define ENGINESDIR "/usr/lib/engines"
  98. #define OPENSSLDIR "/usr/lib/ssl"
  99. #endif
  100. #endif
  101. #undef OPENSSL_UNISTD
  102. #define OPENSSL_UNISTD <unistd.h>
  103. #undef OPENSSL_EXPORT_VAR_AS_FUNCTION
  104. #if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
  105. #define IDEA_INT unsigned int
  106. #endif
  107. #if defined(HEADER_MD2_H) && !defined(MD2_INT)
  108. #define MD2_INT unsigned int
  109. #endif
  110. #if defined(HEADER_RC2_H) && !defined(RC2_INT)
  111. /* I need to put in a mod for the alpha - eay */
  112. #define RC2_INT unsigned int
  113. #endif
  114. #if defined(HEADER_RC4_H)
  115. #if !defined(RC4_INT)
  116. /* using int types make the structure larger but make the code faster
  117. * on most boxes I have tested - up to %20 faster. */
  118. /*
  119. * I don't know what does "most" mean, but declaring "int" is a must on:
  120. * - Intel P6 because partial register stalls are very expensive;
  121. * - elder Alpha because it lacks byte load/store instructions;
  122. */
  123. #define RC4_INT unsigned char
  124. #endif
  125. #if !defined(RC4_CHUNK)
  126. /*
  127. * This enables code handling data aligned at natural CPU word
  128. * boundary. See crypto/rc4/rc4_enc.c for further details.
  129. */
  130. #define RC4_CHUNK unsigned long
  131. #endif
  132. #endif
  133. #if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
  134. /* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
  135. * %20 speed up (longs are 8 bytes, int's are 4). */
  136. #ifndef DES_LONG
  137. #define DES_LONG unsigned long
  138. #endif
  139. #endif
  140. #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
  141. #define CONFIG_HEADER_BN_H
  142. #define BN_LLONG
  143. /* Should we define BN_DIV2W here? */
  144. /* Only one for the following should be defined */
  145. /* The prime number generation stuff may not work when
  146. * EIGHT_BIT but I don't care since I've only used this mode
  147. * for debuging the bignum libraries */
  148. #undef SIXTY_FOUR_BIT_LONG
  149. #undef SIXTY_FOUR_BIT
  150. #define THIRTY_TWO_BIT
  151. #undef SIXTEEN_BIT
  152. #undef EIGHT_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. #define 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. 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 ) /* 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 */