1--- opensslconf.h 2023-09-07 15:30:27.028144288 +0800 2+++ opensslconf3.h 2023-09-07 16:16:15.768149039 +0800 3@@ -7,11 +7,360 @@ 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/configuration.h> 16+#include <openssl/macros.h> 17+#include <openssl/opensslv.h> 18+#include <stdio.h> 19 20-#endif /* OPENSSL_OPENSSLCONF_H */ 21+#ifdef __cplusplus 22+extern "C" { 23+#endif 24+#define __NEED_ssize_t 25+ 26+#ifdef OPENSSL_ALGORITHM_DEFINES 27+# error OPENSSL_ALGORITHM_DEFINES no longer supported 28+#endif 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_SM2_ENVELOP 40+# define OPENSSL_NO_SM2_ENVELOP 41+#endif 42+#ifndef OPENSSL_NO_GMSM 43+# define OPENSSL_NO_GMSM 44+#endif 45+#ifndef OPENSSL_NO_GMTLS 46+# define OPENSSL_NO_GMTLS 47+#endif 48+#ifndef OPENSSL_NO_PKCS7_SM2 49+# define OPENSSL_NO_PKCS7_SM2 50+#endif 51+#ifndef OPENSSL_NO_PKCS8_SM2 52+# define OPENSSL_NO_PKCS8_SM2 53+#endif 54+#ifndef OPENSSL_NO_CMS_SM2 55+# define OPENSSL_NO_CMS_SM2 56+#endif 57+#ifndef OPENSSL_NO_SM9 58+# define OPENSSL_NO_SM9 59+#endif 60+#ifndef OPENSSL_NO_SM4_XTS 61+# define OPENSSL_NO_SM4_XTS 62+#endif 63+#ifndef OPENSSL_NO_SM4 64+# define OPENSSL_NO_SM4 65+#endif 66+#ifndef OPENSSL_NO_PQCHYBRID 67+# define OPENSSL_NO_PQCHYBRID 68+#endif 69+#ifndef OPENSSL_NO_PQC 70+# define OPENSSL_NO_PQC 71+#endif 72+#ifndef OPENSSL_NO_WAPI 73+# define OPENSSL_NO_WAPI 74+#endif 75+#ifndef OPENSSL_NO_CRL_MEMPOOL 76+# define OPENSSL_NO_CRL_MEMPOOL 77+#endif 78+#ifndef OPENSSL_NO_X509_REQ_EXP_ATTR 79+# define OPENSSL_NO_X509_REQ_EXP_ATTR 80+#endif 81+#ifndef OPENSSL_NO_NDCPP 82+# define OPENSSL_NO_NDCPP 83+#endif 84+#ifndef OPENSSL_NO_FIPS 85+# define OPENSSL_NO_FIPS 86+#endif 87+#ifndef CONFIG_CRYPTO_ISO19790_MODE 88+#ifndef OPENSSL_NO_CMVP 89+# define OPENSSL_NO_CMVP 90+#endif 91+#endif 92+#ifndef OPENSSL_RAND_SEED_HWENG 93+# define OPENSSL_RAND_SEED_HWENG 94+#endif 95+#ifdef OPENSSL_NO_MD2 96+# undef OPENSSL_NO_MD2 97+#endif 98+#ifndef OPENSSL_NO_RC5 99+# define OPENSSL_NO_RC5 100+#endif 101+#ifndef OPENSSL_NO_ASAN 102+# define OPENSSL_NO_ASAN 103+#endif 104+#ifndef OPENSSL_NO_CRYPTO_MDEBUG 105+# define OPENSSL_NO_CRYPTO_MDEBUG 106+#endif 107+#ifndef OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE 108+# define OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE 109+#endif 110+#ifndef OPENSSL_NO_DEVCRYPTOENG 111+# define OPENSSL_NO_DEVCRYPTOENG 112+#endif 113+#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128 114+# define OPENSSL_NO_EC_NISTP_64_GCC_128 115+#endif 116+#ifndef OPENSSL_NO_EGD 117+# define OPENSSL_NO_EGD 118+#endif 119+#ifndef OPENSSL_NO_EXTERNAL_TESTS 120+# define OPENSSL_NO_EXTERNAL_TESTS 121+#endif 122+#ifndef OPENSSL_NO_FUZZ_AFL 123+# define OPENSSL_NO_FUZZ_AFL 124+#endif 125+#ifndef OPENSSL_NO_FUZZ_LIBFUZZER 126+# define OPENSSL_NO_FUZZ_LIBFUZZER 127+#endif 128+#ifndef OPENSSL_NO_HEARTBEATS 129+# define OPENSSL_NO_HEARTBEATS 130+#endif 131+#ifndef OPENSSL_NO_MSAN 132+# define OPENSSL_NO_MSAN 133+#endif 134+#ifndef OPENSSL_NO_SCTP 135+# define OPENSSL_NO_SCTP 136+#endif 137+#ifndef OPENSSL_NO_SSL_TRACE 138+# define OPENSSL_NO_SSL_TRACE 139+#endif 140+#ifndef OPENSSL_NO_SSL3 141+# define OPENSSL_NO_SSL3 142+#endif 143+#ifndef OPENSSL_NO_SSL3_METHOD 144+# define OPENSSL_NO_SSL3_METHOD 145+#endif 146+#ifndef OPENSSL_NO_UBSAN 147+# define OPENSSL_NO_UBSAN 148+#endif 149+#ifndef OPENSSL_NO_UNIT_TEST 150+# define OPENSSL_NO_UNIT_TEST 151+#endif 152+#ifndef OPENSSL_NO_WEAK_SSL_CIPHERS 153+# define OPENSSL_NO_WEAK_SSL_CIPHERS 154+#endif 155+#ifndef OPENSSL_NO_STATIC_ENGINE 156+# define OPENSSL_NO_STATIC_ENGINE 157+#endif 158+ 159+#ifndef CRYPTO_SUPPORT_SOFT_ECC 160+#ifndef OPENSSL_NO_EC 161+#define OPENSSL_NO_EC 162+#endif 163+#ifndef OPENSSL_NO_ECDH 164+#define OPENSSL_NO_ECDH 165+#endif 166+#ifndef OPENSSL_NO_ECDSA 167+#define OPENSSL_NO_ECDSA 168+#endif 169+#ifndef OPENSSL_NO_TLS1_3 170+#define OPENSSL_NO_TLS1_3 171+#endif 172+#endif 173+#ifndef CRYPTO_SUPPORT_SOFT_SM2 174+#ifndef OPENSSL_NO_SM2 175+#define OPENSSL_NO_SM2 176+#endif 177+#endif 178+ 179+/* 180+ * Sometimes OPENSSSL_NO_xxx ends up with an empty file and some compilers 181+ * don't like that. This will hopefully silence them. 182+ */ 183+#define NON_EMPTY_TRANSLATION_UNIT static void *dummy = &dummy; 184+ 185+/* 186+ * Applications should use -DOPENSSL_API_COMPAT=<version> to suppress the 187+ * declarations of functions deprecated in or before <version>. Otherwise, they 188+ * still won't see them if the library has been built to disable deprecated 189+ * functions. 190+ */ 191+#ifndef DECLARE_DEPRECATED 192+# define DECLARE_DEPRECATED(f) f; 193+#endif 194+ 195+#ifndef OPENSSL_FILE 196+# ifdef OPENSSL_NO_FILENAMES 197+# define OPENSSL_FILE "" 198+# define OPENSSL_LINE 0 199+# else 200+# define OPENSSL_FILE __FILE__ 201+# define OPENSSL_LINE __LINE__ 202+# endif 203+#endif 204+ 205+#ifndef OPENSSL_MIN_API 206+# define OPENSSL_MIN_API 0x10100000L 207+#endif 208+ 209+#if !defined(OPENSSL_API_COMPAT) || OPENSSL_API_COMPAT < OPENSSL_MIN_API 210+# undef OPENSSL_API_COMPAT 211+# define OPENSSL_API_COMPAT OPENSSL_MIN_API 212+#endif 213+ 214+#define OPENSSL_SUPPRESS_DEPRECATED 215+ 216+#ifndef MODULESDIR 217+#define MODULESDIR "/usr/local/lib64/ossl-modules" 218+#endif 219+#ifndef OPENSSLDIR 220+#define OPENSSLDIR "/usr/local/ssl" 221+#endif 222+#ifndef DSO_NONE 223+#define DSO_NONE 224+#endif 225+/* 226+ * Do not deprecate things to be deprecated in version 1.2.0 before the 227+ * OpenSSL version number matches. 228+ */ 229+#if OPENSSL_VERSION_NUMBER < 0x10200000L 230+# define DEPRECATEDIN_1_2_0(f) f; 231+#elif OPENSSL_API_COMPAT < 0x10200000L 232+# define DEPRECATEDIN_1_2_0(f) DECLARE_DEPRECATED(f) 233+#else 234+# define DEPRECATEDIN_1_2_0(f) f; 235+#endif 236+ 237+#if OPENSSL_API_COMPAT < 0x10100000L 238+# define DEPRECATEDIN_1_1_0(f) DECLARE_DEPRECATED(f) 239+#else 240+# define DEPRECATEDIN_1_1_0(f) 241+#endif 242+ 243+#if OPENSSL_API_COMPAT < 0x10000000L 244+# define DEPRECATEDIN_1_0_0(f) DECLARE_DEPRECATED(f) 245+#else 246+# define DEPRECATEDIN_1_0_0(f) 247+#endif 248+ 249+#if OPENSSL_API_COMPAT < 0x00908000L 250+# define DEPRECATEDIN_0_9_8(f) DECLARE_DEPRECATED(f) 251+#else 252+# define DEPRECATEDIN_0_9_8(f) 253+#endif 254+ 255+/* Generate 80386 code */ 256+#undef I386_ONLY 257+ 258+#undef OPENSSL_UNISTD 259+#define OPENSSL_UNISTD <unistd.h> 260+ 261+#undef OPENSSL_EXPORT_VAR_AS_FUNCTION 262+ 263+/* 264+ * The following are cipher-specific, but are part of the public API. 265+ */ 266+# if defined(__arm) || defined(__arm__) 267+# define THIRTY_TWO_BIT 268+# undef SIXTY_FOUR_BIT_LONG 269+# undef SIXTY_FOUR_BIT 270+# elif defined(__aarch64__) 271+# undef SIXTY_FOUR_BIT_LONG 272+# undef THIRTY_TWO_BIT 273+# define SIXTY_FOUR_BIT 274+# endif 275+ 276+#ifndef __STDC_NO_ATOMICS__ 277+# define __STDC_NO_ATOMICS__ 278+#endif 279+#ifndef OPENSSL_NO_ENGINE 280+# define OPENSSL_NO_ENGINE 281+#endif 282+#ifndef OPENSSL_NO_POLY1305 283+# define OPENSSL_NO_POLY1305 284+#endif 285+#ifndef OPENSSL_NO_DSA 286+# define OPENSSL_NO_DSA 287+#endif 288+#ifndef OPENSSL_NO_SCRYPT 289+# define OPENSSL_NO_SCRYPT 290+#endif 291+#ifndef OPENSSL_NO_SIPHASH 292+# define OPENSSL_NO_SIPHASH 293+#endif 294+#ifndef OPENSSL_NO_CAMELLIA 295+# define OPENSSL_NO_CAMELLIA 296+#endif 297+#ifndef OPENSSL_NO_CHACHA 298+# define OPENSSL_NO_CHACHA 299+#endif 300+#ifndef OPENSSL_NO_RC4 301+# define OPENSSL_NO_RC4 302+#endif 303+#ifndef OPENSSL_NO_IDEA 304+# define OPENSSL_NO_IDEA 305+#endif 306+#ifndef OPENSSL_NO_RC2 307+# define OPENSSL_NO_RC2 308+#endif 309+#ifndef OPENSSL_NO_BF 310+# define OPENSSL_NO_BF 311+#endif 312+#ifndef OPENSSL_NO_CAST 313+# define OPENSSL_NO_CAST 314+#endif 315+#ifndef OPENSSL_USE_NODELETE 316+# define OPENSSL_USE_NODELETE 317+#endif 318+#ifndef OPENSSL_NO_COMP 319+# define OPENSSL_NO_COMP 320+#endif 321+#ifndef OPENSSL_NO_TS 322+# define OPENSSL_NO_TS 323+#endif 324+#ifndef OPENSSL_NO_OCSP 325+# define OPENSSL_NO_OCSP 326+#endif 327+#ifndef OPENSSL_NO_POSIX_IO 328+# define OPENSSL_NO_POSIX_IO 329+#endif 330+#ifndef OPENSSL_NO_STDIO 331+# define OPENSSL_NO_STDIO 332+#endif 333+#ifndef OPENSSL_NO_CT 334+# define OPENSSL_NO_CT 335+#endif 336+#ifndef CONFIG_OPENSSL_NO_ASM 337+#endif 338+#ifndef OPENSSL_NO_CMS 339+# define OPENSSL_NO_CMS 340+#endif 341+#ifndef OPENSSL_NO_ERR 342+# define OPENSSL_NO_ERR 343+#endif 344+#ifndef OPENSSL_NO_BLAKE2 345+# define OPENSSL_NO_BLAKE2 346+#endif 347+#ifndef OPENSSL_NO_ARIA 348+# define OPENSSL_NO_ARIA 349+#endif 350+#ifdef OPENSSL_NO_SEED 351+# undef OPENSSL_NO_SEED 352+#endif 353+#ifndef OPENSSL_NO_DGRAM 354+# define OPENSSL_NO_DGRAM 355+#endif 356+#ifndef OPENSSL_NO_SOCK 357+# define OPENSSL_NO_SOCK 358+#endif 359+#ifndef OPENSSL_NO_OCB 360+# define OPENSSL_NO_OCB 361+#endif 362+#ifndef OPENSSL_NO_DH 363+# define OPENSSL_NO_DH 364+#endif 365+ 366+#ifdef __cplusplus 367+} 368+#endif 369+#endif 370