]>
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 | |
12 | \r | |
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 ZG |
57 | #endif\r |
58 | #ifndef OPENSSL_NO_EC\r | |
7c342378 | 59 | #define OPENSSL_NO_EC\r |
b99917ce ZG |
60 | #endif\r |
61 | #ifndef OPENSSL_NO_IDEA\r | |
7c342378 | 62 | #define OPENSSL_NO_IDEA\r |
b99917ce ZG |
63 | #endif\r |
64 | #ifndef OPENSSL_NO_MD2\r | |
7c342378 | 65 | #define OPENSSL_NO_MD2\r |
b99917ce | 66 | #endif\r |
9b2a082e | 67 | #ifndef OPENSSL_NO_MD4\r |
7c342378 | 68 | #define OPENSSL_NO_MD4\r |
9b2a082e | 69 | #endif\r |
b99917ce | 70 | #ifndef OPENSSL_NO_MDC2\r |
7c342378 | 71 | #define OPENSSL_NO_MDC2\r |
b99917ce ZG |
72 | #endif\r |
73 | #ifndef OPENSSL_NO_POLY1305\r | |
7c342378 | 74 | #define OPENSSL_NO_POLY1305\r |
b99917ce ZG |
75 | #endif\r |
76 | #ifndef OPENSSL_NO_RC2\r | |
7c342378 | 77 | #define OPENSSL_NO_RC2\r |
b99917ce | 78 | #endif\r |
f4c15d38 | 79 | #ifndef OPENSSL_NO_RC4\r |
7c342378 | 80 | #define OPENSSL_NO_RC4\r |
f4c15d38 | 81 | #endif\r |
b99917ce | 82 | #ifndef OPENSSL_NO_RC5\r |
7c342378 | 83 | #define OPENSSL_NO_RC5\r |
b99917ce ZG |
84 | #endif\r |
85 | #ifndef OPENSSL_NO_RMD160\r | |
7c342378 | 86 | #define OPENSSL_NO_RMD160\r |
b99917ce ZG |
87 | #endif\r |
88 | #ifndef OPENSSL_NO_SEED\r | |
7c342378 | 89 | #define OPENSSL_NO_SEED\r |
b99917ce ZG |
90 | #endif\r |
91 | #ifndef OPENSSL_NO_SM2\r | |
7c342378 | 92 | #define OPENSSL_NO_SM2\r |
b99917ce ZG |
93 | #endif\r |
94 | #ifndef OPENSSL_NO_SRP\r | |
7c342378 | 95 | #define OPENSSL_NO_SRP\r |
b99917ce ZG |
96 | #endif\r |
97 | #ifndef OPENSSL_NO_TS\r | |
7c342378 | 98 | #define OPENSSL_NO_TS\r |
b99917ce ZG |
99 | #endif\r |
100 | #ifndef OPENSSL_NO_WHIRLPOOL\r | |
7c342378 | 101 | #define OPENSSL_NO_WHIRLPOOL\r |
b99917ce ZG |
102 | #endif\r |
103 | #ifndef OPENSSL_RAND_SEED_NONE\r | |
7c342378 | 104 | #define OPENSSL_RAND_SEED_NONE\r |
b99917ce ZG |
105 | #endif\r |
106 | #ifndef OPENSSL_NO_AFALGENG\r | |
7c342378 | 107 | #define OPENSSL_NO_AFALGENG\r |
b99917ce ZG |
108 | #endif\r |
109 | #ifndef OPENSSL_NO_APPS\r | |
7c342378 | 110 | #define OPENSSL_NO_APPS\r |
b99917ce ZG |
111 | #endif\r |
112 | #ifndef OPENSSL_NO_ASAN\r | |
7c342378 | 113 | #define OPENSSL_NO_ASAN\r |
b99917ce | 114 | #endif\r |
b99917ce | 115 | #ifndef OPENSSL_NO_ASYNC\r |
7c342378 | 116 | #define OPENSSL_NO_ASYNC\r |
b99917ce ZG |
117 | #endif\r |
118 | #ifndef OPENSSL_NO_AUTOERRINIT\r | |
7c342378 | 119 | #define OPENSSL_NO_AUTOERRINIT\r |
b99917ce ZG |
120 | #endif\r |
121 | #ifndef OPENSSL_NO_AUTOLOAD_CONFIG\r | |
7c342378 | 122 | #define OPENSSL_NO_AUTOLOAD_CONFIG\r |
b99917ce ZG |
123 | #endif\r |
124 | #ifndef OPENSSL_NO_CAPIENG\r | |
7c342378 | 125 | #define OPENSSL_NO_CAPIENG\r |
b99917ce ZG |
126 | #endif\r |
127 | #ifndef OPENSSL_NO_CRYPTO_MDEBUG\r | |
7c342378 | 128 | #define OPENSSL_NO_CRYPTO_MDEBUG\r |
b99917ce ZG |
129 | #endif\r |
130 | #ifndef OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE\r | |
7c342378 | 131 | #define OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE\r |
b99917ce ZG |
132 | #endif\r |
133 | #ifndef OPENSSL_NO_DEPRECATED\r | |
7c342378 | 134 | #define OPENSSL_NO_DEPRECATED\r |
b99917ce ZG |
135 | #endif\r |
136 | #ifndef OPENSSL_NO_DEVCRYPTOENG\r | |
7c342378 | 137 | #define OPENSSL_NO_DEVCRYPTOENG\r |
b99917ce ZG |
138 | #endif\r |
139 | #ifndef OPENSSL_NO_DGRAM\r | |
7c342378 | 140 | #define OPENSSL_NO_DGRAM\r |
b99917ce ZG |
141 | #endif\r |
142 | #ifndef OPENSSL_NO_DTLS\r | |
7c342378 | 143 | #define OPENSSL_NO_DTLS\r |
b99917ce ZG |
144 | #endif\r |
145 | #ifndef OPENSSL_NO_DTLS1\r | |
7c342378 | 146 | #define OPENSSL_NO_DTLS1\r |
b99917ce ZG |
147 | #endif\r |
148 | #ifndef OPENSSL_NO_DTLS1_2\r | |
7c342378 | 149 | #define OPENSSL_NO_DTLS1_2\r |
b99917ce ZG |
150 | #endif\r |
151 | #ifndef OPENSSL_NO_EC2M\r | |
7c342378 | 152 | #define OPENSSL_NO_EC2M\r |
b99917ce ZG |
153 | #endif\r |
154 | #ifndef OPENSSL_NO_EC_NISTP_64_GCC_128\r | |
7c342378 | 155 | #define OPENSSL_NO_EC_NISTP_64_GCC_128\r |
b99917ce ZG |
156 | #endif\r |
157 | #ifndef OPENSSL_NO_ECDH\r | |
7c342378 | 158 | #define OPENSSL_NO_ECDH\r |
b99917ce ZG |
159 | #endif\r |
160 | #ifndef OPENSSL_NO_ECDSA\r | |
7c342378 | 161 | #define OPENSSL_NO_ECDSA\r |
b99917ce ZG |
162 | #endif\r |
163 | #ifndef OPENSSL_NO_EGD\r | |
7c342378 | 164 | #define OPENSSL_NO_EGD\r |
b99917ce ZG |
165 | #endif\r |
166 | #ifndef OPENSSL_NO_ENGINE\r | |
7c342378 | 167 | #define OPENSSL_NO_ENGINE\r |
b99917ce ZG |
168 | #endif\r |
169 | #ifndef OPENSSL_NO_ERR\r | |
7c342378 | 170 | #define OPENSSL_NO_ERR\r |
b99917ce ZG |
171 | #endif\r |
172 | #ifndef OPENSSL_NO_EXTERNAL_TESTS\r | |
7c342378 | 173 | #define OPENSSL_NO_EXTERNAL_TESTS\r |
b99917ce ZG |
174 | #endif\r |
175 | #ifndef OPENSSL_NO_FILENAMES\r | |
7c342378 | 176 | #define OPENSSL_NO_FILENAMES\r |
b99917ce ZG |
177 | #endif\r |
178 | #ifndef OPENSSL_NO_FUZZ_AFL\r | |
7c342378 | 179 | #define OPENSSL_NO_FUZZ_AFL\r |
b99917ce ZG |
180 | #endif\r |
181 | #ifndef OPENSSL_NO_FUZZ_LIBFUZZER\r | |
7c342378 | 182 | #define OPENSSL_NO_FUZZ_LIBFUZZER\r |
b99917ce ZG |
183 | #endif\r |
184 | #ifndef OPENSSL_NO_GOST\r | |
7c342378 | 185 | #define OPENSSL_NO_GOST\r |
b99917ce ZG |
186 | #endif\r |
187 | #ifndef OPENSSL_NO_HEARTBEATS\r | |
7c342378 | 188 | #define OPENSSL_NO_HEARTBEATS\r |
b99917ce ZG |
189 | #endif\r |
190 | #ifndef OPENSSL_NO_HW\r | |
7c342378 | 191 | #define OPENSSL_NO_HW\r |
b99917ce ZG |
192 | #endif\r |
193 | #ifndef OPENSSL_NO_MSAN\r | |
7c342378 | 194 | #define OPENSSL_NO_MSAN\r |
b99917ce ZG |
195 | #endif\r |
196 | #ifndef OPENSSL_NO_OCB\r | |
7c342378 | 197 | #define OPENSSL_NO_OCB\r |
b99917ce ZG |
198 | #endif\r |
199 | #ifndef OPENSSL_NO_POSIX_IO\r | |
7c342378 | 200 | #define OPENSSL_NO_POSIX_IO\r |
b99917ce ZG |
201 | #endif\r |
202 | #ifndef OPENSSL_NO_RFC3779\r | |
7c342378 | 203 | #define OPENSSL_NO_RFC3779\r |
b99917ce ZG |
204 | #endif\r |
205 | #ifndef OPENSSL_NO_SCRYPT\r | |
7c342378 | 206 | #define OPENSSL_NO_SCRYPT\r |
b99917ce ZG |
207 | #endif\r |
208 | #ifndef OPENSSL_NO_SCTP\r | |
7c342378 | 209 | #define OPENSSL_NO_SCTP\r |
b99917ce ZG |
210 | #endif\r |
211 | #ifndef OPENSSL_NO_SOCK\r | |
7c342378 | 212 | #define OPENSSL_NO_SOCK\r |
b99917ce ZG |
213 | #endif\r |
214 | #ifndef OPENSSL_NO_SSL_TRACE\r | |
7c342378 | 215 | #define OPENSSL_NO_SSL_TRACE\r |
b99917ce ZG |
216 | #endif\r |
217 | #ifndef OPENSSL_NO_SSL3\r | |
7c342378 | 218 | #define OPENSSL_NO_SSL3\r |
b99917ce ZG |
219 | #endif\r |
220 | #ifndef OPENSSL_NO_SSL3_METHOD\r | |
7c342378 | 221 | #define OPENSSL_NO_SSL3_METHOD\r |
b99917ce ZG |
222 | #endif\r |
223 | #ifndef OPENSSL_NO_STDIO\r | |
7c342378 | 224 | #define OPENSSL_NO_STDIO\r |
b99917ce ZG |
225 | #endif\r |
226 | #ifndef OPENSSL_NO_TESTS\r | |
7c342378 | 227 | #define OPENSSL_NO_TESTS\r |
b99917ce ZG |
228 | #endif\r |
229 | #ifndef OPENSSL_NO_TLS1_3\r | |
7c342378 | 230 | #define OPENSSL_NO_TLS1_3\r |
b99917ce ZG |
231 | #endif\r |
232 | #ifndef OPENSSL_NO_UBSAN\r | |
7c342378 | 233 | #define OPENSSL_NO_UBSAN\r |
b99917ce ZG |
234 | #endif\r |
235 | #ifndef OPENSSL_NO_UI_CONSOLE\r | |
7c342378 | 236 | #define OPENSSL_NO_UI_CONSOLE\r |
b99917ce ZG |
237 | #endif\r |
238 | #ifndef OPENSSL_NO_UNIT_TEST\r | |
7c342378 | 239 | #define OPENSSL_NO_UNIT_TEST\r |
b99917ce ZG |
240 | #endif\r |
241 | #ifndef OPENSSL_NO_WEAK_SSL_CIPHERS\r | |
7c342378 | 242 | #define OPENSSL_NO_WEAK_SSL_CIPHERS\r |
b99917ce ZG |
243 | #endif\r |
244 | #ifndef OPENSSL_NO_DYNAMIC_ENGINE\r | |
7c342378 | 245 | #define OPENSSL_NO_DYNAMIC_ENGINE\r |
b99917ce | 246 | #endif\r |
b99917ce | 247 | \r |
b99917ce ZG |
248 | /*\r |
249 | * Sometimes OPENSSSL_NO_xxx ends up with an empty file and some compilers\r | |
250 | * don't like that. This will hopefully silence them.\r | |
251 | */\r | |
7c342378 | 252 | #define NON_EMPTY_TRANSLATION_UNIT static void *dummy = &dummy;\r |
b99917ce ZG |
253 | \r |
254 | /*\r | |
255 | * Applications should use -DOPENSSL_API_COMPAT=<version> to suppress the\r | |
256 | * declarations of functions deprecated in or before <version>. Otherwise, they\r | |
257 | * still won't see them if the library has been built to disable deprecated\r | |
258 | * functions.\r | |
259 | */\r | |
260 | #ifndef DECLARE_DEPRECATED\r | |
7c342378 MK |
261 | #define DECLARE_DEPRECATED(f) f;\r |
262 | #ifdef __GNUC__\r | |
263 | #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 0)\r | |
264 | #undef DECLARE_DEPRECATED\r | |
265 | #define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));\r | |
266 | #endif\r | |
267 | #elif defined (__SUNPRO_C)\r | |
268 | #if (__SUNPRO_C >= 0x5130)\r | |
269 | #undef DECLARE_DEPRECATED\r | |
270 | #define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));\r | |
271 | #endif\r | |
272 | #endif\r | |
b99917ce ZG |
273 | #endif\r |
274 | \r | |
275 | #ifndef OPENSSL_FILE\r | |
7c342378 MK |
276 | #ifdef OPENSSL_NO_FILENAMES\r |
277 | #define OPENSSL_FILE ""\r | |
278 | #define OPENSSL_LINE 0\r | |
279 | #else\r | |
280 | #define OPENSSL_FILE __FILE__\r | |
281 | #define OPENSSL_LINE __LINE__\r | |
282 | #endif\r | |
b99917ce ZG |
283 | #endif\r |
284 | \r | |
285 | #ifndef OPENSSL_MIN_API\r | |
7c342378 | 286 | #define OPENSSL_MIN_API 0\r |
b99917ce ZG |
287 | #endif\r |
288 | \r | |
7c342378 MK |
289 | #if !defined (OPENSSL_API_COMPAT) || OPENSSL_API_COMPAT < OPENSSL_MIN_API\r |
290 | #undef OPENSSL_API_COMPAT\r | |
291 | #define OPENSSL_API_COMPAT OPENSSL_MIN_API\r | |
b99917ce ZG |
292 | #endif\r |
293 | \r | |
294 | /*\r | |
295 | * Do not deprecate things to be deprecated in version 1.2.0 before the\r | |
296 | * OpenSSL version number matches.\r | |
297 | */\r | |
298 | #if OPENSSL_VERSION_NUMBER < 0x10200000L\r | |
7c342378 | 299 | #define DEPRECATEDIN_1_2_0(f) f;\r |
b99917ce | 300 | #elif OPENSSL_API_COMPAT < 0x10200000L\r |
7c342378 | 301 | #define DEPRECATEDIN_1_2_0(f) DECLARE_DEPRECATED(f)\r |
b99917ce | 302 | #else\r |
7c342378 | 303 | #define DEPRECATEDIN_1_2_0(f)\r |
b99917ce ZG |
304 | #endif\r |
305 | \r | |
306 | #if OPENSSL_API_COMPAT < 0x10100000L\r | |
7c342378 | 307 | #define DEPRECATEDIN_1_1_0(f) DECLARE_DEPRECATED(f)\r |
b99917ce | 308 | #else\r |
7c342378 | 309 | #define DEPRECATEDIN_1_1_0(f)\r |
b99917ce ZG |
310 | #endif\r |
311 | \r | |
312 | #if OPENSSL_API_COMPAT < 0x10000000L\r | |
7c342378 | 313 | #define DEPRECATEDIN_1_0_0(f) DECLARE_DEPRECATED(f)\r |
b99917ce | 314 | #else\r |
7c342378 | 315 | #define DEPRECATEDIN_1_0_0(f)\r |
b99917ce ZG |
316 | #endif\r |
317 | \r | |
318 | #if OPENSSL_API_COMPAT < 0x00908000L\r | |
7c342378 | 319 | #define DEPRECATEDIN_0_9_8(f) DECLARE_DEPRECATED(f)\r |
b99917ce | 320 | #else\r |
7c342378 | 321 | #define DEPRECATEDIN_0_9_8(f)\r |
b99917ce ZG |
322 | #endif\r |
323 | \r | |
324 | /* Generate 80386 code? */\r | |
325 | #undef I386_ONLY\r | |
326 | \r | |
327 | #undef OPENSSL_UNISTD\r | |
7c342378 | 328 | #define OPENSSL_UNISTD <unistd.h>\r |
b99917ce ZG |
329 | \r |
330 | #undef OPENSSL_EXPORT_VAR_AS_FUNCTION\r | |
331 | \r | |
332 | /*\r | |
333 | * The following are cipher-specific, but are part of the public API.\r | |
334 | */\r | |
7c342378 MK |
335 | #if !defined (OPENSSL_SYS_UEFI)\r |
336 | #undef BN_LLONG\r | |
b99917ce | 337 | /* Only one for the following should be defined */\r |
7c342378 MK |
338 | #undef SIXTY_FOUR_BIT_LONG\r |
339 | #undef SIXTY_FOUR_BIT\r | |
340 | #define THIRTY_TWO_BIT\r | |
b99917ce ZG |
341 | #endif\r |
342 | \r | |
7c342378 | 343 | #define RC4_INT unsigned int\r |
b99917ce ZG |
344 | \r |
345 | #ifdef __cplusplus\r | |
346 | }\r | |
347 | #endif\r |