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