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