]>
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_RC2
96 # define OPENSSL_NO_RC2
98 #ifndef OPENSSL_NO_RC5
99 # define OPENSSL_NO_RC5
101 #ifndef OPENSSL_NO_RCS
102 # define OPENSSL_NO_RCS
104 #ifndef OPENSSL_NO_RFC3779
105 # define OPENSSL_NO_RFC3779
107 #ifndef OPENSSL_NO_RIPEMD
108 # define OPENSSL_NO_RIPEMD
110 #ifndef OPENSSL_NO_SCRYPT
111 # define OPENSSL_NO_SCRYPT
113 #ifndef OPENSSL_NO_SCT
114 # define OPENSSL_NO_SCT
116 #ifndef OPENSSL_NO_SCTP
117 # define OPENSSL_NO_SCTP
119 #ifndef OPENSSL_NO_SEED
120 # define OPENSSL_NO_SEED
122 #ifndef OPENSSL_NO_SHA0
123 # define OPENSSL_NO_SHA0
125 #ifndef OPENSSL_NO_SOCK
126 # define OPENSSL_NO_SOCK
128 #ifndef OPENSSL_NO_SRP
129 # define OPENSSL_NO_SRP
131 #ifndef OPENSSL_NO_SSL_TRACE
132 # define OPENSSL_NO_SSL_TRACE
134 #ifndef OPENSSL_NO_SSL2
135 # define OPENSSL_NO_SSL2
137 #ifndef OPENSSL_NO_SSL3
138 # define OPENSSL_NO_SSL3
140 #ifndef OPENSSL_NO_STDIO
141 # define OPENSSL_NO_STDIO
143 #ifndef OPENSSL_NO_STORE
144 # define OPENSSL_NO_STORE
146 #ifndef OPENSSL_NO_UI
147 # define OPENSSL_NO_UI
149 #ifndef OPENSSL_NO_UNIT_TEST
150 # define OPENSSL_NO_UNIT_TEST
152 #ifndef OPENSSL_NO_WHIRLPOOL
153 # define OPENSSL_NO_WHIRLPOOL
156 #endif /* OPENSSL_DOING_MAKEDEPEND */
158 #ifndef OPENSSL_NO_ASM
159 # define OPENSSL_NO_ASM
161 #ifndef OPENSSL_NO_ERR
162 # define OPENSSL_NO_ERR
164 #ifndef OPENSSL_NO_HW
165 # define OPENSSL_NO_HW
167 #ifndef OPENSSL_NO_DYNAMIC_ENGINE
168 # define OPENSSL_NO_DYNAMIC_ENGINE
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
175 #ifdef OPENSSL_ALGORITHM_DEFINES
176 # if defined(OPENSSL_NO_BF) && !defined(NO_BF)
179 # if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
182 # if defined(OPENSSL_NO_CAPIENG) && !defined(NO_CAPIENG)
185 # if defined(OPENSSL_NO_CAST) && !defined(NO_CAST)
188 # if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
191 # if defined(OPENSSL_NO_DEPRECATED) && !defined(NO_DEPRECATED)
192 # define NO_DEPRECATED
194 # if defined(OPENSSL_NO_DGRAM) && !defined(NO_DGRAM)
197 # if defined(OPENSSL_NO_DSA) && !defined(NO_DSA)
200 # if defined(OPENSSL_NO_DYNAMIC_ENGINE) && !defined(NO_DYNAMIC_ENGINE)
201 # define NO_DYNAMIC_ENGINE
203 # if defined(OPENSSL_NO_EC) && !defined(NO_EC)
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
209 # if defined(OPENSSL_NO_ECDH) && !defined(NO_ECDH)
212 # if defined(OPENSSL_NO_ECDSA) && !defined(NO_ECDSA)
215 # if defined(OPENSSL_NO_ENGINE) && !defined(NO_ENGINE)
218 # if defined(OPENSSL_NO_ENGINES) && !defined(NO_ENGINES)
221 # if defined(OPENSSL_NO_FILENAMES) && !defined(NO_FILENAMES)
222 # define NO_FILENAMES
224 # if defined(OPENSSL_NO_FP_API) && !defined(NO_FP_API)
227 # if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
230 # if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
233 # if defined(OPENSSL_NO_IDEA) && !defined(NO_IDEA)
236 # if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
239 # if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
242 # if defined(OPENSSL_NO_LIBUNBOUND) && !defined(NO_LIBUNBOUND)
243 # define NO_LIBUNBOUND
245 # if defined(OPENSSL_NO_LOCKING) && !defined(NO_LOCKING)
248 # if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
251 # if defined(OPENSSL_NO_MDC2) && !defined(NO_MDC2)
254 # if defined(OPENSSL_NO_POSIX_IO) && !defined(NO_POSIX_IO)
257 # if defined(OPENSSL_NO_RC2) && !defined(NO_RC2)
260 # if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
263 # if defined(OPENSSL_NO_RCS) && !defined(NO_RCS)
266 # if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
269 # if defined(OPENSSL_NO_RIPEMD) && !defined(NO_RIPEMD)
272 # if defined(OPENSSL_NO_SCRYPT) && !defined(NO_SCRYPT)
275 # if defined(OPENSSL_NO_SCT) && !defined(NO_SCT)
278 # if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
281 # if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
284 # if defined(OPENSSL_NO_SHA0) && !defined(NO_SHA0)
287 # if defined(OPENSSL_NO_SOCK) && !defined(NO_SOCK)
290 # if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
293 # if defined(OPENSSL_NO_SSL_TRACE) && !defined(NO_SSL_TRACE)
294 # define NO_SSL_TRACE
296 # if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
299 # if defined(OPENSSL_NO_SSL3) && !defined(NO_SSL3)
302 # if defined(OPENSSL_NO_STDIO) && !defined(NO_STDIO)
305 # if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
308 # if defined(OPENSSL_NO_UI) && !defined(NO_UI)
311 # if defined(OPENSSL_NO_UNIT_TEST) && !defined(NO_UNIT_TEST)
312 # define NO_UNIT_TEST
314 # if defined(OPENSSL_NO_WHIRLPOOL) && !defined(NO_WHIRLPOOL)
315 # define NO_WHIRLPOOL
319 /* crypto/opensslconf.h.in */
322 #ifdef OPENSSL_NO_FILENAMES
323 #define OPENSSL_FILE ""
324 #define OPENSSL_LINE 0
326 #define OPENSSL_FILE __FILE__
327 #define OPENSSL_LINE __LINE__
331 /* Generate 80386 code? */
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"
341 #undef OPENSSL_UNISTD
342 #define OPENSSL_UNISTD <unistd.h>
344 #undef OPENSSL_EXPORT_VAR_AS_FUNCTION
346 #if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
347 #define IDEA_INT unsigned int
350 #if defined(HEADER_MD2_H) && !defined(MD2_INT)
351 #define MD2_INT unsigned int
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
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. */
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;
368 #define RC4_INT unsigned int
370 #if !defined(RC4_CHUNK)
372 * This enables code handling data aligned at natural CPU word
373 * boundary. See crypto/rc4/rc4_enc.c for further details.
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). */
383 #define DES_LONG unsigned long
387 #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H) && !defined(OPENSSL_SYSNAME_UEFI)
388 #define CONFIG_HEADER_BN_H
391 /* Should we define BN_DIV2W here? */
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
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
406 #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
407 #define CONFIG_HEADER_BF_LOCL_H
409 #endif /* HEADER_BF_LOCL_H */
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 */
420 /* This helps C compiler generate the correct code for multiple functional
421 * units. It reduces register dependancies at the expense of 2 more
431 #if defined(DES_RISC1) && defined(DES_RISC2)
432 #error YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
435 /* Unroll the inner loop, this sometimes helps, sometimes hinders.
436 * Very mucy CPU dependant */
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 */
451 #if defined( __sun ) || defined ( sun ) /* Newer Sparc's */
455 #elif defined( __ultrix ) /* Older MIPS */
459 #elif defined( __osf1__ ) /* Alpha */
462 #elif defined ( _AIX ) /* RS6000 */
464 #elif defined( __hpux ) /* HP-PA */
466 #elif defined( __aux ) /* 68K */
468 #elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
470 #elif defined( __sgi ) /* Newer MIPS */
474 #elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
478 #endif /* Systems-specific speed defines */
481 #endif /* DES_DEFAULT_OPTIONS */
482 #endif /* HEADER_DES_LOCL_H */