opensslconf.h revision 59191
1238106Sdes/* opensslconf.h */ 2238106Sdes/* WARNING: Generated automatically from opensslconf.h.in by Configure. */ 3238106Sdes 4238106Sdes/* OpenSSL was configured with the following options: */ 5238106Sdes#ifdef OPENSSL_ALGORITHM_DEFINES 6238106Sdes /* no ciphers excluded */ 7238106Sdes#endif 8238106Sdes#ifdef OPENSSL_THREAD_DEFINES 9238106Sdes#endif 10238106Sdes#ifdef OPENSSL_OTHER_DEFINES 11238106Sdes#endif 12238106Sdes 13238106Sdes/* crypto/opensslconf.h.in */ 14238106Sdes 15238106Sdes/* Generate 80386 code? */ 16238106Sdes#undef I386_ONLY 17238106Sdes 18238106Sdes#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */ 19238106Sdes#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR) 20238106Sdes#define OPENSSLDIR "/usr/local/ssl" 21238106Sdes#endif 22238106Sdes#endif 23238106Sdes 24238106Sdes#define OPENSSL_UNISTD <unistd.h> 25238106Sdes 26238106Sdes#if defined(HEADER_IDEA_H) && !defined(IDEA_INT) 27238106Sdes#define IDEA_INT unsigned int 28238106Sdes#endif 29238106Sdes 30238106Sdes#if defined(HEADER_MD2_H) && !defined(MD2_INT) 31238106Sdes#define MD2_INT unsigned int 32238106Sdes#endif 33238106Sdes 34238106Sdes#if defined(HEADER_RC2_H) && !defined(RC2_INT) 35238106Sdes/* I need to put in a mod for the alpha - eay */ 36238106Sdes#define RC2_INT unsigned int 37238106Sdes#endif 38238106Sdes 39238106Sdes#if defined(HEADER_RC4_H) 40238106Sdes#if !defined(RC4_INT) 41238106Sdes/* using int types make the structure larger but make the code faster 42238106Sdes * on most boxes I have tested - up to %20 faster. */ 43238106Sdes/* 44238106Sdes * I don't know what does "most" mean, but declaring "int" is a must on: 45238106Sdes * - Intel P6 because partial register stalls are very expensive; 46238106Sdes * - elder Alpha because it lacks byte load/store instructions; 47238106Sdes */ 48238106Sdes#define RC4_INT unsigned int 49238106Sdes#endif 50238106Sdes#if !defined(RC4_CHUNK) 51238106Sdes/* 52238106Sdes * This enables code handling data aligned at natural CPU word 53238106Sdes * boundary. See crypto/rc4/rc4_enc.c for further details. 54238106Sdes */ 55238106Sdes#undef RC4_CHUNK 56238106Sdes#endif 57238106Sdes#endif 58238106Sdes 59238106Sdes#if defined(HEADER_DES_H) && !defined(DES_LONG) 60238106Sdes/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a 61238106Sdes * %20 speed up (longs are 8 bytes, int's are 4). */ 62238106Sdes#ifndef DES_LONG 63238106Sdes#define DES_LONG unsigned long 64238106Sdes#endif 65238106Sdes#endif 66238106Sdes 67238106Sdes#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H) 68238106Sdes#define CONFIG_HEADER_BN_H 69238106Sdes#undef BN_LLONG 70238106Sdes 71238106Sdes/* Should we define BN_DIV2W here? */ 72238106Sdes 73238106Sdes/* Only one for the following should be defined */ 74238106Sdes/* The prime number generation stuff may not work when 75238106Sdes * EIGHT_BIT but I don't care since I've only used this mode 76238106Sdes * for debuging the bignum libraries */ 77238106Sdes#undef SIXTY_FOUR_BIT_LONG 78238106Sdes#undef SIXTY_FOUR_BIT 79238106Sdes#define THIRTY_TWO_BIT 80238106Sdes#undef SIXTEEN_BIT 81238106Sdes#undef EIGHT_BIT 82238106Sdes#endif 83238106Sdes 84238106Sdes#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H) 85238106Sdes#define CONFIG_HEADER_RC4_LOCL_H 86238106Sdes/* if this is defined data[i] is used instead of *data, this is a %20 87238106Sdes * speedup on x86 */ 88238106Sdes#undef RC4_INDEX 89238106Sdes#endif 90238106Sdes 91238106Sdes#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H) 92238106Sdes#define CONFIG_HEADER_BF_LOCL_H 93238106Sdes#undef BF_PTR 94238106Sdes#endif /* HEADER_BF_LOCL_H */ 95238106Sdes 96238106Sdes#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H) 97238106Sdes#define CONFIG_HEADER_DES_LOCL_H 98238106Sdes#ifndef DES_DEFAULT_OPTIONS 99238106Sdes/* the following is tweaked from a config script, that is why it is a 100238106Sdes * protected undef/define */ 101238106Sdes#ifndef DES_PTR 102238106Sdes#undef DES_PTR 103238106Sdes#endif 104238106Sdes 105238106Sdes/* This helps C compiler generate the correct code for multiple functional 106238106Sdes * units. It reduces register dependancies at the expense of 2 more 107238106Sdes * registers */ 108238106Sdes#ifndef DES_RISC1 109238106Sdes#undef DES_RISC1 110238106Sdes#endif 111238106Sdes 112238106Sdes#ifndef DES_RISC2 113238106Sdes#undef DES_RISC2 114238106Sdes#endif 115238106Sdes 116238106Sdes#if defined(DES_RISC1) && defined(DES_RISC2) 117238106SdesYOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!! 118238106Sdes#endif 119238106Sdes 120238106Sdes/* Unroll the inner loop, this sometimes helps, sometimes hinders. 121238106Sdes * Very mucy CPU dependant */ 122238106Sdes#ifndef DES_UNROLL 123238106Sdes#undef DES_UNROLL 124238106Sdes#endif 125238106Sdes 126238106Sdes/* These default values were supplied by 127238106Sdes * Peter Gutman <pgut001@cs.auckland.ac.nz> 128238106Sdes * They are only used if nothing else has been defined */ 129238106Sdes#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL) 130238106Sdes/* Special defines which change the way the code is built depending on the 131238106Sdes CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find 132238106Sdes even newer MIPS CPU's, but at the moment one size fits all for 133238106Sdes optimization options. Older Sparc's work better with only UNROLL, but 134238106Sdes there's no way to tell at compile time what it is you're running on */ 135238106Sdes 136238106Sdes#if defined( sun ) /* Newer Sparc's */ 137238106Sdes# define DES_PTR 138238106Sdes# define DES_RISC1 139238106Sdes# define DES_UNROLL 140238106Sdes#elif defined( __ultrix ) /* Older MIPS */ 141238106Sdes# define DES_PTR 142238106Sdes# define DES_RISC2 143238106Sdes# define DES_UNROLL 144238106Sdes#elif defined( __osf1__ ) /* Alpha */ 145238106Sdes# define DES_PTR 146238106Sdes# define DES_RISC2 147238106Sdes#elif defined ( _AIX ) /* RS6000 */ 148238106Sdes /* Unknown */ 149238106Sdes#elif defined( __hpux ) /* HP-PA */ 150238106Sdes /* Unknown */ 151238106Sdes#elif defined( __aux ) /* 68K */ 152238106Sdes /* Unknown */ 153238106Sdes#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */ 154238106Sdes# define DES_UNROLL 155238106Sdes#elif defined( __sgi ) /* Newer MIPS */ 156238106Sdes# define DES_PTR 157238106Sdes# define DES_RISC2 158238106Sdes# define DES_UNROLL 159238106Sdes#elif defined( i386 ) /* x86 boxes, should be gcc */ 160238106Sdes# define DES_PTR 161238106Sdes# define DES_RISC1 162238106Sdes# define DES_UNROLL 163238106Sdes#endif /* Systems-specific speed defines */ 164238106Sdes#endif 165238106Sdes 166238106Sdes#endif /* DES_DEFAULT_OPTIONS */ 167238106Sdes#endif /* HEADER_DES_LOCL_H */ 168238106Sdes