]>
Commit | Line | Data |
---|---|---|
b99917ce ZG |
1 | /*\r |
2 | * WARNING: do not edit!\r | |
3 | * Generated from include/openssl/opensslconf.h.in\r | |
4 | *\r | |
0ecdcb61 | 5 | * Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved.\r |
b99917ce ZG |
6 | *\r |
7 | * Licensed under the OpenSSL license (the "License"). You may not use\r | |
8 | * this file except in compliance with the License. You can obtain a copy\r | |
9 | * in the file LICENSE in the source distribution or at\r | |
10 | * https://www.openssl.org/source/license.html\r | |
11 | */\r | |
0c901fcc | 12 | #include <Library/PcdLib.h>\r |
b99917ce ZG |
13 | #include <openssl/opensslv.h>\r |
14 | \r | |
15 | #ifdef __cplusplus\r | |
16 | extern "C" {\r | |
17 | #endif\r | |
18 | \r | |
19 | #ifdef OPENSSL_ALGORITHM_DEFINES\r | |
7c342378 | 20 | #error OPENSSL_ALGORITHM_DEFINES no longer supported\r |
b99917ce ZG |
21 | #endif\r |
22 | \r | |
23 | /*\r | |
24 | * OpenSSL was configured with the following options:\r | |
25 | */\r | |
26 | \r | |
27 | #ifndef OPENSSL_SYS_UEFI\r | |
7c342378 | 28 | #define OPENSSL_SYS_UEFI 1\r |
b99917ce | 29 | #endif\r |
7c342378 | 30 | #define OPENSSL_MIN_API 0x10100000L\r |
b99917ce | 31 | #ifndef OPENSSL_NO_BF\r |
7c342378 | 32 | #define OPENSSL_NO_BF\r |
b99917ce ZG |
33 | #endif\r |
34 | #ifndef OPENSSL_NO_BLAKE2\r | |
7c342378 | 35 | #define OPENSSL_NO_BLAKE2\r |
b99917ce ZG |
36 | #endif\r |
37 | #ifndef OPENSSL_NO_CAMELLIA\r | |
7c342378 | 38 | #define OPENSSL_NO_CAMELLIA\r |
b99917ce ZG |
39 | #endif\r |
40 | #ifndef OPENSSL_NO_CAST\r | |
7c342378 | 41 | #define OPENSSL_NO_CAST\r |
b99917ce ZG |
42 | #endif\r |
43 | #ifndef OPENSSL_NO_CHACHA\r | |
7c342378 | 44 | #define OPENSSL_NO_CHACHA\r |
b99917ce ZG |
45 | #endif\r |
46 | #ifndef OPENSSL_NO_CMS\r | |
7c342378 | 47 | #define OPENSSL_NO_CMS\r |
b99917ce ZG |
48 | #endif\r |
49 | #ifndef OPENSSL_NO_CT\r | |
7c342378 | 50 | #define OPENSSL_NO_CT\r |
b99917ce | 51 | #endif\r |
394d5896 | 52 | #ifndef OPENSSL_NO_DES\r |
7c342378 | 53 | #define OPENSSL_NO_DES\r |
394d5896 | 54 | #endif\r |
b99917ce | 55 | #ifndef OPENSSL_NO_DSA\r |
7c342378 | 56 | #define OPENSSL_NO_DSA\r |
b99917ce | 57 | #endif\r |
43613b2f | 58 | #if !FixedPcdGetBool (PcdOpensslEcEnabled)\r |
0c901fcc | 59 | #ifndef OPENSSL_NO_EC\r |
60 | #define OPENSSL_NO_EC\r | |
61 | #endif\r | |
62 | #endif\r | |
b99917ce | 63 | #ifndef OPENSSL_NO_IDEA\r |
7c342378 | 64 | #define OPENSSL_NO_IDEA\r |
b99917ce ZG |
65 | #endif\r |
66 | #ifndef OPENSSL_NO_MD2\r | |
7c342378 | 67 | #define OPENSSL_NO_MD2\r |
b99917ce | 68 | #endif\r |
9b2a082e | 69 | #ifndef OPENSSL_NO_MD4\r |
7c342378 | 70 | #define OPENSSL_NO_MD4\r |
9b2a082e | 71 | #endif\r |
b99917ce | 72 | #ifndef OPENSSL_NO_MDC2\r |
7c342378 | 73 | #define OPENSSL_NO_MDC2\r |
b99917ce ZG |
74 | #endif\r |
75 | #ifndef OPENSSL_NO_POLY1305\r | |
7c342378 | 76 | #define OPENSSL_NO_POLY1305\r |
b99917ce ZG |
77 | #endif\r |
78 | #ifndef OPENSSL_NO_RC2\r | |
7c342378 | 79 | #define OPENSSL_NO_RC2\r |
b99917ce | 80 | #endif\r |
f4c15d38 | 81 | #ifndef OPENSSL_NO_RC4\r |
7c342378 | 82 | #define OPENSSL_NO_RC4\r |
f4c15d38 | 83 | #endif\r |
b99917ce | 84 | #ifndef OPENSSL_NO_RC5\r |
7c342378 | 85 | #define OPENSSL_NO_RC5\r |
b99917ce ZG |
86 | #endif\r |
87 | #ifndef OPENSSL_NO_RMD160\r | |
7c342378 | 88 | #define OPENSSL_NO_RMD160\r |
b99917ce ZG |
89 | #endif\r |
90 | #ifndef OPENSSL_NO_SEED\r | |
7c342378 | 91 | #define OPENSSL_NO_SEED\r |
b99917ce ZG |
92 | #endif\r |
93 | #ifndef OPENSSL_NO_SM2\r | |
7c342378 | 94 | #define OPENSSL_NO_SM2\r |
b99917ce ZG |
95 | #endif\r |
96 | #ifndef OPENSSL_NO_SRP\r | |
7c342378 | 97 | #define OPENSSL_NO_SRP\r |
b99917ce ZG |
98 | #endif\r |
99 | #ifndef OPENSSL_NO_TS\r | |
7c342378 | 100 | #define OPENSSL_NO_TS\r |
b99917ce ZG |
101 | #endif\r |
102 | #ifndef OPENSSL_NO_WHIRLPOOL\r | |
7c342378 | 103 | #define OPENSSL_NO_WHIRLPOOL\r |
b99917ce ZG |
104 | #endif\r |
105 | #ifndef OPENSSL_RAND_SEED_NONE\r | |
7c342378 | 106 | #define OPENSSL_RAND_SEED_NONE\r |
b99917ce ZG |
107 | #endif\r |
108 | #ifndef OPENSSL_NO_AFALGENG\r | |
7c342378 | 109 | #define OPENSSL_NO_AFALGENG\r |
b99917ce ZG |
110 | #endif\r |
111 | #ifndef OPENSSL_NO_APPS\r | |
7c342378 | 112 | #define OPENSSL_NO_APPS\r |
b99917ce ZG |
113 | #endif\r |
114 | #ifndef OPENSSL_NO_ASAN\r | |
7c342378 | 115 | #define OPENSSL_NO_ASAN\r |
b99917ce | 116 | #endif\r |
b99917ce | 117 | #ifndef OPENSSL_NO_ASYNC\r |
7c342378 | 118 | #define OPENSSL_NO_ASYNC\r |
b99917ce ZG |
119 | #endif\r |
120 | #ifndef OPENSSL_NO_AUTOERRINIT\r | |
7c342378 | 121 | #define OPENSSL_NO_AUTOERRINIT\r |
b99917ce ZG |
122 | #endif\r |
123 | #ifndef OPENSSL_NO_AUTOLOAD_CONFIG\r | |
7c342378 | 124 | #define OPENSSL_NO_AUTOLOAD_CONFIG\r |
b99917ce ZG |
125 | #endif\r |
126 | #ifndef OPENSSL_NO_CAPIENG\r | |
7c342378 | 127 | #define OPENSSL_NO_CAPIENG\r |
b99917ce ZG |
128 | #endif\r |
129 | #ifndef OPENSSL_NO_CRYPTO_MDEBUG\r | |
7c342378 | 130 | #define OPENSSL_NO_CRYPTO_MDEBUG\r |
b99917ce ZG |
131 | #endif\r |
132 | #ifndef OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE\r | |
7c342378 | 133 | #define OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE\r |
b99917ce ZG |
134 | #endif\r |
135 | #ifndef OPENSSL_NO_DEPRECATED\r | |
7c342378 | 136 | #define OPENSSL_NO_DEPRECATED\r |
b99917ce ZG |
137 | #endif\r |
138 | #ifndef OPENSSL_NO_DEVCRYPTOENG\r | |
7c342378 | 139 | #define OPENSSL_NO_DEVCRYPTOENG\r |
b99917ce ZG |
140 | #endif\r |
141 | #ifndef OPENSSL_NO_DGRAM\r | |
7c342378 | 142 | #define OPENSSL_NO_DGRAM\r |
b99917ce ZG |
143 | #endif\r |
144 | #ifndef OPENSSL_NO_DTLS\r | |
7c342378 | 145 | #define OPENSSL_NO_DTLS\r |
b99917ce ZG |
146 | #endif\r |
147 | #ifndef OPENSSL_NO_DTLS1\r | |
7c342378 | 148 | #define OPENSSL_NO_DTLS1\r |
b99917ce ZG |
149 | #endif\r |
150 | #ifndef OPENSSL_NO_DTLS1_2\r | |
7c342378 | 151 | #define OPENSSL_NO_DTLS1_2\r |
b99917ce ZG |
152 | #endif\r |
153 | #ifndef OPENSSL_NO_EC2M\r | |
7c342378 | 154 | #define OPENSSL_NO_EC2M\r |
b99917ce ZG |
155 | #endif\r |
156 | #ifndef OPENSSL_NO_EC_NISTP_64_GCC_128\r | |
7c342378 | 157 | #define OPENSSL_NO_EC_NISTP_64_GCC_128\r |
b99917ce ZG |
158 | #endif\r |
159 | #ifndef OPENSSL_NO_ECDH\r | |
7c342378 | 160 | #define OPENSSL_NO_ECDH\r |
b99917ce ZG |
161 | #endif\r |
162 | #ifndef OPENSSL_NO_ECDSA\r | |
7c342378 | 163 | #define OPENSSL_NO_ECDSA\r |
b99917ce ZG |
164 | #endif\r |
165 | #ifndef OPENSSL_NO_EGD\r | |
7c342378 | 166 | #define OPENSSL_NO_EGD\r |
b99917ce ZG |
167 | #endif\r |
168 | #ifndef OPENSSL_NO_ENGINE\r | |
7c342378 | 169 | #define OPENSSL_NO_ENGINE\r |
b99917ce ZG |
170 | #endif\r |
171 | #ifndef OPENSSL_NO_ERR\r | |
7c342378 | 172 | #define OPENSSL_NO_ERR\r |
b99917ce ZG |
173 | #endif\r |
174 | #ifndef OPENSSL_NO_EXTERNAL_TESTS\r | |
7c342378 | 175 | #define OPENSSL_NO_EXTERNAL_TESTS\r |
b99917ce ZG |
176 | #endif\r |
177 | #ifndef OPENSSL_NO_FILENAMES\r | |
7c342378 | 178 | #define OPENSSL_NO_FILENAMES\r |
b99917ce ZG |
179 | #endif\r |
180 | #ifndef OPENSSL_NO_FUZZ_AFL\r | |
7c342378 | 181 | #define OPENSSL_NO_FUZZ_AFL\r |
b99917ce ZG |
182 | #endif\r |
183 | #ifndef OPENSSL_NO_FUZZ_LIBFUZZER\r | |
7c342378 | 184 | #define OPENSSL_NO_FUZZ_LIBFUZZER\r |
b99917ce ZG |
185 | #endif\r |
186 | #ifndef OPENSSL_NO_GOST\r | |
7c342378 | 187 | #define OPENSSL_NO_GOST\r |
b99917ce ZG |
188 | #endif\r |
189 | #ifndef OPENSSL_NO_HEARTBEATS\r | |
7c342378 | 190 | #define OPENSSL_NO_HEARTBEATS\r |
b99917ce ZG |
191 | #endif\r |
192 | #ifndef OPENSSL_NO_HW\r | |
7c342378 | 193 | #define OPENSSL_NO_HW\r |
b99917ce ZG |
194 | #endif\r |
195 | #ifndef OPENSSL_NO_MSAN\r | |
7c342378 | 196 | #define OPENSSL_NO_MSAN\r |
b99917ce ZG |
197 | #endif\r |
198 | #ifndef OPENSSL_NO_OCB\r | |
7c342378 | 199 | #define OPENSSL_NO_OCB\r |
b99917ce ZG |
200 | #endif\r |
201 | #ifndef OPENSSL_NO_POSIX_IO\r | |
7c342378 | 202 | #define OPENSSL_NO_POSIX_IO\r |
b99917ce ZG |
203 | #endif\r |
204 | #ifndef OPENSSL_NO_RFC3779\r | |
7c342378 | 205 | #define OPENSSL_NO_RFC3779\r |
b99917ce ZG |
206 | #endif\r |
207 | #ifndef OPENSSL_NO_SCRYPT\r | |
7c342378 | 208 | #define OPENSSL_NO_SCRYPT\r |
b99917ce ZG |
209 | #endif\r |
210 | #ifndef OPENSSL_NO_SCTP\r | |
7c342378 | 211 | #define OPENSSL_NO_SCTP\r |
b99917ce ZG |
212 | #endif\r |
213 | #ifndef OPENSSL_NO_SOCK\r | |
7c342378 | 214 | #define OPENSSL_NO_SOCK\r |
b99917ce ZG |
215 | #endif\r |
216 | #ifndef OPENSSL_NO_SSL_TRACE\r | |
7c342378 | 217 | #define OPENSSL_NO_SSL_TRACE\r |
b99917ce ZG |
218 | #endif\r |
219 | #ifndef OPENSSL_NO_SSL3\r | |
7c342378 | 220 | #define OPENSSL_NO_SSL3\r |
b99917ce ZG |
221 | #endif\r |
222 | #ifndef OPENSSL_NO_SSL3_METHOD\r | |
7c342378 | 223 | #define OPENSSL_NO_SSL3_METHOD\r |
b99917ce ZG |
224 | #endif\r |
225 | #ifndef OPENSSL_NO_STDIO\r | |
7c342378 | 226 | #define OPENSSL_NO_STDIO\r |
b99917ce ZG |
227 | #endif\r |
228 | #ifndef OPENSSL_NO_TESTS\r | |
7c342378 | 229 | #define OPENSSL_NO_TESTS\r |
b99917ce ZG |
230 | #endif\r |
231 | #ifndef OPENSSL_NO_TLS1_3\r | |
7c342378 | 232 | #define OPENSSL_NO_TLS1_3\r |
b99917ce ZG |
233 | #endif\r |
234 | #ifndef OPENSSL_NO_UBSAN\r | |
7c342378 | 235 | #define OPENSSL_NO_UBSAN\r |
b99917ce ZG |
236 | #endif\r |
237 | #ifndef OPENSSL_NO_UI_CONSOLE\r | |
7c342378 | 238 | #define OPENSSL_NO_UI_CONSOLE\r |
b99917ce ZG |
239 | #endif\r |
240 | #ifndef OPENSSL_NO_UNIT_TEST\r | |
7c342378 | 241 | #define OPENSSL_NO_UNIT_TEST\r |
b99917ce ZG |
242 | #endif\r |
243 | #ifndef OPENSSL_NO_WEAK_SSL_CIPHERS\r | |
7c342378 | 244 | #define OPENSSL_NO_WEAK_SSL_CIPHERS\r |
b99917ce ZG |
245 | #endif\r |
246 | #ifndef OPENSSL_NO_DYNAMIC_ENGINE\r | |
7c342378 | 247 | #define OPENSSL_NO_DYNAMIC_ENGINE\r |
b99917ce | 248 | #endif\r |
b99917ce | 249 | \r |
b99917ce ZG |
250 | /*\r |
251 | * Sometimes OPENSSSL_NO_xxx ends up with an empty file and some compilers\r | |
252 | * don't like that. This will hopefully silence them.\r | |
253 | */\r | |
7c342378 | 254 | #define NON_EMPTY_TRANSLATION_UNIT static void *dummy = &dummy;\r |
b99917ce ZG |
255 | \r |
256 | /*\r | |
257 | * Applications should use -DOPENSSL_API_COMPAT=<version> to suppress the\r | |
258 | * declarations of functions deprecated in or before <version>. Otherwise, they\r | |
259 | * still won't see them if the library has been built to disable deprecated\r | |
260 | * functions.\r | |
261 | */\r | |
262 | #ifndef DECLARE_DEPRECATED\r | |
7c342378 MK |
263 | #define DECLARE_DEPRECATED(f) f;\r |
264 | #ifdef __GNUC__\r | |
265 | #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 0)\r | |
266 | #undef DECLARE_DEPRECATED\r | |
267 | #define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));\r | |
268 | #endif\r | |
269 | #elif defined (__SUNPRO_C)\r | |
270 | #if (__SUNPRO_C >= 0x5130)\r | |
271 | #undef DECLARE_DEPRECATED\r | |
272 | #define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));\r | |
273 | #endif\r | |
274 | #endif\r | |
b99917ce ZG |
275 | #endif\r |
276 | \r | |
277 | #ifndef OPENSSL_FILE\r | |
7c342378 MK |
278 | #ifdef OPENSSL_NO_FILENAMES\r |
279 | #define OPENSSL_FILE ""\r | |
280 | #define OPENSSL_LINE 0\r | |
281 | #else\r | |
282 | #define OPENSSL_FILE __FILE__\r | |
283 | #define OPENSSL_LINE __LINE__\r | |
284 | #endif\r | |
b99917ce ZG |
285 | #endif\r |
286 | \r | |
287 | #ifndef OPENSSL_MIN_API\r | |
7c342378 | 288 | #define OPENSSL_MIN_API 0\r |
b99917ce ZG |
289 | #endif\r |
290 | \r | |
7c342378 MK |
291 | #if !defined (OPENSSL_API_COMPAT) || OPENSSL_API_COMPAT < OPENSSL_MIN_API\r |
292 | #undef OPENSSL_API_COMPAT\r | |
293 | #define OPENSSL_API_COMPAT OPENSSL_MIN_API\r | |
b99917ce ZG |
294 | #endif\r |
295 | \r | |
296 | /*\r | |
297 | * Do not deprecate things to be deprecated in version 1.2.0 before the\r | |
298 | * OpenSSL version number matches.\r | |
299 | */\r | |
300 | #if OPENSSL_VERSION_NUMBER < 0x10200000L\r | |
7c342378 | 301 | #define DEPRECATEDIN_1_2_0(f) f;\r |
b99917ce | 302 | #elif OPENSSL_API_COMPAT < 0x10200000L\r |
7c342378 | 303 | #define DEPRECATEDIN_1_2_0(f) DECLARE_DEPRECATED(f)\r |
b99917ce | 304 | #else\r |
7c342378 | 305 | #define DEPRECATEDIN_1_2_0(f)\r |
b99917ce ZG |
306 | #endif\r |
307 | \r | |
308 | #if OPENSSL_API_COMPAT < 0x10100000L\r | |
7c342378 | 309 | #define DEPRECATEDIN_1_1_0(f) DECLARE_DEPRECATED(f)\r |
b99917ce | 310 | #else\r |
7c342378 | 311 | #define DEPRECATEDIN_1_1_0(f)\r |
b99917ce ZG |
312 | #endif\r |
313 | \r | |
314 | #if OPENSSL_API_COMPAT < 0x10000000L\r | |
7c342378 | 315 | #define DEPRECATEDIN_1_0_0(f) DECLARE_DEPRECATED(f)\r |
b99917ce | 316 | #else\r |
7c342378 | 317 | #define DEPRECATEDIN_1_0_0(f)\r |
b99917ce ZG |
318 | #endif\r |
319 | \r | |
320 | #if OPENSSL_API_COMPAT < 0x00908000L\r | |
7c342378 | 321 | #define DEPRECATEDIN_0_9_8(f) DECLARE_DEPRECATED(f)\r |
b99917ce | 322 | #else\r |
7c342378 | 323 | #define DEPRECATEDIN_0_9_8(f)\r |
b99917ce ZG |
324 | #endif\r |
325 | \r | |
326 | /* Generate 80386 code? */\r | |
327 | #undef I386_ONLY\r | |
328 | \r | |
329 | #undef OPENSSL_UNISTD\r | |
7c342378 | 330 | #define OPENSSL_UNISTD <unistd.h>\r |
b99917ce ZG |
331 | \r |
332 | #undef OPENSSL_EXPORT_VAR_AS_FUNCTION\r | |
333 | \r | |
334 | /*\r | |
335 | * The following are cipher-specific, but are part of the public API.\r | |
336 | */\r | |
7c342378 MK |
337 | #if !defined (OPENSSL_SYS_UEFI)\r |
338 | #undef BN_LLONG\r | |
b99917ce | 339 | /* Only one for the following should be defined */\r |
7c342378 MK |
340 | #undef SIXTY_FOUR_BIT_LONG\r |
341 | #undef SIXTY_FOUR_BIT\r | |
342 | #define THIRTY_TWO_BIT\r | |
b99917ce ZG |
343 | #endif\r |
344 | \r | |
7c342378 | 345 | #define RC4_INT unsigned int\r |
b99917ce ZG |
346 | \r |
347 | #ifdef __cplusplus\r | |
348 | }\r | |
349 | #endif\r |