home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / tsw / TSW_3.4.0.exe / Apache2 / ssl / opensslconf.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-03-20  |  5.4 KB  |  189 lines

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