]>
git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/OpensslLib/opensslconf.h
2 /* WARNING: Generated automatically from opensslconf.h.in by Configure. */
7 /* OpenSSL was configured with the following options: */
8 #ifndef OPENSSL_SYSNAME_UEFI
9 # define OPENSSL_SYSNAME_UEFI
11 #ifndef OPENSSL_DOING_MAKEDEPEND
15 # define OPENSSL_NO_BF
17 #ifndef OPENSSL_NO_CAMELLIA
18 # define OPENSSL_NO_CAMELLIA
20 #ifndef OPENSSL_NO_CAPIENG
21 # define OPENSSL_NO_CAPIENG
23 #ifndef OPENSSL_NO_CAST
24 # define OPENSSL_NO_CAST
26 #ifndef OPENSSL_NO_CMS
27 # define OPENSSL_NO_CMS
29 #ifndef OPENSSL_NO_DEPRECATED
30 # define OPENSSL_NO_DEPRECATED
32 #ifndef OPENSSL_NO_DGRAM
33 # define OPENSSL_NO_DGRAM
35 #ifndef OPENSSL_NO_DSA
36 # define OPENSSL_NO_DSA
38 #ifndef OPENSSL_NO_DYNAMIC_ENGINE
39 # define OPENSSL_NO_DYNAMIC_ENGINE
42 # define OPENSSL_NO_EC
44 #ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
45 # define OPENSSL_NO_EC_NISTP_64_GCC_128
47 #ifndef OPENSSL_NO_ECDH
48 # define OPENSSL_NO_ECDH
50 #ifndef OPENSSL_NO_ECDSA
51 # define OPENSSL_NO_ECDSA
53 #ifndef OPENSSL_NO_ENGINE
54 # define OPENSSL_NO_ENGINE
56 #ifndef OPENSSL_NO_ENGINES
57 # define OPENSSL_NO_ENGINES
59 #ifndef OPENSSL_NO_FILENAMES
60 # define OPENSSL_NO_FILENAMES
62 #ifndef OPENSSL_NO_FP_API
63 # define OPENSSL_NO_FP_API
65 #ifndef OPENSSL_NO_GMP
66 # define OPENSSL_NO_GMP
68 #ifndef OPENSSL_NO_GOST
69 # define OPENSSL_NO_GOST
71 #ifndef OPENSSL_NO_IDEA
72 # define OPENSSL_NO_IDEA
74 #ifndef OPENSSL_NO_JPAKE
75 # define OPENSSL_NO_JPAKE
77 #ifndef OPENSSL_NO_KRB5
78 # define OPENSSL_NO_KRB5
80 #ifndef OPENSSL_NO_LIBUNBOUND
81 # define OPENSSL_NO_LIBUNBOUND
83 #ifndef OPENSSL_NO_LOCKING
84 # define OPENSSL_NO_LOCKING
86 #ifndef OPENSSL_NO_MD2
87 # define OPENSSL_NO_MD2
89 #ifndef OPENSSL_NO_MDC2
90 # define OPENSSL_NO_MDC2
92 #ifndef OPENSSL_NO_POSIX_IO
93 # define OPENSSL_NO_POSIX_IO
95 #ifndef OPENSSL_NO_PQUEUE
96 # define OPENSSL_NO_PQUEUE
98 #ifndef OPENSSL_NO_RC2
99 # define OPENSSL_NO_RC2
101 #ifndef OPENSSL_NO_RC5
102 # define OPENSSL_NO_RC5
104 #ifndef OPENSSL_NO_RCS
105 # define OPENSSL_NO_RCS
107 #ifndef OPENSSL_NO_RFC3779
108 # define OPENSSL_NO_RFC3779
110 #ifndef OPENSSL_NO_RIPEMD
111 # define OPENSSL_NO_RIPEMD
113 #ifndef OPENSSL_NO_SCRYPT
114 # define OPENSSL_NO_SCRYPT
116 #ifndef OPENSSL_NO_SCT
117 # define OPENSSL_NO_SCT
119 #ifndef OPENSSL_NO_SCTP
120 # define OPENSSL_NO_SCTP
122 #ifndef OPENSSL_NO_SEED
123 # define OPENSSL_NO_SEED
125 #ifndef OPENSSL_NO_SHA0
126 # define OPENSSL_NO_SHA0
128 #ifndef OPENSSL_NO_SOCK
129 # define OPENSSL_NO_SOCK
131 #ifndef OPENSSL_NO_SRP
132 # define OPENSSL_NO_SRP
134 #ifndef OPENSSL_NO_SSL_TRACE
135 # define OPENSSL_NO_SSL_TRACE
137 #ifndef OPENSSL_NO_SSL2
138 # define OPENSSL_NO_SSL2
140 #ifndef OPENSSL_NO_SSL3
141 # define OPENSSL_NO_SSL3
143 #ifndef OPENSSL_NO_STDIO
144 # define OPENSSL_NO_STDIO
146 #ifndef OPENSSL_NO_STORE
147 # define OPENSSL_NO_STORE
149 #ifndef OPENSSL_NO_TS
150 # define OPENSSL_NO_TS
152 #ifndef OPENSSL_NO_UI
153 # define OPENSSL_NO_UI
155 #ifndef OPENSSL_NO_UNIT_TEST
156 # define OPENSSL_NO_UNIT_TEST
158 #ifndef OPENSSL_NO_WEAK_SSL_CIPHERS
159 # define OPENSSL_NO_WEAK_SSL_CIPHERS
161 #ifndef OPENSSL_NO_WHIRLPOOL
162 # define OPENSSL_NO_WHIRLPOOL
165 #endif /* OPENSSL_DOING_MAKEDEPEND */
167 #ifndef OPENSSL_NO_ASM
168 # define OPENSSL_NO_ASM
170 #ifndef OPENSSL_NO_ERR
171 # define OPENSSL_NO_ERR
173 #ifndef OPENSSL_NO_HW
174 # define OPENSSL_NO_HW
176 #ifndef OPENSSL_NO_DYNAMIC_ENGINE
177 # define OPENSSL_NO_DYNAMIC_ENGINE
180 /* The OPENSSL_NO_* macros are also defined as NO_* if the application
181 asks for it. This is a transient feature that is provided for those
182 who haven't had the time to do the appropriate changes in their
184 #ifdef OPENSSL_ALGORITHM_DEFINES
185 # if defined(OPENSSL_NO_BF) && !defined(NO_BF)
188 # if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
191 # if defined(OPENSSL_NO_CAPIENG) && !defined(NO_CAPIENG)
194 # if defined(OPENSSL_NO_CAST) && !defined(NO_CAST)
197 # if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
200 # if defined(OPENSSL_NO_DEPRECATED) && !defined(NO_DEPRECATED)
201 # define NO_DEPRECATED
203 # if defined(OPENSSL_NO_DGRAM) && !defined(NO_DGRAM)
206 # if defined(OPENSSL_NO_DSA) && !defined(NO_DSA)
209 # if defined(OPENSSL_NO_DYNAMIC_ENGINE) && !defined(NO_DYNAMIC_ENGINE)
210 # define NO_DYNAMIC_ENGINE
212 # if defined(OPENSSL_NO_EC) && !defined(NO_EC)
215 # if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
216 # define NO_EC_NISTP_64_GCC_128
218 # if defined(OPENSSL_NO_ECDH) && !defined(NO_ECDH)
221 # if defined(OPENSSL_NO_ECDSA) && !defined(NO_ECDSA)
224 # if defined(OPENSSL_NO_ENGINE) && !defined(NO_ENGINE)
227 # if defined(OPENSSL_NO_ENGINES) && !defined(NO_ENGINES)
230 # if defined(OPENSSL_NO_FILENAMES) && !defined(NO_FILENAMES)
231 # define NO_FILENAMES
233 # if defined(OPENSSL_NO_FP_API) && !defined(NO_FP_API)
236 # if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
239 # if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
242 # if defined(OPENSSL_NO_IDEA) && !defined(NO_IDEA)
245 # if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
248 # if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
251 # if defined(OPENSSL_NO_LIBUNBOUND) && !defined(NO_LIBUNBOUND)
252 # define NO_LIBUNBOUND
254 # if defined(OPENSSL_NO_LOCKING) && !defined(NO_LOCKING)
257 # if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
260 # if defined(OPENSSL_NO_MDC2) && !defined(NO_MDC2)
263 # if defined(OPENSSL_NO_POSIX_IO) && !defined(NO_POSIX_IO)
266 # if defined(OPENSSL_NO_PQUEUE) && !defined(NO_PQUEUE)
269 # if defined(OPENSSL_NO_RC2) && !defined(NO_RC2)
272 # if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
275 # if defined(OPENSSL_NO_RCS) && !defined(NO_RCS)
278 # if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
281 # if defined(OPENSSL_NO_RIPEMD) && !defined(NO_RIPEMD)
284 # if defined(OPENSSL_NO_SCRYPT) && !defined(NO_SCRYPT)
287 # if defined(OPENSSL_NO_SCT) && !defined(NO_SCT)
290 # if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
293 # if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
296 # if defined(OPENSSL_NO_SHA0) && !defined(NO_SHA0)
299 # if defined(OPENSSL_NO_SOCK) && !defined(NO_SOCK)
302 # if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
305 # if defined(OPENSSL_NO_SSL_TRACE) && !defined(NO_SSL_TRACE)
306 # define NO_SSL_TRACE
308 # if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
311 # if defined(OPENSSL_NO_SSL3) && !defined(NO_SSL3)
314 # if defined(OPENSSL_NO_STDIO) && !defined(NO_STDIO)
317 # if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
320 # if defined(OPENSSL_NO_TS) && !defined(NO_TS)
323 # if defined(OPENSSL_NO_UI) && !defined(NO_UI)
326 # if defined(OPENSSL_NO_UNIT_TEST) && !defined(NO_UNIT_TEST)
327 # define NO_UNIT_TEST
329 # if defined(OPENSSL_NO_WEAK_SSL_CIPHERS) && !defined(NO_WEAK_SSL_CIPHERS)
330 # define NO_WEAK_SSL_CIPHERS
332 # if defined(OPENSSL_NO_WHIRLPOOL) && !defined(NO_WHIRLPOOL)
333 # define NO_WHIRLPOOL
337 /* crypto/opensslconf.h.in */
340 #ifdef OPENSSL_NO_FILENAMES
341 #define OPENSSL_FILE ""
342 #define OPENSSL_LINE 0
344 #define OPENSSL_FILE __FILE__
345 #define OPENSSL_LINE __LINE__
349 /* Generate 80386 code? */
352 #if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
353 #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
354 #define ENGINESDIR "/usr/local/ssl/lib/engines"
355 #define OPENSSLDIR "/usr/local/ssl"
359 #undef OPENSSL_UNISTD
360 #define OPENSSL_UNISTD <unistd.h>
362 #undef OPENSSL_EXPORT_VAR_AS_FUNCTION
364 #if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
365 #define IDEA_INT unsigned int
368 #if defined(HEADER_MD2_H) && !defined(MD2_INT)
369 #define MD2_INT unsigned int
372 #if defined(HEADER_RC2_H) && !defined(RC2_INT)
373 /* I need to put in a mod for the alpha - eay */
374 #define RC2_INT unsigned int
377 #if defined(HEADER_RC4_H)
378 #if !defined(RC4_INT)
379 /* using int types make the structure larger but make the code faster
380 * on most boxes I have tested - up to %20 faster. */
382 * I don't know what does "most" mean, but declaring "int" is a must on:
383 * - Intel P6 because partial register stalls are very expensive;
384 * - elder Alpha because it lacks byte load/store instructions;
386 #define RC4_INT unsigned int
388 #if !defined(RC4_CHUNK)
390 * This enables code handling data aligned at natural CPU word
391 * boundary. See crypto/rc4/rc4_enc.c for further details.
397 #if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
398 /* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
399 * %20 speed up (longs are 8 bytes, int's are 4). */
401 #define DES_LONG unsigned long
405 #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H) && !defined(OPENSSL_SYSNAME_UEFI)
406 #define CONFIG_HEADER_BN_H
409 /* Should we define BN_DIV2W here? */
411 /* Only one for the following should be defined */
412 #undef SIXTY_FOUR_BIT_LONG
413 #undef SIXTY_FOUR_BIT
414 #define THIRTY_TWO_BIT
417 #if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
418 #define CONFIG_HEADER_RC4_LOCL_H
419 /* if this is defined data[i] is used instead of *data, this is a %20
424 #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
425 #define CONFIG_HEADER_BF_LOCL_H
427 #endif /* HEADER_BF_LOCL_H */
429 #if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
430 #define CONFIG_HEADER_DES_LOCL_H
431 #ifndef DES_DEFAULT_OPTIONS
432 /* the following is tweaked from a config script, that is why it is a
433 * protected undef/define */
438 /* This helps C compiler generate the correct code for multiple functional
439 * units. It reduces register dependancies at the expense of 2 more
449 #if defined(DES_RISC1) && defined(DES_RISC2)
450 #error YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
453 /* Unroll the inner loop, this sometimes helps, sometimes hinders.
454 * Very mucy CPU dependant */
459 /* These default values were supplied by
460 * Peter Gutman <pgut001@cs.auckland.ac.nz>
461 * They are only used if nothing else has been defined */
462 #if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
463 /* Special defines which change the way the code is built depending on the
464 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
465 even newer MIPS CPU's, but at the moment one size fits all for
466 optimization options. Older Sparc's work better with only UNROLL, but
467 there's no way to tell at compile time what it is you're running on */
469 #if defined( __sun ) || defined ( sun ) /* Newer Sparc's */
473 #elif defined( __ultrix ) /* Older MIPS */
477 #elif defined( __osf1__ ) /* Alpha */
480 #elif defined ( _AIX ) /* RS6000 */
482 #elif defined( __hpux ) /* HP-PA */
484 #elif defined( __aux ) /* 68K */
486 #elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
488 #elif defined( __sgi ) /* Newer MIPS */
492 #elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
496 #endif /* Systems-specific speed defines */
499 #endif /* DES_DEFAULT_OPTIONS */
500 #endif /* HEADER_DES_LOCL_H */