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