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