1*2139Sjp161948 /* 2*2139Sjp161948 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 3*2139Sjp161948 * Use is subject to license terms. 4*2139Sjp161948 */ 5*2139Sjp161948 6*2139Sjp161948 #pragma ident "%Z%%M% %I% %E% SMI" 7*2139Sjp161948 80Sstevel@tonic-gate /* opensslconf.h */ 90Sstevel@tonic-gate /* WARNING: Generated automatically from opensslconf.h.in by Configure. */ 100Sstevel@tonic-gate 110Sstevel@tonic-gate /* OpenSSL was configured with the following options: */ 120Sstevel@tonic-gate #if defined(__sparcv9) 130Sstevel@tonic-gate #ifndef OPENSSL_SYSNAME_ULTRASPARC 140Sstevel@tonic-gate # define OPENSSL_SYSNAME_ULTRASPARC 150Sstevel@tonic-gate #endif 160Sstevel@tonic-gate #endif /* defined(__sparcv9) */ 170Sstevel@tonic-gate 180Sstevel@tonic-gate #ifndef OPENSSL_NO_EC 190Sstevel@tonic-gate # define OPENSSL_NO_EC 200Sstevel@tonic-gate #endif 210Sstevel@tonic-gate 22*2139Sjp161948 #ifndef OPENSSL_NO_ECDH 23*2139Sjp161948 # define OPENSSL_NO_ECDH 24*2139Sjp161948 #endif 25*2139Sjp161948 26*2139Sjp161948 #ifndef OPENSSL_NO_ECDSA 27*2139Sjp161948 # define OPENSSL_NO_ECDSA 28*2139Sjp161948 #endif 29*2139Sjp161948 300Sstevel@tonic-gate #ifndef OPENSSL_NO_MDC2 310Sstevel@tonic-gate # define OPENSSL_NO_MDC2 320Sstevel@tonic-gate #endif 330Sstevel@tonic-gate 340Sstevel@tonic-gate #ifndef OPENSSL_NO_IDEA 350Sstevel@tonic-gate # define OPENSSL_NO_IDEA 360Sstevel@tonic-gate #endif 370Sstevel@tonic-gate 38*2139Sjp161948 #ifndef OPENSSL_NO_KRB5 39*2139Sjp161948 # define OPENSSL_NO_KRB5 40*2139Sjp161948 #endif 41*2139Sjp161948 #ifndef OPENSSL_NO_GMP 42*2139Sjp161948 # define OPENSSL_NO_GMP 43*2139Sjp161948 #endif 440Sstevel@tonic-gate #ifndef OPENSSL_NO_RC3 450Sstevel@tonic-gate # define OPENSSL_NO_RC3 460Sstevel@tonic-gate #endif 470Sstevel@tonic-gate 480Sstevel@tonic-gate #ifndef OPENSSL_NO_RC5 490Sstevel@tonic-gate # define OPENSSL_NO_RC5 500Sstevel@tonic-gate #endif 510Sstevel@tonic-gate 520Sstevel@tonic-gate #ifndef OPENSSL_NO_HW_CSWIFT 530Sstevel@tonic-gate # define OPENSSL_NO_HW_CSWIFT 540Sstevel@tonic-gate #endif 550Sstevel@tonic-gate 560Sstevel@tonic-gate #ifndef OPENSSL_NO_HW_ATALLA 570Sstevel@tonic-gate # define OPENSSL_NO_HW_ATALLA 580Sstevel@tonic-gate #endif 590Sstevel@tonic-gate 600Sstevel@tonic-gate #ifndef OPENSSL_NO_HW_NURON 610Sstevel@tonic-gate # define OPENSSL_NO_HW_NURON 620Sstevel@tonic-gate #endif 630Sstevel@tonic-gate 640Sstevel@tonic-gate #ifndef OPENSSL_NO_HW_UBSEC 650Sstevel@tonic-gate # define OPENSSL_NO_HW_UBSEC 660Sstevel@tonic-gate #endif 670Sstevel@tonic-gate 680Sstevel@tonic-gate #ifndef OPENSSL_NO_HW_AEP 690Sstevel@tonic-gate # define OPENSSL_NO_HW_AEP 700Sstevel@tonic-gate #endif 710Sstevel@tonic-gate 720Sstevel@tonic-gate #ifndef OPENSSL_NO_HW_SUREWARE 730Sstevel@tonic-gate # define OPENSSL_NO_HW_SUREWARE 740Sstevel@tonic-gate #endif 750Sstevel@tonic-gate 760Sstevel@tonic-gate #ifndef OPENSSL_NO_HW_4758_CCA 770Sstevel@tonic-gate # define OPENSSL_NO_HW_4758_CCA 780Sstevel@tonic-gate #endif 790Sstevel@tonic-gate 80*2139Sjp161948 #ifndef OPENSSL_NO_HW_CHIL 81*2139Sjp161948 # define OPENSSL_NO_HW_CHIL 820Sstevel@tonic-gate #endif 83*2139Sjp161948 #ifndef OPENSSL_NO_HW_GMP 84*2139Sjp161948 # define OPENSSL_NO_HW_GMP 85*2139Sjp161948 #endif 860Sstevel@tonic-gate /* The OPENSSL_NO_* macros are also defined as NO_* if the application 870Sstevel@tonic-gate asks for it. This is a transient feature that is provided for those 880Sstevel@tonic-gate who haven't had the time to do the appropriate changes in their 890Sstevel@tonic-gate applications. */ 900Sstevel@tonic-gate #ifdef OPENSSL_ALGORITHM_DEFINES 91*2139Sjp161948 /* AES, CAST, RC4 and RIPEMD stuff is here because of Solaris WAN boot */ 920Sstevel@tonic-gate # if defined(OPENSSL_NO_AES) && !defined(NO_AES) 930Sstevel@tonic-gate # define NO_AES 940Sstevel@tonic-gate # endif 950Sstevel@tonic-gate # if defined(OPENSSL_NO_CAST) && !defined(NO_CAST) 960Sstevel@tonic-gate # define NO_CAST 970Sstevel@tonic-gate # endif 980Sstevel@tonic-gate # if defined(OPENSSL_NO_EC) && !defined(NO_EC) 990Sstevel@tonic-gate # define NO_EC 1000Sstevel@tonic-gate # endif 101*2139Sjp161948 # if defined(OPENSSL_NO_ECDH) && !defined(NO_ECDH) 102*2139Sjp161948 # define NO_ECDH 103*2139Sjp161948 # endif 104*2139Sjp161948 # if defined(OPENSSL_NO_ECDSA) && !defined(NO_ECDSA) 105*2139Sjp161948 # define NO_ECDSA 106*2139Sjp161948 # endif 1070Sstevel@tonic-gate # if defined(OPENSSL_NO_MDC2) && !defined(NO_MDC2) 1080Sstevel@tonic-gate # define NO_MDC2 1090Sstevel@tonic-gate # endif 1100Sstevel@tonic-gate # if defined(OPENSSL_NO_RC3) && !defined(NO_RC3) 1110Sstevel@tonic-gate # define NO_RC3 1120Sstevel@tonic-gate # endif 1130Sstevel@tonic-gate # if defined(OPENSSL_NO_RC4) && !defined(NO_RC4) 1140Sstevel@tonic-gate # define NO_RC4 1150Sstevel@tonic-gate # endif 1160Sstevel@tonic-gate # if defined(OPENSSL_NO_RC5) && !defined(NO_RC5) 1170Sstevel@tonic-gate # define NO_RC5 1180Sstevel@tonic-gate # endif 1190Sstevel@tonic-gate # if defined(OPENSSL_NO_RIPEMD) && !defined(NO_RIPEMD) 1200Sstevel@tonic-gate # define NO_RIPEMD 1210Sstevel@tonic-gate # endif 1220Sstevel@tonic-gate # if defined(OPENSSL_NO_IDEA) && !defined(NO_IDEA) 1230Sstevel@tonic-gate # define NO_IDEA 1240Sstevel@tonic-gate # endif 125*2139Sjp161948 # if defined(OPENSSL_NO_GMP) && !defined(NO_GMP) 126*2139Sjp161948 # define NO_GMP 127*2139Sjp161948 # endif 1280Sstevel@tonic-gate # if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5) 1290Sstevel@tonic-gate # define NO_KRB5 1300Sstevel@tonic-gate # endif 1310Sstevel@tonic-gate #endif 1320Sstevel@tonic-gate 1330Sstevel@tonic-gate /* crypto/opensslconf.h.in */ 1340Sstevel@tonic-gate 1350Sstevel@tonic-gate /* Generate 80386 code? */ 1360Sstevel@tonic-gate #undef I386_ONLY 1370Sstevel@tonic-gate 1380Sstevel@tonic-gate #if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */ 1390Sstevel@tonic-gate #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR) 140*2139Sjp161948 #define ENGINESDIR "/usr/local/ssl/lib/engines" 1410Sstevel@tonic-gate #define OPENSSLDIR "/usr/local/ssl" 1420Sstevel@tonic-gate #endif 1430Sstevel@tonic-gate #endif 1440Sstevel@tonic-gate 1450Sstevel@tonic-gate #undef OPENSSL_UNISTD 1460Sstevel@tonic-gate #define OPENSSL_UNISTD <unistd.h> 1470Sstevel@tonic-gate 1480Sstevel@tonic-gate #undef OPENSSL_EXPORT_VAR_AS_FUNCTION 1490Sstevel@tonic-gate 1500Sstevel@tonic-gate #if defined(HEADER_IDEA_H) && !defined(IDEA_INT) 1510Sstevel@tonic-gate #define IDEA_INT unsigned int 1520Sstevel@tonic-gate #endif 1530Sstevel@tonic-gate 1540Sstevel@tonic-gate #if defined(HEADER_MD2_H) && !defined(MD2_INT) 1550Sstevel@tonic-gate #define MD2_INT unsigned int 1560Sstevel@tonic-gate #endif 1570Sstevel@tonic-gate 1580Sstevel@tonic-gate #if defined(HEADER_RC2_H) && !defined(RC2_INT) 1590Sstevel@tonic-gate /* I need to put in a mod for the alpha - eay */ 1600Sstevel@tonic-gate #define RC2_INT unsigned int 1610Sstevel@tonic-gate #endif 1620Sstevel@tonic-gate 1630Sstevel@tonic-gate #if defined(HEADER_RC4_H) 1640Sstevel@tonic-gate #if !defined(RC4_INT) 1650Sstevel@tonic-gate /* using int types make the structure larger but make the code faster 1660Sstevel@tonic-gate * on most boxes I have tested - up to %20 faster. */ 1670Sstevel@tonic-gate /* 1680Sstevel@tonic-gate * I don't know what does "most" mean, but declaring "int" is a must on: 1690Sstevel@tonic-gate * - Intel P6 because partial register stalls are very expensive; 1700Sstevel@tonic-gate * - elder Alpha because it lacks byte load/store instructions; 1710Sstevel@tonic-gate */ 1720Sstevel@tonic-gate #define RC4_INT unsigned char 1730Sstevel@tonic-gate #endif 1740Sstevel@tonic-gate #if !defined(RC4_CHUNK) 1750Sstevel@tonic-gate /* 1760Sstevel@tonic-gate * This enables code handling data aligned at natural CPU word 1770Sstevel@tonic-gate * boundary. See crypto/rc4/rc4_enc.c for further details. 1780Sstevel@tonic-gate */ 1790Sstevel@tonic-gate #define RC4_CHUNK unsigned long 1800Sstevel@tonic-gate #endif 1810Sstevel@tonic-gate #endif 1820Sstevel@tonic-gate 1830Sstevel@tonic-gate #if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG) 1840Sstevel@tonic-gate /* If this is set to 'unsigned int' on a DEC Alpha, this gives about a 1850Sstevel@tonic-gate * %20 speed up (longs are 8 bytes, int's are 4). */ 1860Sstevel@tonic-gate #ifndef DES_LONG 1870Sstevel@tonic-gate #if defined(__sparcv9) || defined(__x86_64) 1880Sstevel@tonic-gate #define DES_LONG unsigned int 1890Sstevel@tonic-gate #else 1900Sstevel@tonic-gate #define DES_LONG unsigned long 1910Sstevel@tonic-gate #endif 1920Sstevel@tonic-gate #endif 1930Sstevel@tonic-gate #endif 1940Sstevel@tonic-gate 1950Sstevel@tonic-gate #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H) 1960Sstevel@tonic-gate #define CONFIG_HEADER_BN_H 1970Sstevel@tonic-gate #if defined(__sparcv9) || defined(__x86_64) 1980Sstevel@tonic-gate #undef BN_LLONG 1990Sstevel@tonic-gate #else 2000Sstevel@tonic-gate #define BN_LLONG 2010Sstevel@tonic-gate #endif 2020Sstevel@tonic-gate 2030Sstevel@tonic-gate /* Should we define BN_DIV2W here? */ 2040Sstevel@tonic-gate 2050Sstevel@tonic-gate /* Only one for the following should be defined */ 2060Sstevel@tonic-gate /* The prime number generation stuff may not work when 2070Sstevel@tonic-gate * EIGHT_BIT but I don't care since I've only used this mode 2080Sstevel@tonic-gate * for debuging the bignum libraries */ 2090Sstevel@tonic-gate #if defined(__sparcv9) || defined(__x86_64) 2100Sstevel@tonic-gate #define SIXTY_FOUR_BIT_LONG 2110Sstevel@tonic-gate #undef THIRTY_TWO_BIT 2120Sstevel@tonic-gate #else 2130Sstevel@tonic-gate #undef SIXTY_FOUR_BIT_LONG 2140Sstevel@tonic-gate #define THIRTY_TWO_BIT 2150Sstevel@tonic-gate #endif 2160Sstevel@tonic-gate #undef SIXTY_FOUR_BIT 2170Sstevel@tonic-gate #undef SIXTEEN_BIT 2180Sstevel@tonic-gate #undef EIGHT_BIT 2190Sstevel@tonic-gate #endif 2200Sstevel@tonic-gate 2210Sstevel@tonic-gate #if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H) 2220Sstevel@tonic-gate #define CONFIG_HEADER_RC4_LOCL_H 2230Sstevel@tonic-gate /* if this is defined data[i] is used instead of *data, this is a %20 2240Sstevel@tonic-gate * speedup on x86 */ 2250Sstevel@tonic-gate #undef RC4_INDEX 2260Sstevel@tonic-gate #endif 2270Sstevel@tonic-gate 2280Sstevel@tonic-gate #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H) 2290Sstevel@tonic-gate #define CONFIG_HEADER_BF_LOCL_H 2300Sstevel@tonic-gate #define BF_PTR 2310Sstevel@tonic-gate #endif /* HEADER_BF_LOCL_H */ 2320Sstevel@tonic-gate 2330Sstevel@tonic-gate #if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H) 2340Sstevel@tonic-gate #define CONFIG_HEADER_DES_LOCL_H 2350Sstevel@tonic-gate #ifndef DES_DEFAULT_OPTIONS 2360Sstevel@tonic-gate /* the following is tweaked from a config script, that is why it is a 2370Sstevel@tonic-gate * protected undef/define */ 2380Sstevel@tonic-gate #ifndef DES_PTR 2390Sstevel@tonic-gate #define DES_PTR 2400Sstevel@tonic-gate #endif 2410Sstevel@tonic-gate 2420Sstevel@tonic-gate /* This helps C compiler generate the correct code for multiple functional 2430Sstevel@tonic-gate * units. It reduces register dependancies at the expense of 2 more 2440Sstevel@tonic-gate * registers */ 2450Sstevel@tonic-gate #ifndef DES_RISC1 2460Sstevel@tonic-gate #if (defined(__sparc) || defined(__sparcv9)) 2470Sstevel@tonic-gate #define DES_RISC1 2480Sstevel@tonic-gate #endif 2490Sstevel@tonic-gate #endif 2500Sstevel@tonic-gate 2510Sstevel@tonic-gate #ifndef DES_RISC2 2520Sstevel@tonic-gate #undef DES_RISC2 2530Sstevel@tonic-gate #endif 2540Sstevel@tonic-gate 2550Sstevel@tonic-gate #if defined(DES_RISC1) && defined(DES_RISC2) 2560Sstevel@tonic-gate YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!! 2570Sstevel@tonic-gate #endif 2580Sstevel@tonic-gate 2590Sstevel@tonic-gate /* Unroll the inner loop, this sometimes helps, sometimes hinders. 2600Sstevel@tonic-gate * Very mucy CPU dependant */ 2610Sstevel@tonic-gate #ifndef DES_UNROLL 2620Sstevel@tonic-gate #define DES_UNROLL 2630Sstevel@tonic-gate #endif 2640Sstevel@tonic-gate 2650Sstevel@tonic-gate /* These default values were supplied by 2660Sstevel@tonic-gate * Peter Gutman <pgut001@cs.auckland.ac.nz> 2670Sstevel@tonic-gate * They are only used if nothing else has been defined */ 2680Sstevel@tonic-gate #if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL) 2690Sstevel@tonic-gate /* Special defines which change the way the code is built depending on the 2700Sstevel@tonic-gate CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find 2710Sstevel@tonic-gate even newer MIPS CPU's, but at the moment one size fits all for 2720Sstevel@tonic-gate optimization options. Older Sparc's work better with only UNROLL, but 2730Sstevel@tonic-gate there's no way to tell at compile time what it is you're running on */ 2740Sstevel@tonic-gate 2750Sstevel@tonic-gate #if defined( sun ) /* Newer Sparc's */ 2760Sstevel@tonic-gate # define DES_PTR 2770Sstevel@tonic-gate # define DES_RISC1 2780Sstevel@tonic-gate # define DES_UNROLL 2790Sstevel@tonic-gate #elif defined( __ultrix ) /* Older MIPS */ 2800Sstevel@tonic-gate # define DES_PTR 2810Sstevel@tonic-gate # define DES_RISC2 2820Sstevel@tonic-gate # define DES_UNROLL 2830Sstevel@tonic-gate #elif defined( __osf1__ ) /* Alpha */ 2840Sstevel@tonic-gate # define DES_PTR 2850Sstevel@tonic-gate # define DES_RISC2 2860Sstevel@tonic-gate #elif defined ( _AIX ) /* RS6000 */ 2870Sstevel@tonic-gate /* Unknown */ 2880Sstevel@tonic-gate #elif defined( __hpux ) /* HP-PA */ 2890Sstevel@tonic-gate /* Unknown */ 2900Sstevel@tonic-gate #elif defined( __aux ) /* 68K */ 2910Sstevel@tonic-gate /* Unknown */ 2920Sstevel@tonic-gate #elif defined( __dgux ) /* 88K (but P6 in latest boxes) */ 2930Sstevel@tonic-gate # define DES_UNROLL 2940Sstevel@tonic-gate #elif defined( __sgi ) /* Newer MIPS */ 2950Sstevel@tonic-gate # define DES_PTR 2960Sstevel@tonic-gate # define DES_RISC2 2970Sstevel@tonic-gate # define DES_UNROLL 2980Sstevel@tonic-gate #elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */ 2990Sstevel@tonic-gate # define DES_PTR 3000Sstevel@tonic-gate # define DES_RISC1 3010Sstevel@tonic-gate # define DES_UNROLL 3020Sstevel@tonic-gate #endif /* Systems-specific speed defines */ 3030Sstevel@tonic-gate #endif 3040Sstevel@tonic-gate 3050Sstevel@tonic-gate #endif /* DES_DEFAULT_OPTIONS */ 3060Sstevel@tonic-gate #endif /* HEADER_DES_LOCL_H */ 307*2139Sjp161948 308*2139Sjp161948 #ifndef _BOOT 309*2139Sjp161948 #ifndef OPENSSL_THREADS 310*2139Sjp161948 # define OPENSSL_THREADS 311*2139Sjp161948 #endif 312*2139Sjp161948 #endif 313