]> git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/OpensslLib/opensslconf.h
CryptoPkg/OpensslLib: Regenerate OpenSSL patch
[mirror_edk2.git] / CryptoPkg / Library / OpensslLib / opensslconf.h
1 /* opensslconf.h */
2 /* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 /* OpenSSL was configured with the following options: */
8 #ifndef OPENSSL_SYSNAME_UEFI
9 # define OPENSSL_SYSNAME_UEFI
10 #endif
11 #ifndef OPENSSL_DOING_MAKEDEPEND
12
13
14 #ifndef OPENSSL_NO_BF
15 # define OPENSSL_NO_BF
16 #endif
17 #ifndef OPENSSL_NO_CAMELLIA
18 # define OPENSSL_NO_CAMELLIA
19 #endif
20 #ifndef OPENSSL_NO_CAPIENG
21 # define OPENSSL_NO_CAPIENG
22 #endif
23 #ifndef OPENSSL_NO_CAST
24 # define OPENSSL_NO_CAST
25 #endif
26 #ifndef OPENSSL_NO_CMS
27 # define OPENSSL_NO_CMS
28 #endif
29 #ifndef OPENSSL_NO_DEPRECATED
30 # define OPENSSL_NO_DEPRECATED
31 #endif
32 #ifndef OPENSSL_NO_DGRAM
33 # define OPENSSL_NO_DGRAM
34 #endif
35 #ifndef OPENSSL_NO_DSA
36 # define OPENSSL_NO_DSA
37 #endif
38 #ifndef OPENSSL_NO_DYNAMIC_ENGINE
39 # define OPENSSL_NO_DYNAMIC_ENGINE
40 #endif
41 #ifndef OPENSSL_NO_EC
42 # define OPENSSL_NO_EC
43 #endif
44 #ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
45 # define OPENSSL_NO_EC_NISTP_64_GCC_128
46 #endif
47 #ifndef OPENSSL_NO_ECDH
48 # define OPENSSL_NO_ECDH
49 #endif
50 #ifndef OPENSSL_NO_ECDSA
51 # define OPENSSL_NO_ECDSA
52 #endif
53 #ifndef OPENSSL_NO_ENGINE
54 # define OPENSSL_NO_ENGINE
55 #endif
56 #ifndef OPENSSL_NO_ENGINES
57 # define OPENSSL_NO_ENGINES
58 #endif
59 #ifndef OPENSSL_NO_FILENAMES
60 # define OPENSSL_NO_FILENAMES
61 #endif
62 #ifndef OPENSSL_NO_FP_API
63 # define OPENSSL_NO_FP_API
64 #endif
65 #ifndef OPENSSL_NO_GMP
66 # define OPENSSL_NO_GMP
67 #endif
68 #ifndef OPENSSL_NO_GOST
69 # define OPENSSL_NO_GOST
70 #endif
71 #ifndef OPENSSL_NO_IDEA
72 # define OPENSSL_NO_IDEA
73 #endif
74 #ifndef OPENSSL_NO_JPAKE
75 # define OPENSSL_NO_JPAKE
76 #endif
77 #ifndef OPENSSL_NO_KRB5
78 # define OPENSSL_NO_KRB5
79 #endif
80 #ifndef OPENSSL_NO_LIBUNBOUND
81 # define OPENSSL_NO_LIBUNBOUND
82 #endif
83 #ifndef OPENSSL_NO_LOCKING
84 # define OPENSSL_NO_LOCKING
85 #endif
86 #ifndef OPENSSL_NO_MD2
87 # define OPENSSL_NO_MD2
88 #endif
89 #ifndef OPENSSL_NO_MDC2
90 # define OPENSSL_NO_MDC2
91 #endif
92 #ifndef OPENSSL_NO_POSIX_IO
93 # define OPENSSL_NO_POSIX_IO
94 #endif
95 #ifndef OPENSSL_NO_RC2
96 # define OPENSSL_NO_RC2
97 #endif
98 #ifndef OPENSSL_NO_RC5
99 # define OPENSSL_NO_RC5
100 #endif
101 #ifndef OPENSSL_NO_RCS
102 # define OPENSSL_NO_RCS
103 #endif
104 #ifndef OPENSSL_NO_RFC3779
105 # define OPENSSL_NO_RFC3779
106 #endif
107 #ifndef OPENSSL_NO_RIPEMD
108 # define OPENSSL_NO_RIPEMD
109 #endif
110 #ifndef OPENSSL_NO_SCRYPT
111 # define OPENSSL_NO_SCRYPT
112 #endif
113 #ifndef OPENSSL_NO_SCT
114 # define OPENSSL_NO_SCT
115 #endif
116 #ifndef OPENSSL_NO_SCTP
117 # define OPENSSL_NO_SCTP
118 #endif
119 #ifndef OPENSSL_NO_SEED
120 # define OPENSSL_NO_SEED
121 #endif
122 #ifndef OPENSSL_NO_SHA0
123 # define OPENSSL_NO_SHA0
124 #endif
125 #ifndef OPENSSL_NO_SOCK
126 # define OPENSSL_NO_SOCK
127 #endif
128 #ifndef OPENSSL_NO_SRP
129 # define OPENSSL_NO_SRP
130 #endif
131 #ifndef OPENSSL_NO_SSL_TRACE
132 # define OPENSSL_NO_SSL_TRACE
133 #endif
134 #ifndef OPENSSL_NO_SSL2
135 # define OPENSSL_NO_SSL2
136 #endif
137 #ifndef OPENSSL_NO_SSL3
138 # define OPENSSL_NO_SSL3
139 #endif
140 #ifndef OPENSSL_NO_STDIO
141 # define OPENSSL_NO_STDIO
142 #endif
143 #ifndef OPENSSL_NO_STORE
144 # define OPENSSL_NO_STORE
145 #endif
146 #ifndef OPENSSL_NO_UI
147 # define OPENSSL_NO_UI
148 #endif
149 #ifndef OPENSSL_NO_UNIT_TEST
150 # define OPENSSL_NO_UNIT_TEST
151 #endif
152 #ifndef OPENSSL_NO_WHIRLPOOL
153 # define OPENSSL_NO_WHIRLPOOL
154 #endif
155
156 #endif /* OPENSSL_DOING_MAKEDEPEND */
157
158 #ifndef OPENSSL_NO_ASM
159 # define OPENSSL_NO_ASM
160 #endif
161 #ifndef OPENSSL_NO_ERR
162 # define OPENSSL_NO_ERR
163 #endif
164 #ifndef OPENSSL_NO_HW
165 # define OPENSSL_NO_HW
166 #endif
167 #ifndef OPENSSL_NO_DYNAMIC_ENGINE
168 # define OPENSSL_NO_DYNAMIC_ENGINE
169 #endif
170
171 /* The OPENSSL_NO_* macros are also defined as NO_* if the application
172 asks for it. This is a transient feature that is provided for those
173 who haven't had the time to do the appropriate changes in their
174 applications. */
175 #ifdef OPENSSL_ALGORITHM_DEFINES
176 # if defined(OPENSSL_NO_BF) && !defined(NO_BF)
177 # define NO_BF
178 # endif
179 # if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
180 # define NO_CAMELLIA
181 # endif
182 # if defined(OPENSSL_NO_CAPIENG) && !defined(NO_CAPIENG)
183 # define NO_CAPIENG
184 # endif
185 # if defined(OPENSSL_NO_CAST) && !defined(NO_CAST)
186 # define NO_CAST
187 # endif
188 # if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
189 # define NO_CMS
190 # endif
191 # if defined(OPENSSL_NO_DEPRECATED) && !defined(NO_DEPRECATED)
192 # define NO_DEPRECATED
193 # endif
194 # if defined(OPENSSL_NO_DGRAM) && !defined(NO_DGRAM)
195 # define NO_DGRAM
196 # endif
197 # if defined(OPENSSL_NO_DSA) && !defined(NO_DSA)
198 # define NO_DSA
199 # endif
200 # if defined(OPENSSL_NO_DYNAMIC_ENGINE) && !defined(NO_DYNAMIC_ENGINE)
201 # define NO_DYNAMIC_ENGINE
202 # endif
203 # if defined(OPENSSL_NO_EC) && !defined(NO_EC)
204 # define NO_EC
205 # endif
206 # if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
207 # define NO_EC_NISTP_64_GCC_128
208 # endif
209 # if defined(OPENSSL_NO_ECDH) && !defined(NO_ECDH)
210 # define NO_ECDH
211 # endif
212 # if defined(OPENSSL_NO_ECDSA) && !defined(NO_ECDSA)
213 # define NO_ECDSA
214 # endif
215 # if defined(OPENSSL_NO_ENGINE) && !defined(NO_ENGINE)
216 # define NO_ENGINE
217 # endif
218 # if defined(OPENSSL_NO_ENGINES) && !defined(NO_ENGINES)
219 # define NO_ENGINES
220 # endif
221 # if defined(OPENSSL_NO_FILENAMES) && !defined(NO_FILENAMES)
222 # define NO_FILENAMES
223 # endif
224 # if defined(OPENSSL_NO_FP_API) && !defined(NO_FP_API)
225 # define NO_FP_API
226 # endif
227 # if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
228 # define NO_GMP
229 # endif
230 # if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
231 # define NO_GOST
232 # endif
233 # if defined(OPENSSL_NO_IDEA) && !defined(NO_IDEA)
234 # define NO_IDEA
235 # endif
236 # if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
237 # define NO_JPAKE
238 # endif
239 # if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
240 # define NO_KRB5
241 # endif
242 # if defined(OPENSSL_NO_LIBUNBOUND) && !defined(NO_LIBUNBOUND)
243 # define NO_LIBUNBOUND
244 # endif
245 # if defined(OPENSSL_NO_LOCKING) && !defined(NO_LOCKING)
246 # define NO_LOCKING
247 # endif
248 # if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
249 # define NO_MD2
250 # endif
251 # if defined(OPENSSL_NO_MDC2) && !defined(NO_MDC2)
252 # define NO_MDC2
253 # endif
254 # if defined(OPENSSL_NO_POSIX_IO) && !defined(NO_POSIX_IO)
255 # define NO_POSIX_IO
256 # endif
257 # if defined(OPENSSL_NO_RC2) && !defined(NO_RC2)
258 # define NO_RC2
259 # endif
260 # if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
261 # define NO_RC5
262 # endif
263 # if defined(OPENSSL_NO_RCS) && !defined(NO_RCS)
264 # define NO_RCS
265 # endif
266 # if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
267 # define NO_RFC3779
268 # endif
269 # if defined(OPENSSL_NO_RIPEMD) && !defined(NO_RIPEMD)
270 # define NO_RIPEMD
271 # endif
272 # if defined(OPENSSL_NO_SCRYPT) && !defined(NO_SCRYPT)
273 # define NO_SCRYPT
274 # endif
275 # if defined(OPENSSL_NO_SCT) && !defined(NO_SCT)
276 # define NO_SCT
277 # endif
278 # if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
279 # define NO_SCTP
280 # endif
281 # if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
282 # define NO_SEED
283 # endif
284 # if defined(OPENSSL_NO_SHA0) && !defined(NO_SHA0)
285 # define NO_SHA0
286 # endif
287 # if defined(OPENSSL_NO_SOCK) && !defined(NO_SOCK)
288 # define NO_SOCK
289 # endif
290 # if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
291 # define NO_SRP
292 # endif
293 # if defined(OPENSSL_NO_SSL_TRACE) && !defined(NO_SSL_TRACE)
294 # define NO_SSL_TRACE
295 # endif
296 # if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
297 # define NO_SSL2
298 # endif
299 # if defined(OPENSSL_NO_SSL3) && !defined(NO_SSL3)
300 # define NO_SSL3
301 # endif
302 # if defined(OPENSSL_NO_STDIO) && !defined(NO_STDIO)
303 # define NO_STDIO
304 # endif
305 # if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
306 # define NO_STORE
307 # endif
308 # if defined(OPENSSL_NO_UI) && !defined(NO_UI)
309 # define NO_UI
310 # endif
311 # if defined(OPENSSL_NO_UNIT_TEST) && !defined(NO_UNIT_TEST)
312 # define NO_UNIT_TEST
313 # endif
314 # if defined(OPENSSL_NO_WHIRLPOOL) && !defined(NO_WHIRLPOOL)
315 # define NO_WHIRLPOOL
316 # endif
317 #endif
318
319 /* crypto/opensslconf.h.in */
320
321 /* Generate 80386 code? */
322 #undef I386_ONLY
323
324 #if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
325 #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
326 #define ENGINESDIR "/usr/local/ssl/lib/engines"
327 #define OPENSSLDIR "/usr/local/ssl"
328 #endif
329 #endif
330
331 #undef OPENSSL_UNISTD
332 #define OPENSSL_UNISTD <unistd.h>
333
334 #undef OPENSSL_EXPORT_VAR_AS_FUNCTION
335
336 #if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
337 #define IDEA_INT unsigned int
338 #endif
339
340 #if defined(HEADER_MD2_H) && !defined(MD2_INT)
341 #define MD2_INT unsigned int
342 #endif
343
344 #if defined(HEADER_RC2_H) && !defined(RC2_INT)
345 /* I need to put in a mod for the alpha - eay */
346 #define RC2_INT unsigned int
347 #endif
348
349 #if defined(HEADER_RC4_H)
350 #if !defined(RC4_INT)
351 /* using int types make the structure larger but make the code faster
352 * on most boxes I have tested - up to %20 faster. */
353 /*
354 * I don't know what does "most" mean, but declaring "int" is a must on:
355 * - Intel P6 because partial register stalls are very expensive;
356 * - elder Alpha because it lacks byte load/store instructions;
357 */
358 #define RC4_INT unsigned int
359 #endif
360 #if !defined(RC4_CHUNK)
361 /*
362 * This enables code handling data aligned at natural CPU word
363 * boundary. See crypto/rc4/rc4_enc.c for further details.
364 */
365 #undef RC4_CHUNK
366 #endif
367 #endif
368
369 #if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
370 /* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
371 * %20 speed up (longs are 8 bytes, int's are 4). */
372 #ifndef DES_LONG
373 #define DES_LONG unsigned long
374 #endif
375 #endif
376
377 #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H) && !defined(OPENSSL_SYSNAME_UEFI)
378 #define CONFIG_HEADER_BN_H
379 #undef BN_LLONG
380
381 /* Should we define BN_DIV2W here? */
382
383 /* Only one for the following should be defined */
384 #undef SIXTY_FOUR_BIT_LONG
385 #undef SIXTY_FOUR_BIT
386 #define THIRTY_TWO_BIT
387 #endif
388
389 #if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
390 #define CONFIG_HEADER_RC4_LOCL_H
391 /* if this is defined data[i] is used instead of *data, this is a %20
392 * speedup on x86 */
393 #undef RC4_INDEX
394 #endif
395
396 #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
397 #define CONFIG_HEADER_BF_LOCL_H
398 #undef BF_PTR
399 #endif /* HEADER_BF_LOCL_H */
400
401 #if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
402 #define CONFIG_HEADER_DES_LOCL_H
403 #ifndef DES_DEFAULT_OPTIONS
404 /* the following is tweaked from a config script, that is why it is a
405 * protected undef/define */
406 #ifndef DES_PTR
407 #undef DES_PTR
408 #endif
409
410 /* This helps C compiler generate the correct code for multiple functional
411 * units. It reduces register dependancies at the expense of 2 more
412 * registers */
413 #ifndef DES_RISC1
414 #undef DES_RISC1
415 #endif
416
417 #ifndef DES_RISC2
418 #undef DES_RISC2
419 #endif
420
421 #if defined(DES_RISC1) && defined(DES_RISC2)
422 #error YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
423 #endif
424
425 /* Unroll the inner loop, this sometimes helps, sometimes hinders.
426 * Very mucy CPU dependant */
427 #ifndef DES_UNROLL
428 #undef DES_UNROLL
429 #endif
430
431 /* These default values were supplied by
432 * Peter Gutman <pgut001@cs.auckland.ac.nz>
433 * They are only used if nothing else has been defined */
434 #if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
435 /* Special defines which change the way the code is built depending on the
436 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
437 even newer MIPS CPU's, but at the moment one size fits all for
438 optimization options. Older Sparc's work better with only UNROLL, but
439 there's no way to tell at compile time what it is you're running on */
440
441 #if defined( __sun ) || defined ( sun ) /* Newer Sparc's */
442 # define DES_PTR
443 # define DES_RISC1
444 # define DES_UNROLL
445 #elif defined( __ultrix ) /* Older MIPS */
446 # define DES_PTR
447 # define DES_RISC2
448 # define DES_UNROLL
449 #elif defined( __osf1__ ) /* Alpha */
450 # define DES_PTR
451 # define DES_RISC2
452 #elif defined ( _AIX ) /* RS6000 */
453 /* Unknown */
454 #elif defined( __hpux ) /* HP-PA */
455 /* Unknown */
456 #elif defined( __aux ) /* 68K */
457 /* Unknown */
458 #elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
459 # define DES_UNROLL
460 #elif defined( __sgi ) /* Newer MIPS */
461 # define DES_PTR
462 # define DES_RISC2
463 # define DES_UNROLL
464 #elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
465 # define DES_PTR
466 # define DES_RISC1
467 # define DES_UNROLL
468 #endif /* Systems-specific speed defines */
469 #endif
470
471 #endif /* DES_DEFAULT_OPTIONS */
472 #endif /* HEADER_DES_LOCL_H */
473 #ifdef __cplusplus
474 }
475 #endif