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