• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1--- opensslconf.h	2023-09-07 16:19:15.478138375 +0800
2+++ opensslconf1.h	2023-09-07 16:20:38.108136408 +0800
3@@ -7,11 +7,314 @@
4  * https://www.openssl.org/source/license.html
5  */
6
7-#ifndef OPENSSL_OPENSSLCONF_H
8-# define OPENSSL_OPENSSLCONF_H
9-# pragma once
10+#ifndef __TEE_OPENSSLCONF_H
11+#define __TEE_OPENSSLCONF_H
12
13-# include <openssl/configuration.h>
14-# include <openssl/macros.h>
15+#include <openssl/opensslv.h>
16
17-#endif  /* OPENSSL_OPENSSLCONF_H */
18+#ifdef  __cplusplus
19+extern "C" {
20+#endif
21+
22+#ifdef OPENSSL_ALGORITHM_DEFINES
23+# error OPENSSL_ALGORITHM_DEFINES no longer supported
24+#endif
25+
26+/*
27+ * OpenSSL was configured with the following options:
28+ */
29+
30+#ifdef linux
31+# undef linux
32+#endif
33+#ifdef __linux__
34+# undef __linux__
35+#endif
36+#ifndef OPENSSL_NO_PKCS12
37+# define OPENSSL_NO_PKCS12
38+#endif
39+#ifndef OPENSSL_NO_NDCPP
40+# define OPENSSL_NO_NDCPP
41+#endif
42+#ifndef OPENSSL_NO_FIPS
43+# define OPENSSL_NO_FIPS
44+#endif
45+#ifndef OPENSSL_NO_CMVP
46+# define OPENSSL_NO_CMVP
47+#endif
48+#ifndef OPENSSL_RAND_SEED_HWENG
49+# define OPENSSL_RAND_SEED_HWENG
50+#endif
51+#ifndef OPENSSL_NO_MD2
52+# define OPENSSL_NO_MD2
53+#endif
54+#ifndef OPENSSL_NO_RC5
55+# define OPENSSL_NO_RC5
56+#endif
57+#ifndef OPENSSL_NO_ASAN
58+# define OPENSSL_NO_ASAN
59+#endif
60+#ifndef OPENSSL_NO_CRYPTO_MDEBUG
61+# define OPENSSL_NO_CRYPTO_MDEBUG
62+#endif
63+#ifndef OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE
64+# define OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE
65+#endif
66+#ifndef OPENSSL_NO_DEVCRYPTOENG
67+# define OPENSSL_NO_DEVCRYPTOENG
68+#endif
69+#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
70+# define OPENSSL_NO_EC_NISTP_64_GCC_128
71+#endif
72+#ifndef OPENSSL_NO_EGD
73+# define OPENSSL_NO_EGD
74+#endif
75+#ifndef OPENSSL_NO_EXTERNAL_TESTS
76+# define OPENSSL_NO_EXTERNAL_TESTS
77+#endif
78+#ifndef OPENSSL_NO_FUZZ_AFL
79+# define OPENSSL_NO_FUZZ_AFL
80+#endif
81+#ifndef OPENSSL_NO_FUZZ_LIBFUZZER
82+# define OPENSSL_NO_FUZZ_LIBFUZZER
83+#endif
84+#ifndef OPENSSL_NO_HEARTBEATS
85+# define OPENSSL_NO_HEARTBEATS
86+#endif
87+#ifndef OPENSSL_NO_MSAN
88+# define OPENSSL_NO_MSAN
89+#endif
90+#ifndef OPENSSL_NO_SCTP
91+# define OPENSSL_NO_SCTP
92+#endif
93+#ifndef OPENSSL_NO_SSL_TRACE
94+# define OPENSSL_NO_SSL_TRACE
95+#endif
96+#ifndef OPENSSL_NO_SSL3
97+# define OPENSSL_NO_SSL3
98+#endif
99+#ifndef OPENSSL_NO_SSL3_METHOD
100+# define OPENSSL_NO_SSL3_METHOD
101+#endif
102+#ifndef OPENSSL_NO_UBSAN
103+# define OPENSSL_NO_UBSAN
104+#endif
105+#ifndef OPENSSL_NO_UNIT_TEST
106+# define OPENSSL_NO_UNIT_TEST
107+#endif
108+#ifndef OPENSSL_NO_WEAK_SSL_CIPHERS
109+# define OPENSSL_NO_WEAK_SSL_CIPHERS
110+#endif
111+#ifndef OPENSSL_NO_STATIC_ENGINE
112+# define OPENSSL_NO_STATIC_ENGINE
113+#endif
114+
115+
116+/*
117+ * Sometimes OPENSSSL_NO_xxx ends up with an empty file and some compilers
118+ * don't like that.  This will hopefully silence them.
119+ */
120+#define NON_EMPTY_TRANSLATION_UNIT static void *dummy = &dummy;
121+
122+/*
123+ * Applications should use -DOPENSSL_API_COMPAT=<version> to suppress the
124+ * declarations of functions deprecated in or before <version>. Otherwise, they
125+ * still won't see them if the library has been built to disable deprecated
126+ * functions.
127+ */
128+#ifndef DECLARE_DEPRECATED
129+# define DECLARE_DEPRECATED(f)   f;
130+#endif
131+
132+#ifndef OPENSSL_FILE
133+# ifdef OPENSSL_NO_FILENAMES
134+#  define OPENSSL_FILE ""
135+#  define OPENSSL_LINE 0
136+# else
137+#  define OPENSSL_FILE __FILE__
138+#  define OPENSSL_LINE __LINE__
139+# endif
140+#endif
141+
142+#ifndef OPENSSL_MIN_API
143+# define OPENSSL_MIN_API 0
144+#endif
145+
146+#if !defined(OPENSSL_API_COMPAT) || OPENSSL_API_COMPAT < OPENSSL_MIN_API
147+# undef OPENSSL_API_COMPAT
148+# define OPENSSL_API_COMPAT OPENSSL_MIN_API
149+#endif
150+
151+/*
152+ * Do not deprecate things to be deprecated in version 1.2.0 before the
153+ * OpenSSL version number matches.
154+ */
155+#if OPENSSL_VERSION_NUMBER < 0x10200000L
156+# define DEPRECATEDIN_1_2_0(f)   f;
157+#elif OPENSSL_API_COMPAT < 0x10200000L
158+# define DEPRECATEDIN_1_2_0(f)   DECLARE_DEPRECATED(f)
159+#else
160+# define DEPRECATEDIN_1_2_0(f) f;
161+#endif
162+
163+#if OPENSSL_API_COMPAT < 0x10100000L
164+# define DEPRECATEDIN_1_1_0(f)   DECLARE_DEPRECATED(f)
165+#else
166+# define DEPRECATEDIN_1_1_0(f)
167+#endif
168+
169+#if OPENSSL_API_COMPAT < 0x10000000L
170+# define DEPRECATEDIN_1_0_0(f)   DECLARE_DEPRECATED(f)
171+#else
172+# define DEPRECATEDIN_1_0_0(f)
173+#endif
174+
175+#if OPENSSL_API_COMPAT < 0x00908000L
176+# define DEPRECATEDIN_0_9_8(f)   DECLARE_DEPRECATED(f)
177+#else
178+# define DEPRECATEDIN_0_9_8(f)
179+#endif
180+
181+/* Generate 80386 code? */
182+#undef I386_ONLY
183+
184+#undef OPENSSL_UNISTD
185+#define OPENSSL_UNISTD <unistd.h>
186+
187+#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
188+
189+/*
190+ * The following are cipher-specific, but are part of the public API.
191+ */
192+#  if defined(__arm) || defined(__arm__)
193+#  define THIRTY_TWO_BIT
194+#  undef SIXTY_FOUR_BIT_LONG
195+#  undef SIXTY_FOUR_BIT
196+#  elif defined(__aarch64__)
197+#  undef SIXTY_FOUR_BIT_LONG
198+#  undef THIRTY_TWO_BIT
199+#  define SIXTY_FOUR_BIT
200+#  endif
201+#define RC4_INT unsigned int
202+
203+#ifndef __STDC_NO_ATOMICS__
204+# define __STDC_NO_ATOMICS__
205+#endif
206+#ifndef OPENSSL_NO_ENGINE
207+# define OPENSSL_NO_ENGINE
208+#endif
209+#ifndef OPENSSL_NO_POLY1305
210+# define OPENSSL_NO_POLY1305
211+#endif
212+#ifndef OPENSSL_NO_DSA
213+# define OPENSSL_NO_DSA
214+#endif
215+#ifndef OPENSSL_NO_SCRYPT
216+# define OPENSSL_NO_SCRYPT
217+#endif
218+#ifndef OPENSSL_NO_SIPHASH
219+# define OPENSSL_NO_SIPHASH
220+#endif
221+#ifndef OPENSSL_NO_CAMELLIA
222+# define OPENSSL_NO_CAMELLIA
223+#endif
224+#ifndef OPENSSL_NO_CHACHA
225+# define OPENSSL_NO_CHACHA
226+#endif
227+#ifndef OPENSSL_NO_RC4
228+# define OPENSSL_NO_RC4
229+#endif
230+#ifndef OPENSSL_NO_MD4
231+# define OPENSSL_NO_MD4
232+#endif
233+#ifndef OPENSSL_NO_IDEA
234+# define OPENSSL_NO_IDEA
235+#endif
236+#ifndef OPENSSL_NO_RC2
237+# define OPENSSL_NO_RC2
238+#endif
239+#ifndef OPENSSL_NO_BF
240+# define OPENSSL_NO_BF
241+#endif
242+#ifndef OPENSSL_NO_CAST
243+# define OPENSSL_NO_CAST
244+#endif
245+#ifndef OPENSSL_NO_MDC2
246+# define OPENSSL_NO_MDC2
247+#endif
248+#ifndef OPENSSL_NO_RMD160
249+# define OPENSSL_NO_RMD160
250+#endif
251+#ifndef OPENSSL_NO_WHIRLPOOL
252+# define OPENSSL_NO_WHIRLPOOL
253+#endif
254+#ifndef OPENSSL_USE_NODELETE
255+# define OPENSSL_USE_NODELETE
256+#endif
257+#ifndef OPENSSL_NO_COMP
258+# define OPENSSL_NO_COMP
259+#endif
260+#ifndef OPENSSL_NO_TS
261+# define OPENSSL_NO_TS
262+#endif
263+#ifndef OPENSSL_NO_OCSP
264+# define OPENSSL_NO_OCSP
265+#endif
266+#ifndef OPENSSL_NO_POSIX_IO
267+# define OPENSSL_NO_POSIX_IO
268+#endif
269+#ifndef OPENSSL_NO_STDIO
270+# define OPENSSL_NO_STDIO
271+#endif
272+#ifndef OPENSSL_NO_CT
273+# define OPENSSL_NO_CT
274+#endif
275+#ifndef CONFIG_OPENSSL_NO_ASM
276+#ifndef SHA1_ASM
277+# define SHA1_ASM
278+#endif
279+#ifndef SHA256_ASM
280+# define SHA256_ASM
281+#endif
282+#ifndef SHA512_ASM
283+# define SHA512_ASM
284+#endif
285+#ifndef ECP_NISTZ256_ASM
286+# define ECP_NISTZ256_ASM
287+#endif
288+#ifndef OPENSSL_BN_ASM_MONT
289+# define OPENSSL_BN_ASM_MONT
290+#endif
291+#endif
292+#ifndef OPENSSL_NO_CMS
293+# define OPENSSL_NO_CMS
294+#endif
295+#ifndef OPENSSL_NO_ERR
296+# define OPENSSL_NO_ERR
297+#endif
298+#ifndef OPENSSL_NO_BLAKE2
299+# define OPENSSL_NO_BLAKE2
300+#endif
301+#ifndef OPENSSL_NO_ARIA
302+# define OPENSSL_NO_ARIA
303+#endif
304+#ifndef OPENSSL_NO_SEED
305+# define OPENSSL_NO_SEED
306+#endif
307+#ifndef OPENSSL_NO_DGRAM
308+# define OPENSSL_NO_DGRAM
309+#endif
310+#ifndef OPENSSL_NO_SOCK
311+# define OPENSSL_NO_SOCK
312+#endif
313+#ifndef OPENSSL_NO_OCB
314+# define OPENSSL_NO_OCB
315+#endif
316+#ifndef OPENSSL_NO_DH
317+# define OPENSSL_NO_DH
318+#endif
319+
320+#ifdef  __cplusplus
321+}
322+#endif
323+#endif
324