196643Sobrien/* $FreeBSD$ */ 296643Sobrien/* opensslconf.h */ 396643Sobrien/* WARNING: Generated automatically from opensslconf.h.in by Configure. */ 496643Sobrien 596643Sobrien/* OpenSSL was configured with the following options: */ 6160819Ssimon#ifndef OPENSSL_DOING_MAKEDEPEND 7160819Ssimon 8162915Ssimon/* Disabled by default in OpenSSL 0.9.8. */ 9162915Ssimon#ifndef OPENSSL_NO_CAMELLIA 10162915Ssimon# define OPENSSL_NO_CAMELLIA 11162915Ssimon#endif 12194207Ssimon/* Disabled by default in OpenSSL 0.9.8. */ 13194207Ssimon#ifndef OPENSSL_NO_CMS 14194207Ssimon# define OPENSSL_NO_CMS 15194207Ssimon#endif 16194207Ssimon/* Disabled by default in OpenSSL 0.9.8. */ 17194207Ssimon#ifndef OPENSSL_NO_SEED 18194207Ssimon# define OPENSSL_NO_SEED 19194207Ssimon#endif 20194207Ssimon/* jpake is marked experimental in OpenSSL 0.9.8. */ 21194207Ssimon#ifndef OPENSSL_NO_JPAKE 22194207Ssimon# define OPENSSL_NO_JPAKE 23194207Ssimon#endif 24160819Ssimon/* libgmp is not in the FreeBSD base system. */ 25160819Ssimon#ifndef OPENSSL_NO_GMP 26160819Ssimon# define OPENSSL_NO_GMP 27160819Ssimon#endif 28160819Ssimon/* The Kerberos 5 support is MIT-specific. */ 29160819Ssimon#ifndef OPENSSL_NO_KRB5 30160819Ssimon# define OPENSSL_NO_KRB5 31160819Ssimon#endif 32160819Ssimon 33160819Ssimon#endif /* OPENSSL_DOING_MAKEDEPEND */ 34160819Ssimon#ifndef OPENSSL_THREADS 35160819Ssimon# define OPENSSL_THREADS 36160819Ssimon#endif 37160819Ssimon#ifndef OPENSSL_NO_STATIC_ENGINE 38160819Ssimon# define OPENSSL_NO_STATIC_ENGINE 39160819Ssimon#endif 40160819Ssimon 41160819Ssimon/* The OPENSSL_NO_* macros are also defined as NO_* if the application 42160819Ssimon asks for it. This is a transient feature that is provided for those 43160819Ssimon who haven't had the time to do the appropriate changes in their 44160819Ssimon applications. */ 4596643Sobrien#ifdef OPENSSL_ALGORITHM_DEFINES 46160819Ssimon# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP) 47160819Ssimon# define NO_GMP 4896643Sobrien# endif 49160819Ssimon# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5) 50160819Ssimon# define NO_KRB5 51160819Ssimon# endif 52160819Ssimon# endif 5396643Sobrien#ifdef OPENSSL_OTHER_DEFINES 5496643Sobrien# ifndef NO_ASM 5596643Sobrien# define NO_ASM 5696643Sobrien# endif 5796643Sobrien#endif 5896643Sobrien 5996643Sobrien/* crypto/opensslconf.h.in */ 6096643Sobrien 6196643Sobrien/* Generate 80386 code? */ 6296643Sobrien#undef I386_ONLY 6396643Sobrien 6496643Sobrien#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */ 6596643Sobrien#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR) 66160819Ssimon#define ENGINESDIR "/usr/lib/engines" 6796643Sobrien#define OPENSSLDIR "/etc/ssl" 6896643Sobrien#endif 6996643Sobrien#endif 7096643Sobrien 71160819Ssimon#undef OPENSSL_UNISTD 7296643Sobrien#define OPENSSL_UNISTD <unistd.h> 7396643Sobrien 74160819Ssimon#undef OPENSSL_EXPORT_VAR_AS_FUNCTION 75160819Ssimon 7696643Sobrien#if defined(HEADER_IDEA_H) && !defined(IDEA_INT) 7796643Sobrien#define IDEA_INT unsigned int 7896643Sobrien#endif 7996643Sobrien 8096643Sobrien#if defined(HEADER_MD2_H) && !defined(MD2_INT) 8196643Sobrien#define MD2_INT unsigned int 8296643Sobrien#endif 8396643Sobrien 8496643Sobrien#if defined(HEADER_RC2_H) && !defined(RC2_INT) 8596643Sobrien/* I need to put in a mod for the alpha - eay */ 8696643Sobrien#define RC2_INT unsigned int 8796643Sobrien#endif 8896643Sobrien 8996643Sobrien#if defined(HEADER_RC4_H) 9096643Sobrien#if !defined(RC4_INT) 9196643Sobrien/* using int types make the structure larger but make the code faster 9296643Sobrien * on most boxes I have tested - up to %20 faster. */ 9396643Sobrien/* 9496643Sobrien * I don't know what does "most" mean, but declaring "int" is a must on: 9596643Sobrien * - Intel P6 because partial register stalls are very expensive; 9696643Sobrien * - elder Alpha because it lacks byte load/store instructions; 9796643Sobrien */ 9896643Sobrien#define RC4_INT unsigned int 9996643Sobrien#endif 10096643Sobrien#if !defined(RC4_CHUNK) 10196643Sobrien/* 10296643Sobrien * This enables code handling data aligned at natural CPU word 10396643Sobrien * boundary. See crypto/rc4/rc4_enc.c for further details. 10496643Sobrien */ 10596643Sobrien#undef RC4_CHUNK 10696643Sobrien#endif 10796643Sobrien#endif 10896643Sobrien 109160819Ssimon#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG) 11096643Sobrien/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a 11196643Sobrien * %20 speed up (longs are 8 bytes, int's are 4). */ 11296643Sobrien#ifndef DES_LONG 113211934Snwhitehorn#define DES_LONG unsigned int 11496643Sobrien#endif 11596643Sobrien#endif 11696643Sobrien 11796643Sobrien#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H) 11896643Sobrien#define CONFIG_HEADER_BN_H 119211934Snwhitehorn#ifdef __powerpc64__ 120211934Snwhitehorn#undef BN_LLONG 121211934Snwhitehorn#else 12296643Sobrien#define BN_LLONG 123211934Snwhitehorn#endif 12496643Sobrien 12596643Sobrien/* Should we define BN_DIV2W here? */ 12696643Sobrien 12796643Sobrien/* Only one for the following should be defined */ 12896643Sobrien/* The prime number generation stuff may not work when 12996643Sobrien * EIGHT_BIT but I don't care since I've only used this mode 13096643Sobrien * for debuging the bignum libraries */ 131211934Snwhitehorn#ifdef __powerpc64__ 132211934Snwhitehorn#define SIXTY_FOUR_BIT_LONG 133211934Snwhitehorn#undef THIRTY_TWO_BIT 134211934Snwhitehorn#else 13596643Sobrien#undef SIXTY_FOUR_BIT_LONG 136211934Snwhitehorn#define THIRTY_TWO_BIT 137211934Snwhitehorn#endif 13896643Sobrien#undef SIXTY_FOUR_BIT 13996643Sobrien#undef SIXTEEN_BIT 14096643Sobrien#undef EIGHT_BIT 14196643Sobrien#endif 14296643Sobrien 14396643Sobrien#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H) 14496643Sobrien#define CONFIG_HEADER_RC4_LOCL_H 14596643Sobrien/* if this is defined data[i] is used instead of *data, this is a %20 14696643Sobrien * speedup on x86 */ 14796643Sobrien#define RC4_INDEX 14896643Sobrien#endif 14996643Sobrien 15096643Sobrien#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H) 15196643Sobrien#define CONFIG_HEADER_BF_LOCL_H 15296643Sobrien#undef BF_PTR 15396643Sobrien#endif /* HEADER_BF_LOCL_H */ 15496643Sobrien 15596643Sobrien#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H) 15696643Sobrien#define CONFIG_HEADER_DES_LOCL_H 15796643Sobrien#ifndef DES_DEFAULT_OPTIONS 15896643Sobrien/* the following is tweaked from a config script, that is why it is a 15996643Sobrien * protected undef/define */ 16096643Sobrien#ifndef DES_PTR 16196643Sobrien#define DES_PTR 16296643Sobrien#endif 16396643Sobrien 16496643Sobrien/* This helps C compiler generate the correct code for multiple functional 16596643Sobrien * units. It reduces register dependancies at the expense of 2 more 16696643Sobrien * registers */ 16796643Sobrien#ifndef DES_RISC1 16896643Sobrien#define DES_RISC1 16996643Sobrien#endif 17096643Sobrien 17196643Sobrien#ifndef DES_RISC2 17296643Sobrien#undef DES_RISC2 17396643Sobrien#endif 17496643Sobrien 17596643Sobrien#if defined(DES_RISC1) && defined(DES_RISC2) 17696643SobrienYOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!! 17796643Sobrien#endif 17896643Sobrien 17996643Sobrien/* Unroll the inner loop, this sometimes helps, sometimes hinders. 18096643Sobrien * Very mucy CPU dependant */ 18196643Sobrien#ifndef DES_UNROLL 18296643Sobrien#define DES_UNROLL 18396643Sobrien#endif 18496643Sobrien 18596643Sobrien/* These default values were supplied by 18696643Sobrien * Peter Gutman <pgut001@cs.auckland.ac.nz> 18796643Sobrien * They are only used if nothing else has been defined */ 18896643Sobrien#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL) 18996643Sobrien/* Special defines which change the way the code is built depending on the 19096643Sobrien CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find 19196643Sobrien even newer MIPS CPU's, but at the moment one size fits all for 19296643Sobrien optimization options. Older Sparc's work better with only UNROLL, but 19396643Sobrien there's no way to tell at compile time what it is you're running on */ 19496643Sobrien 19596643Sobrien#if defined( sun ) /* Newer Sparc's */ 19696643Sobrien# define DES_PTR 19796643Sobrien# define DES_RISC1 19896643Sobrien# define DES_UNROLL 19996643Sobrien#elif defined( __ultrix ) /* Older MIPS */ 20096643Sobrien# define DES_PTR 20196643Sobrien# define DES_RISC2 20296643Sobrien# define DES_UNROLL 20396643Sobrien#elif defined( __osf1__ ) /* Alpha */ 20496643Sobrien# define DES_PTR 20596643Sobrien# define DES_RISC2 20696643Sobrien#elif defined ( _AIX ) /* RS6000 */ 20796643Sobrien /* Unknown */ 20896643Sobrien#elif defined( __hpux ) /* HP-PA */ 20996643Sobrien /* Unknown */ 21096643Sobrien#elif defined( __aux ) /* 68K */ 21196643Sobrien /* Unknown */ 21296643Sobrien#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */ 21396643Sobrien# define DES_UNROLL 21496643Sobrien#elif defined( __sgi ) /* Newer MIPS */ 21596643Sobrien# define DES_PTR 21696643Sobrien# define DES_RISC2 21796643Sobrien# define DES_UNROLL 21896643Sobrien#elif defined( i386 ) /* x86 boxes, should be gcc */ 21996643Sobrien# define DES_PTR 22096643Sobrien# define DES_RISC1 22196643Sobrien# define DES_UNROLL 22296643Sobrien#endif /* Systems-specific speed defines */ 22396643Sobrien#endif 22496643Sobrien 22596643Sobrien#endif /* DES_DEFAULT_OPTIONS */ 22696643Sobrien#endif /* HEADER_DES_LOCL_H */ 227