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