]> git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/OpensslLib/opensslconf.h
CryptoPkg/OpensslLib: Switch to upstream fix for OpenSSL RT#3951
[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 #ifndef OPENSSL_FILE
322 #ifdef OPENSSL_NO_FILENAMES
323 #define OPENSSL_FILE ""
324 #define OPENSSL_LINE 0
325 #else
326 #define OPENSSL_FILE __FILE__
327 #define OPENSSL_LINE __LINE__
328 #endif
329 #endif
330
331 /* Generate 80386 code? */
332 #undef I386_ONLY
333
334 #if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
335 #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
336 #define ENGINESDIR "/usr/local/ssl/lib/engines"
337 #define OPENSSLDIR "/usr/local/ssl"
338 #endif
339 #endif
340
341 #undef OPENSSL_UNISTD
342 #define OPENSSL_UNISTD <unistd.h>
343
344 #undef OPENSSL_EXPORT_VAR_AS_FUNCTION
345
346 #if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
347 #define IDEA_INT unsigned int
348 #endif
349
350 #if defined(HEADER_MD2_H) && !defined(MD2_INT)
351 #define MD2_INT unsigned int
352 #endif
353
354 #if defined(HEADER_RC2_H) && !defined(RC2_INT)
355 /* I need to put in a mod for the alpha - eay */
356 #define RC2_INT unsigned int
357 #endif
358
359 #if defined(HEADER_RC4_H)
360 #if !defined(RC4_INT)
361 /* using int types make the structure larger but make the code faster
362 * on most boxes I have tested - up to %20 faster. */
363 /*
364 * I don't know what does "most" mean, but declaring "int" is a must on:
365 * - Intel P6 because partial register stalls are very expensive;
366 * - elder Alpha because it lacks byte load/store instructions;
367 */
368 #define RC4_INT unsigned int
369 #endif
370 #if !defined(RC4_CHUNK)
371 /*
372 * This enables code handling data aligned at natural CPU word
373 * boundary. See crypto/rc4/rc4_enc.c for further details.
374 */
375 #undef RC4_CHUNK
376 #endif
377 #endif
378
379 #if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
380 /* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
381 * %20 speed up (longs are 8 bytes, int's are 4). */
382 #ifndef DES_LONG
383 #define DES_LONG unsigned long
384 #endif
385 #endif
386
387 #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H) && !defined(OPENSSL_SYSNAME_UEFI)
388 #define CONFIG_HEADER_BN_H
389 #undef BN_LLONG
390
391 /* Should we define BN_DIV2W here? */
392
393 /* Only one for the following should be defined */
394 #undef SIXTY_FOUR_BIT_LONG
395 #undef SIXTY_FOUR_BIT
396 #define THIRTY_TWO_BIT
397 #endif
398
399 #if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
400 #define CONFIG_HEADER_RC4_LOCL_H
401 /* if this is defined data[i] is used instead of *data, this is a %20
402 * speedup on x86 */
403 #undef RC4_INDEX
404 #endif
405
406 #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
407 #define CONFIG_HEADER_BF_LOCL_H
408 #undef BF_PTR
409 #endif /* HEADER_BF_LOCL_H */
410
411 #if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
412 #define CONFIG_HEADER_DES_LOCL_H
413 #ifndef DES_DEFAULT_OPTIONS
414 /* the following is tweaked from a config script, that is why it is a
415 * protected undef/define */
416 #ifndef DES_PTR
417 #undef DES_PTR
418 #endif
419
420 /* This helps C compiler generate the correct code for multiple functional
421 * units. It reduces register dependancies at the expense of 2 more
422 * registers */
423 #ifndef DES_RISC1
424 #undef DES_RISC1
425 #endif
426
427 #ifndef DES_RISC2
428 #undef DES_RISC2
429 #endif
430
431 #if defined(DES_RISC1) && defined(DES_RISC2)
432 #error YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
433 #endif
434
435 /* Unroll the inner loop, this sometimes helps, sometimes hinders.
436 * Very mucy CPU dependant */
437 #ifndef DES_UNROLL
438 #undef DES_UNROLL
439 #endif
440
441 /* These default values were supplied by
442 * Peter Gutman <pgut001@cs.auckland.ac.nz>
443 * They are only used if nothing else has been defined */
444 #if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
445 /* Special defines which change the way the code is built depending on the
446 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
447 even newer MIPS CPU's, but at the moment one size fits all for
448 optimization options. Older Sparc's work better with only UNROLL, but
449 there's no way to tell at compile time what it is you're running on */
450
451 #if defined( __sun ) || defined ( sun ) /* Newer Sparc's */
452 # define DES_PTR
453 # define DES_RISC1
454 # define DES_UNROLL
455 #elif defined( __ultrix ) /* Older MIPS */
456 # define DES_PTR
457 # define DES_RISC2
458 # define DES_UNROLL
459 #elif defined( __osf1__ ) /* Alpha */
460 # define DES_PTR
461 # define DES_RISC2
462 #elif defined ( _AIX ) /* RS6000 */
463 /* Unknown */
464 #elif defined( __hpux ) /* HP-PA */
465 /* Unknown */
466 #elif defined( __aux ) /* 68K */
467 /* Unknown */
468 #elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
469 # define DES_UNROLL
470 #elif defined( __sgi ) /* Newer MIPS */
471 # define DES_PTR
472 # define DES_RISC2
473 # define DES_UNROLL
474 #elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
475 # define DES_PTR
476 # define DES_RISC1
477 # define DES_UNROLL
478 #endif /* Systems-specific speed defines */
479 #endif
480
481 #endif /* DES_DEFAULT_OPTIONS */
482 #endif /* HEADER_DES_LOCL_H */
483 #ifdef __cplusplus
484 }
485 #endif