K2.6 patches and update.
[tomato.git] / release / src / router / openssl / crypto / opensslconf.h
blob3dfefda305789cd4d9ecf51afbffeea927c3cb93
1 /* opensslconf.h */
2 /* WARNING: Generated automatically from opensslconf.h.in by Configure. */
4 /* OpenSSL was configured with the following options: */
5 #ifndef OPENSSL_DOING_MAKEDEPEND
8 #ifndef OPENSSL_NO_CAMELLIA
9 # define OPENSSL_NO_CAMELLIA
10 #endif
11 #ifndef OPENSSL_NO_CAPIENG
12 # define OPENSSL_NO_CAPIENG
13 #endif
14 #ifndef OPENSSL_NO_CMS
15 # define OPENSSL_NO_CMS
16 #endif
17 #ifndef OPENSSL_NO_DTLS1
18 # define OPENSSL_NO_DTLS1
19 #endif
20 #ifndef OPENSSL_NO_EC
21 # define OPENSSL_NO_EC
22 #endif
23 #ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
24 # define OPENSSL_NO_EC_NISTP_64_GCC_128
25 #endif
26 #ifndef OPENSSL_NO_ECDH
27 # define OPENSSL_NO_ECDH
28 #endif
29 #ifndef OPENSSL_NO_ECDSA
30 # define OPENSSL_NO_ECDSA
31 #endif
32 #ifndef OPENSSL_NO_ENGINES
33 # define OPENSSL_NO_ENGINES
34 #endif
35 #ifndef OPENSSL_NO_GMP
36 # define OPENSSL_NO_GMP
37 #endif
38 #ifndef OPENSSL_NO_GMS
39 # define OPENSSL_NO_GMS
40 #endif
41 #ifndef OPENSSL_NO_GOST
42 # define OPENSSL_NO_GOST
43 #endif
44 #ifndef OPENSSL_NO_JPAKE
45 # define OPENSSL_NO_JPAKE
46 #endif
47 #ifndef OPENSSL_NO_KRB5
48 # define OPENSSL_NO_KRB5
49 #endif
50 #ifndef OPENSSL_NO_MD2
51 # define OPENSSL_NO_MD2
52 #endif
53 #ifndef OPENSSL_NO_MDC2
54 # define OPENSSL_NO_MDC2
55 #endif
56 #ifndef OPENSSL_NO_PSK
57 # define OPENSSL_NO_PSK
58 #endif
59 #ifndef OPENSSL_NO_RFC3779
60 # define OPENSSL_NO_RFC3779
61 #endif
62 #ifndef OPENSSL_NO_RIPEMD
63 # define OPENSSL_NO_RIPEMD
64 #endif
65 #ifndef OPENSSL_NO_RMD160
66 # define OPENSSL_NO_RMD160
67 #endif
68 #ifndef OPENSSL_NO_SCTP
69 # define OPENSSL_NO_SCTP
70 #endif
71 #ifndef OPENSSL_NO_SEED
72 # define OPENSSL_NO_SEED
73 #endif
74 #ifndef OPENSSL_NO_SHA0
75 # define OPENSSL_NO_SHA0
76 #endif
77 #ifndef OPENSSL_NO_SMIME
78 # define OPENSSL_NO_SMIME
79 #endif
80 #ifndef OPENSSL_NO_STORE
81 # define OPENSSL_NO_STORE
82 #endif
83 #ifndef OPENSSL_NO_TS
84 # define OPENSSL_NO_TS
85 #endif
87 #endif /* OPENSSL_DOING_MAKEDEPEND */
89 #ifndef OPENSSL_NO_ERR
90 # define OPENSSL_NO_ERR
91 #endif
92 #ifndef OPENSSL_NO_HW
93 # define OPENSSL_NO_HW
94 #endif
95 #ifndef OPENSSL_NO_STATIC_ENGINE
96 # define OPENSSL_NO_STATIC_ENGINE
97 #endif
99 /* The OPENSSL_NO_* macros are also defined as NO_* if the application
100 asks for it. This is a transient feature that is provided for those
101 who haven't had the time to do the appropriate changes in their
102 applications. */
103 #ifdef OPENSSL_ALGORITHM_DEFINES
104 # if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
105 # define NO_CAMELLIA
106 # endif
107 # if defined(OPENSSL_NO_CAPIENG) && !defined(NO_CAPIENG)
108 # define NO_CAPIENG
109 # endif
110 # if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
111 # define NO_CMS
112 # endif
113 # if defined(OPENSSL_NO_DTLS1) && !defined(NO_DTLS1)
114 # define NO_DTLS1
115 # endif
116 # if defined(OPENSSL_NO_EC) && !defined(NO_EC)
117 # define NO_EC
118 # endif
119 # if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
120 # define NO_EC_NISTP_64_GCC_128
121 # endif
122 # if defined(OPENSSL_NO_ECDH) && !defined(NO_ECDH)
123 # define NO_ECDH
124 # endif
125 # if defined(OPENSSL_NO_ECDSA) && !defined(NO_ECDSA)
126 # define NO_ECDSA
127 # endif
128 # if defined(OPENSSL_NO_ENGINES) && !defined(NO_ENGINES)
129 # define NO_ENGINES
130 # endif
131 # if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
132 # define NO_GMP
133 # endif
134 # if defined(OPENSSL_NO_GMS) && !defined(NO_GMS)
135 # define NO_GMS
136 # endif
137 # if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
138 # define NO_GOST
139 # endif
140 # if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
141 # define NO_JPAKE
142 # endif
143 # if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
144 # define NO_KRB5
145 # endif
146 # if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
147 # define NO_MD2
148 # endif
149 # if defined(OPENSSL_NO_MDC2) && !defined(NO_MDC2)
150 # define NO_MDC2
151 # endif
152 # if defined(OPENSSL_NO_PSK) && !defined(NO_PSK)
153 # define NO_PSK
154 # endif
155 # if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
156 # define NO_RFC3779
157 # endif
158 # if defined(OPENSSL_NO_RIPEMD) && !defined(NO_RIPEMD)
159 # define NO_RIPEMD
160 # endif
161 # if defined(OPENSSL_NO_RMD160) && !defined(NO_RMD160)
162 # define NO_RMD160
163 # endif
164 # if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
165 # define NO_SCTP
166 # endif
167 # if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
168 # define NO_SEED
169 # endif
170 # if defined(OPENSSL_NO_SHA0) && !defined(NO_SHA0)
171 # define NO_SHA0
172 # endif
173 # if defined(OPENSSL_NO_SMIME) && !defined(NO_SMIME)
174 # define NO_SMIME
175 # endif
176 # if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
177 # define NO_STORE
178 # endif
179 # if defined(OPENSSL_NO_TS) && !defined(NO_TS)
180 # define NO_TS
181 # endif
182 #endif
184 /* crypto/opensslconf.h.in */
186 /* Generate 80386 code? */
187 #undef I386_ONLY
189 #if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
190 #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
191 #define ENGINESDIR "/etc/lib/engines"
192 #define OPENSSLDIR "/etc"
193 #endif
194 #endif
196 #undef OPENSSL_UNISTD
197 #define OPENSSL_UNISTD <unistd.h>
199 #undef OPENSSL_EXPORT_VAR_AS_FUNCTION
201 #if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
202 #define IDEA_INT unsigned int
203 #endif
205 #if defined(HEADER_MD2_H) && !defined(MD2_INT)
206 #define MD2_INT unsigned int
207 #endif
209 #if defined(HEADER_RC2_H) && !defined(RC2_INT)
210 /* I need to put in a mod for the alpha - eay */
211 #define RC2_INT unsigned int
212 #endif
214 #if defined(HEADER_RC4_H)
215 #if !defined(RC4_INT)
216 /* using int types make the structure larger but make the code faster
217 * on most boxes I have tested - up to %20 faster. */
219 * I don't know what does "most" mean, but declaring "int" is a must on:
220 * - Intel P6 because partial register stalls are very expensive;
221 * - elder Alpha because it lacks byte load/store instructions;
223 #define RC4_INT unsigned char
224 #endif
225 #if !defined(RC4_CHUNK)
227 * This enables code handling data aligned at natural CPU word
228 * boundary. See crypto/rc4/rc4_enc.c for further details.
230 #define RC4_CHUNK unsigned long
231 #endif
232 #endif
234 #if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
235 /* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
236 * %20 speed up (longs are 8 bytes, int's are 4). */
237 #ifndef DES_LONG
238 #define DES_LONG unsigned int
239 #endif
240 #endif
242 #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
243 #define CONFIG_HEADER_BN_H
244 #define BN_LLONG
246 /* Should we define BN_DIV2W here? */
248 /* Only one for the following should be defined */
249 #undef SIXTY_FOUR_BIT_LONG
250 #undef SIXTY_FOUR_BIT
251 #define THIRTY_TWO_BIT
252 #endif
254 #if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
255 #define CONFIG_HEADER_RC4_LOCL_H
256 /* if this is defined data[i] is used instead of *data, this is a %20
257 * speedup on x86 */
258 #undef RC4_INDEX
259 #endif
261 #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
262 #define CONFIG_HEADER_BF_LOCL_H
263 #define BF_PTR
264 #endif /* HEADER_BF_LOCL_H */
266 #if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
267 #define CONFIG_HEADER_DES_LOCL_H
268 #ifndef DES_DEFAULT_OPTIONS
269 /* the following is tweaked from a config script, that is why it is a
270 * protected undef/define */
271 #ifndef DES_PTR
272 #undef DES_PTR
273 #endif
275 /* This helps C compiler generate the correct code for multiple functional
276 * units. It reduces register dependancies at the expense of 2 more
277 * registers */
278 #ifndef DES_RISC1
279 #undef DES_RISC1
280 #endif
282 #ifndef DES_RISC2
283 #undef DES_RISC2
284 #endif
286 #if defined(DES_RISC1) && defined(DES_RISC2)
287 YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
288 #endif
290 /* Unroll the inner loop, this sometimes helps, sometimes hinders.
291 * Very mucy CPU dependant */
292 #ifndef DES_UNROLL
293 #define DES_UNROLL
294 #endif
296 /* These default values were supplied by
297 * Peter Gutman <pgut001@cs.auckland.ac.nz>
298 * They are only used if nothing else has been defined */
299 #if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
300 /* Special defines which change the way the code is built depending on the
301 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
302 even newer MIPS CPU's, but at the moment one size fits all for
303 optimization options. Older Sparc's work better with only UNROLL, but
304 there's no way to tell at compile time what it is you're running on */
306 #if defined( sun ) /* Newer Sparc's */
307 # define DES_PTR
308 # define DES_RISC1
309 # define DES_UNROLL
310 #elif defined( __ultrix ) /* Older MIPS */
311 # define DES_PTR
312 # define DES_RISC2
313 # define DES_UNROLL
314 #elif defined( __osf1__ ) /* Alpha */
315 # define DES_PTR
316 # define DES_RISC2
317 #elif defined ( _AIX ) /* RS6000 */
318 /* Unknown */
319 #elif defined( __hpux ) /* HP-PA */
320 /* Unknown */
321 #elif defined( __aux ) /* 68K */
322 /* Unknown */
323 #elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
324 # define DES_UNROLL
325 #elif defined( __sgi ) /* Newer MIPS */
326 # define DES_PTR
327 # define DES_RISC2
328 # define DES_UNROLL
329 #elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
330 # define DES_PTR
331 # define DES_RISC1
332 # define DES_UNROLL
333 #endif /* Systems-specific speed defines */
334 #endif
336 #endif /* DES_DEFAULT_OPTIONS */
337 #endif /* HEADER_DES_LOCL_H */