1129209Scognet/* $FreeBSD$ */ 2129209Scognet/* opensslconf.h */ 3129209Scognet/* WARNING: Generated automatically from opensslconf.h.in by Configure. */ 4129209Scognet 5129209Scognet/* OpenSSL was configured with the following options: */ 6160819Ssimon#ifndef OPENSSL_DOING_MAKEDEPEND 7160819Ssimon 8238405Sjkim 9238405Sjkim#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128 10238405Sjkim# define OPENSSL_NO_EC_NISTP_64_GCC_128 11162915Ssimon#endif 12160819Ssimon#ifndef OPENSSL_NO_GMP 13160819Ssimon# define OPENSSL_NO_GMP 14160819Ssimon#endif 15194207Ssimon#ifndef OPENSSL_NO_JPAKE 16194207Ssimon# define OPENSSL_NO_JPAKE 17194207Ssimon#endif 18160819Ssimon#ifndef OPENSSL_NO_KRB5 19160819Ssimon# define OPENSSL_NO_KRB5 20160819Ssimon#endif 21238405Sjkim#ifndef OPENSSL_NO_MD2 22238405Sjkim# define OPENSSL_NO_MD2 23238405Sjkim#endif 24238405Sjkim#ifndef OPENSSL_NO_SCTP 25238405Sjkim# define OPENSSL_NO_SCTP 26238405Sjkim#endif 27238405Sjkim#ifndef OPENSSL_NO_STORE 28238405Sjkim# define OPENSSL_NO_STORE 29238405Sjkim#endif 30160819Ssimon 31160819Ssimon#endif /* OPENSSL_DOING_MAKEDEPEND */ 32238405Sjkim 33160819Ssimon#ifndef OPENSSL_THREADS 34160819Ssimon# define OPENSSL_THREADS 35160819Ssimon#endif 36238405Sjkim#ifndef OPENSSL_NO_ASM 37238405Sjkim# define OPENSSL_NO_ASM 38238405Sjkim#endif 39160819Ssimon#ifndef OPENSSL_NO_STATIC_ENGINE 40160819Ssimon# define OPENSSL_NO_STATIC_ENGINE 41160819Ssimon#endif 42160819Ssimon 43160819Ssimon/* The OPENSSL_NO_* macros are also defined as NO_* if the application 44160819Ssimon asks for it. This is a transient feature that is provided for those 45160819Ssimon who haven't had the time to do the appropriate changes in their 46160819Ssimon applications. */ 47129209Scognet#ifdef OPENSSL_ALGORITHM_DEFINES 48238405Sjkim# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128) 49238405Sjkim# define NO_EC_NISTP_64_GCC_128 50238405Sjkim# endif 51160819Ssimon# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP) 52160819Ssimon# define NO_GMP 53129209Scognet# endif 54238405Sjkim# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE) 55238405Sjkim# define NO_JPAKE 56238405Sjkim# endif 57160819Ssimon# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5) 58160819Ssimon# define NO_KRB5 59160819Ssimon# endif 60238405Sjkim# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2) 61238405Sjkim# define NO_MD2 62160819Ssimon# endif 63238405Sjkim# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP) 64238405Sjkim# define NO_SCTP 65129209Scognet# endif 66238405Sjkim# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE) 67238405Sjkim# define NO_STORE 68238405Sjkim# endif 69129209Scognet#endif 70129209Scognet 71129209Scognet/* crypto/opensslconf.h.in */ 72129209Scognet 73129209Scognet/* Generate 80386 code? */ 74129209Scognet#undef I386_ONLY 75129209Scognet 76129209Scognet#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */ 77129209Scognet#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR) 78160819Ssimon#define ENGINESDIR "/usr/lib/engines" 79129209Scognet#define OPENSSLDIR "/etc/ssl" 80129209Scognet#endif 81129209Scognet#endif 82129209Scognet 83160819Ssimon#undef OPENSSL_UNISTD 84129209Scognet#define OPENSSL_UNISTD <unistd.h> 85129209Scognet 86160819Ssimon#undef OPENSSL_EXPORT_VAR_AS_FUNCTION 87160819Ssimon 88129209Scognet#if defined(HEADER_IDEA_H) && !defined(IDEA_INT) 89129209Scognet#define IDEA_INT unsigned int 90129209Scognet#endif 91129209Scognet 92129209Scognet#if defined(HEADER_MD2_H) && !defined(MD2_INT) 93129209Scognet#define MD2_INT unsigned int 94129209Scognet#endif 95129209Scognet 96129209Scognet#if defined(HEADER_RC2_H) && !defined(RC2_INT) 97129209Scognet/* I need to put in a mod for the alpha - eay */ 98129209Scognet#define RC2_INT unsigned int 99129209Scognet#endif 100129209Scognet 101129209Scognet#if defined(HEADER_RC4_H) 102129209Scognet#if !defined(RC4_INT) 103129209Scognet/* using int types make the structure larger but make the code faster 104129209Scognet * on most boxes I have tested - up to %20 faster. */ 105129209Scognet/* 106129209Scognet * I don't know what does "most" mean, but declaring "int" is a must on: 107129209Scognet * - Intel P6 because partial register stalls are very expensive; 108129209Scognet * - elder Alpha because it lacks byte load/store instructions; 109129209Scognet */ 110129209Scognet#define RC4_INT unsigned int 111129209Scognet#endif 112129209Scognet#if !defined(RC4_CHUNK) 113129209Scognet/* 114129209Scognet * This enables code handling data aligned at natural CPU word 115129209Scognet * boundary. See crypto/rc4/rc4_enc.c for further details. 116129209Scognet */ 117129209Scognet#undef RC4_CHUNK 118129209Scognet#endif 119129209Scognet#endif 120129209Scognet 121160819Ssimon#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG) 122129209Scognet/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a 123129209Scognet * %20 speed up (longs are 8 bytes, int's are 4). */ 124129209Scognet#ifndef DES_LONG 125129209Scognet#define DES_LONG unsigned long 126129209Scognet#endif 127129209Scognet#endif 128129209Scognet 129129209Scognet#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H) 130129209Scognet#define CONFIG_HEADER_BN_H 131129209Scognet#define BN_LLONG 132129209Scognet 133129209Scognet/* Should we define BN_DIV2W here? */ 134129209Scognet 135129209Scognet/* Only one for the following should be defined */ 136129209Scognet#undef SIXTY_FOUR_BIT_LONG 137129209Scognet#undef SIXTY_FOUR_BIT 138129209Scognet#define THIRTY_TWO_BIT 139129209Scognet#endif 140129209Scognet 141129209Scognet#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H) 142129209Scognet#define CONFIG_HEADER_RC4_LOCL_H 143129209Scognet/* if this is defined data[i] is used instead of *data, this is a %20 144129209Scognet * speedup on x86 */ 145129209Scognet#define RC4_INDEX 146129209Scognet#endif 147129209Scognet 148129209Scognet#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H) 149129209Scognet#define CONFIG_HEADER_BF_LOCL_H 150129209Scognet#undef BF_PTR 151129209Scognet#endif /* HEADER_BF_LOCL_H */ 152129209Scognet 153129209Scognet#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H) 154129209Scognet#define CONFIG_HEADER_DES_LOCL_H 155129209Scognet#ifndef DES_DEFAULT_OPTIONS 156129209Scognet/* the following is tweaked from a config script, that is why it is a 157129209Scognet * protected undef/define */ 158129209Scognet#ifndef DES_PTR 159129209Scognet#define DES_PTR 160129209Scognet#endif 161129209Scognet 162129209Scognet/* This helps C compiler generate the correct code for multiple functional 163129209Scognet * units. It reduces register dependancies at the expense of 2 more 164129209Scognet * registers */ 165129209Scognet#ifndef DES_RISC1 166129209Scognet#define DES_RISC1 167129209Scognet#endif 168129209Scognet 169129209Scognet#ifndef DES_RISC2 170129209Scognet#undef DES_RISC2 171129209Scognet#endif 172129209Scognet 173129209Scognet#if defined(DES_RISC1) && defined(DES_RISC2) 174129209ScognetYOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!! 175129209Scognet#endif 176129209Scognet 177129209Scognet/* Unroll the inner loop, this sometimes helps, sometimes hinders. 178129209Scognet * Very mucy CPU dependant */ 179129209Scognet#ifndef DES_UNROLL 180129209Scognet#define DES_UNROLL 181129209Scognet#endif 182129209Scognet 183129209Scognet/* These default values were supplied by 184129209Scognet * Peter Gutman <pgut001@cs.auckland.ac.nz> 185129209Scognet * They are only used if nothing else has been defined */ 186129209Scognet#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL) 187129209Scognet/* Special defines which change the way the code is built depending on the 188129209Scognet CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find 189129209Scognet even newer MIPS CPU's, but at the moment one size fits all for 190129209Scognet optimization options. Older Sparc's work better with only UNROLL, but 191129209Scognet there's no way to tell at compile time what it is you're running on */ 192129209Scognet 193129209Scognet#if defined( sun ) /* Newer Sparc's */ 194129209Scognet# define DES_PTR 195129209Scognet# define DES_RISC1 196129209Scognet# define DES_UNROLL 197129209Scognet#elif defined( __ultrix ) /* Older MIPS */ 198129209Scognet# define DES_PTR 199129209Scognet# define DES_RISC2 200129209Scognet# define DES_UNROLL 201129209Scognet#elif defined( __osf1__ ) /* Alpha */ 202129209Scognet# define DES_PTR 203129209Scognet# define DES_RISC2 204129209Scognet#elif defined ( _AIX ) /* RS6000 */ 205129209Scognet /* Unknown */ 206129209Scognet#elif defined( __hpux ) /* HP-PA */ 207129209Scognet /* Unknown */ 208129209Scognet#elif defined( __aux ) /* 68K */ 209129209Scognet /* Unknown */ 210129209Scognet#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */ 211129209Scognet# define DES_UNROLL 212129209Scognet#elif defined( __sgi ) /* Newer MIPS */ 213129209Scognet# define DES_PTR 214129209Scognet# define DES_RISC2 215129209Scognet# define DES_UNROLL 216238405Sjkim#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */ 217129209Scognet# define DES_PTR 218129209Scognet# define DES_RISC1 219129209Scognet# define DES_UNROLL 220129209Scognet#endif /* Systems-specific speed defines */ 221129209Scognet#endif 222129209Scognet 223129209Scognet#endif /* DES_DEFAULT_OPTIONS */ 224129209Scognet#endif /* HEADER_DES_LOCL_H */ 225