1180767Simp/* $FreeBSD$ */
2180767Simp/* opensslconf.h */
3180767Simp/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
4180767Simp
5180767Simp/* OpenSSL was configured with the following options: */
6180767Simp#ifndef OPENSSL_DOING_MAKEDEPEND
7180767Simp
8180767Simp/* Disabled by default in OpenSSL 0.9.8. */
9180767Simp#ifndef OPENSSL_NO_CAMELLIA
10180767Simp# define OPENSSL_NO_CAMELLIA
11180767Simp#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
24180767Simp/* libgmp is not in the FreeBSD base system. */
25180767Simp#ifndef OPENSSL_NO_GMP
26180767Simp# define OPENSSL_NO_GMP
27180767Simp#endif
28180767Simp/* The Kerberos 5 support is MIT-specific. */
29180767Simp#ifndef OPENSSL_NO_KRB5
30180767Simp# define OPENSSL_NO_KRB5
31180767Simp#endif
32180767Simp
33180767Simp#endif /* OPENSSL_DOING_MAKEDEPEND */
34180767Simp#ifndef OPENSSL_THREADS
35180767Simp# define OPENSSL_THREADS
36180767Simp#endif
37180767Simp#ifndef OPENSSL_NO_STATIC_ENGINE
38180767Simp# define OPENSSL_NO_STATIC_ENGINE
39180767Simp#endif
40180767Simp
41180767Simp/* The OPENSSL_NO_* macros are also defined as NO_* if the application
42180767Simp   asks for it.  This is a transient feature that is provided for those
43180767Simp   who haven't had the time to do the appropriate changes in their
44180767Simp   applications.  */
45180767Simp#ifdef OPENSSL_ALGORITHM_DEFINES
46180767Simp# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
47180767Simp#  define NO_GMP
48180767Simp# endif
49180767Simp# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
50180767Simp#  define NO_KRB5
51180767Simp# endif
52180767Simp# endif
53180767Simp#ifdef OPENSSL_OTHER_DEFINES
54180767Simp# ifndef NO_ASM
55180767Simp#  define NO_ASM
56180767Simp# endif
57180767Simp#endif
58180767Simp
59180767Simp/* crypto/opensslconf.h.in */
60180767Simp
61180767Simp/* Generate 80386 code? */
62180767Simp#undef I386_ONLY
63180767Simp
64180767Simp#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
65180767Simp#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
66180767Simp#define ENGINESDIR "/usr/lib/engines"
67180767Simp#define OPENSSLDIR "/etc/ssl"
68180767Simp#endif
69180767Simp#endif
70180767Simp
71180767Simp#undef OPENSSL_UNISTD
72180767Simp#define OPENSSL_UNISTD <unistd.h>
73180767Simp
74180767Simp#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
75180767Simp
76180767Simp#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
77180767Simp#define IDEA_INT unsigned int
78180767Simp#endif
79180767Simp
80180767Simp#if defined(HEADER_MD2_H) && !defined(MD2_INT)
81180767Simp#define MD2_INT unsigned int
82180767Simp#endif
83180767Simp
84180767Simp#if defined(HEADER_RC2_H) && !defined(RC2_INT)
85180767Simp/* I need to put in a mod for the alpha - eay */
86180767Simp#define RC2_INT unsigned int
87180767Simp#endif
88180767Simp
89180767Simp#if defined(HEADER_RC4_H)
90180767Simp#if !defined(RC4_INT)
91180767Simp/* using int types make the structure larger but make the code faster
92180767Simp * on most boxes I have tested - up to %20 faster. */
93180767Simp/*
94180767Simp * I don't know what does "most" mean, but declaring "int" is a must on:
95180767Simp * - Intel P6 because partial register stalls are very expensive;
96180767Simp * - elder Alpha because it lacks byte load/store instructions;
97180767Simp */
98180767Simp#define RC4_INT unsigned int
99180767Simp#endif
100180767Simp#if !defined(RC4_CHUNK)
101180767Simp/*
102180767Simp * This enables code handling data aligned at natural CPU word
103180767Simp * boundary. See crypto/rc4/rc4_enc.c for further details.
104180767Simp */
105180767Simp#undef RC4_CHUNK
106180767Simp#endif
107180767Simp#endif
108180767Simp
109180767Simp#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
110180767Simp/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
111180767Simp * %20 speed up (longs are 8 bytes, int's are 4). */
112180767Simp#ifndef DES_LONG
113210842Sjchandra#ifdef __mips_n64
114210842Sjchandra#define DES_LONG unsigned int
115210842Sjchandra#else
116180767Simp#define DES_LONG unsigned long
117180767Simp#endif
118180767Simp#endif
119210842Sjchandra#endif
120180767Simp
121180767Simp#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
122180767Simp#define CONFIG_HEADER_BN_H
123210842Sjchandra#ifdef __mips_n64
124210842Sjchandra#undef BN_LLONG
125210842Sjchandra#else
126180767Simp#define BN_LLONG
127210843Sjchandra#endif
128180767Simp
129180767Simp/* Should we define BN_DIV2W here? */
130180767Simp
131180767Simp/* Only one for the following should be defined */
132180767Simp/* The prime number generation stuff may not work when
133180767Simp * EIGHT_BIT but I don't care since I've only used this mode
134180767Simp * for debuging the bignum libraries */
135210842Sjchandra#ifdef __mips_n64
136210842Sjchandra#define SIXTY_FOUR_BIT_LONG
137210842Sjchandra#undef SIXTY_FOUR_BIT
138210842Sjchandra#undef THIRTY_TWO_BIT
139210842Sjchandra#else
140180767Simp#undef SIXTY_FOUR_BIT_LONG
141180767Simp#undef SIXTY_FOUR_BIT
142180767Simp#define THIRTY_TWO_BIT
143210842Sjchandra#endif
144180767Simp#undef SIXTEEN_BIT
145180767Simp#undef EIGHT_BIT
146180767Simp#endif
147180767Simp
148180767Simp#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
149180767Simp#define CONFIG_HEADER_RC4_LOCL_H
150180767Simp/* if this is defined data[i] is used instead of *data, this is a %20
151180767Simp * speedup on x86 */
152180767Simp#define RC4_INDEX
153180767Simp#endif
154180767Simp
155180767Simp#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
156180767Simp#define CONFIG_HEADER_BF_LOCL_H
157180767Simp#undef BF_PTR
158180767Simp#endif /* HEADER_BF_LOCL_H */
159180767Simp
160180767Simp#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
161180767Simp#define CONFIG_HEADER_DES_LOCL_H
162180767Simp#ifndef DES_DEFAULT_OPTIONS
163180767Simp/* the following is tweaked from a config script, that is why it is a
164180767Simp * protected undef/define */
165180767Simp#ifndef DES_PTR
166180767Simp#define DES_PTR
167180767Simp#endif
168180767Simp
169180767Simp/* This helps C compiler generate the correct code for multiple functional
170180767Simp * units.  It reduces register dependancies at the expense of 2 more
171180767Simp * registers */
172180767Simp#ifndef DES_RISC1
173180767Simp#define DES_RISC1
174180767Simp#endif
175180767Simp
176180767Simp#ifndef DES_RISC2
177180767Simp#undef DES_RISC2
178180767Simp#endif
179180767Simp
180180767Simp#if defined(DES_RISC1) && defined(DES_RISC2)
181180767SimpYOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
182180767Simp#endif
183180767Simp
184180767Simp/* Unroll the inner loop, this sometimes helps, sometimes hinders.
185180767Simp * Very mucy CPU dependant */
186180767Simp#ifndef DES_UNROLL
187180767Simp#define DES_UNROLL
188180767Simp#endif
189180767Simp
190180767Simp/* These default values were supplied by
191180767Simp * Peter Gutman <pgut001@cs.auckland.ac.nz>
192180767Simp * They are only used if nothing else has been defined */
193180767Simp#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
194180767Simp/* Special defines which change the way the code is built depending on the
195180767Simp   CPU and OS.  For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
196180767Simp   even newer MIPS CPU's, but at the moment one size fits all for
197180767Simp   optimization options.  Older Sparc's work better with only UNROLL, but
198180767Simp   there's no way to tell at compile time what it is you're running on */
199180767Simp
200180767Simp#if defined( sun )		/* Newer Sparc's */
201180767Simp#  define DES_PTR
202180767Simp#  define DES_RISC1
203180767Simp#  define DES_UNROLL
204180767Simp#elif defined( __ultrix )	/* Older MIPS */
205180767Simp#  define DES_PTR
206180767Simp#  define DES_RISC2
207180767Simp#  define DES_UNROLL
208180767Simp#elif defined( __osf1__ )	/* Alpha */
209180767Simp#  define DES_PTR
210180767Simp#  define DES_RISC2
211180767Simp#elif defined ( _AIX )		/* RS6000 */
212180767Simp  /* Unknown */
213180767Simp#elif defined( __hpux )		/* HP-PA */
214180767Simp  /* Unknown */
215180767Simp#elif defined( __aux )		/* 68K */
216180767Simp  /* Unknown */
217180767Simp#elif defined( __dgux )		/* 88K (but P6 in latest boxes) */
218180767Simp#  define DES_UNROLL
219180767Simp#elif defined( __sgi )		/* Newer MIPS */
220180767Simp#  define DES_PTR
221180767Simp#  define DES_RISC2
222180767Simp#  define DES_UNROLL
223180767Simp#elif defined( i386 )		/* x86 boxes, should be gcc */
224180767Simp#  define DES_PTR
225180767Simp#  define DES_RISC1
226180767Simp#  define DES_UNROLL
227180767Simp#endif /* Systems-specific speed defines */
228180767Simp#endif
229180767Simp
230180767Simp#endif /* DES_DEFAULT_OPTIONS */
231180767Simp#endif /* HEADER_DES_LOCL_H */
232