/opt/cpanel/ea-nodejs20/include/node/openssl
/* In OpenSSL, opensslconf.h was generated by Configure script with specifying a target argument, where it includes several defines that depend on OS and architecture platform. In node, we statically mapped --dest-os and --dest-cpu options in configure to the target of Configure in OpenSSL and make `deps/openssl/conf/openssconf.h` so as to include each file according to its target by checking pre-defined compiler macros. Included opnesslconf.h files for supported target architectures can be generated by `Makefile` and stored under `archs/{target}/asm/opensslconf.h`. The Makefile also fixes several defines to meet node build requirements. Here is a map table of configure options in node, target arch of Configure in OpenSSL and CI support. | --dest-os | --dest-cpu | OpenSSL target arch | CI | | --------- | ---------- | -------------------- | --- | | aix | ppc | aix-gcc | o | | aix | ppc64 | aix64-gcc-as | o | | linux | ia32 | linux-elf | o | | linux | x32 | linux-x32 | - | | linux | x64 | linux-x86_64 | o | | linux | arm | linux-armv4 | o | | linux | arm64 | linux-aarch64 | o | | linux | ppc | linux-ppc | o | | linux | ppc64 | linux-ppc64 | o | | linux | ppc64 | linux-ppc64le | o | (node_byteoder: little) | linux | s390 | linux32-s390x | o | | linux | s390x | linux64-s390x | o | | mac | ia32 | darwin-i386-cc | - | | mac | x64 | darwin64-x86-cc | o | | mac | arm64 | darwin64-arm64-cc | - | | win | ia32 | VC-WIN32 | - | | win | x64 | VC-WIN64A | o | | solaris | ia32 | solaris-x86-gcc | o | | solaris | x64 | solaris64-x86_64-gcc | o | | freebsd | ia32 | BSD-x86 | - | | freebsd | x64 | BSD-x86_64 | o | | openbsd | ia32 | BSD-x86 | - | | openbsd | x64 | BSD-x86_64 | - | | others | others | linux-elf | - | --dest-os and --dest-cpu are mapped to pre-defined macros. | --dest-os | pre-defined macro | | ------------------ | ------------------------- | | aix | _AIX | | win | _WIN32 | | win(64bit) | _WIN64 | | mac | __APPLE__ && __MACH__ | | solaris | __sun | | freebsd | __FreeBSD__ | | openbsd | __OpenBSD__ | | linux (not andorid)| __linux__ && !__ANDROID__ | | android | __ANDROID__ | | --dest-cpu | pre-defined macro | | ---------- | ----------------- | | arm | __arm__ | | arm64 | __aarch64__ | | ia32 | __i386__ | | ia32(win) | _M_IX86 | | mips | __mips__ | | mipsel | __MIPSEL__ | | x32 | __ILP32__ | | x64 | __x86_64__ | | x64(win) | _M_X64 | | ppc | __PPC__ | | | _ARCH_PPC | | ppc64 | __PPC64__ | | | _ARCH_PPC64 | | s390 | __s390__ | | s390x | __s390x__ | These are the list which is not implemented yet. | --dest-os | --dest-cpu | OpenSSL target arch | CI | | --------- | ---------- | -------------------- | --- | | linux | mips | linux-mips32,linux-mips64,linux64-mips64? | --- | | linux | mipsel | ? | --- | | android | ia32 | android-x86 | --- | | android | arm | android-armv7 | --- | | android | mips | android-mips | --- | | android | mipsel | ? | --- | Supported target arch list in OpenSSL can be obtained by typing `deps/openssl/openssl/Configure LIST`. */ #if defined(OPENSSL_LINUX) && defined(__i386__) # include "./archs/linux-elf/asm/include/openssl/opensslconf.h" #elif defined(OPENSSL_LINUX) && defined(__x86_64__) # include "./archs/linux-x86_64/asm/include/openssl/opensslconf.h" #elif defined(OPENSSL_LINUX) && defined(__arm__) # include "./archs/linux-armv4/asm/include/openssl/opensslconf.h" #elif defined(OPENSSL_LINUX) && defined(__aarch64__) # include "./archs/linux-aarch64/asm/include/openssl/opensslconf.h" #elif defined(__APPLE__) && defined(__MACH__) && defined(__i386__) # include "./archs/darwin-i386-cc/asm/include/openssl/opensslconf.h" #elif defined(__APPLE__) && defined(__MACH__) && defined(__x86_64__) # include "./archs/darwin64-x86_64-cc/asm/include/openssl/opensslconf.h" #elif defined(__APPLE__) && defined(__MACH__) && defined(__arm64__) # include "./archs/darwin64-arm64-cc/asm/include/openssl/opensslconf.h" #elif defined(_WIN32) && defined(_M_IX86) # include "./archs/VC-WIN32/asm/include/openssl/opensslconf.h" #elif defined(_WIN32) && defined(_M_X64) # include "./archs/VC-WIN64A/asm/include/openssl/opensslconf.h" #elif (defined(__FreeBSD__) || defined(__OpenBSD__)) && defined(__i386__) # include "./archs/BSD-x86/asm/include/openssl/opensslconf.h" #elif (defined(__FreeBSD__) || defined(__OpenBSD__)) && defined(__x86_64__) # include "./archs/BSD-x86_64/asm/include/openssl/opensslconf.h" #elif defined(__sun) && defined(__i386__) # include "./archs/solaris-x86-gcc/asm/include/openssl/opensslconf.h" #elif defined(__sun) && defined(__x86_64__) # include "./archs/solaris64-x86_64-gcc/asm/include/openssl/opensslconf.h" #elif defined(OPENSSL_LINUX) && defined(__PPC64__) && defined(L_ENDIAN) # include "./archs/linux-ppc64le/asm/include/openssl/opensslconf.h" #elif defined(OPENSSL_LINUX) && defined(__PPC64__) # include "./archs/linux-ppc64/asm/include/openssl/opensslconf.h" #elif defined(OPENSSL_LINUX) && !defined(__PPC64__) && defined(__ppc__) # include "./archs/linux-ppc/asm/include/openssl/opensslconf.h" #elif defined(_AIX) && defined(_ARCH_PPC64) # include "./archs/aix64-gcc-as/asm/include/openssl/opensslconf.h" #elif defined(_AIX) && !defined(_ARCH_PPC64) && defined(_ARCH_PPC) # include "./archs/aix-gcc/asm/include/openssl/opensslconf.h" #elif defined(OPENSSL_LINUX) && defined(__s390x__) # include "./archs/linux64-s390x/asm/include/openssl/opensslconf.h" #elif defined(OPENSSL_LINUX) && defined(__s390__) # include "./archs/linux32-s390x/asm/include/openssl/opensslconf.h" #elif defined(OPENSSL_LINUX) && defined(__mips64) && defined(__MIPSEL__) # include "./archs/linux64-mips64/asm/include/openssl/opensslconf.h" #else # include "./archs/linux-elf/asm/include/openssl/opensslconf.h" #endif
.
Edit
..
Edit
aes.h
Edit
archs
Edit
asn1.h
Edit
asn1_asm.h
Edit
asn1_mac.h
Edit
asn1_no-asm.h
Edit
asn1err.h
Edit
asn1t.h
Edit
asn1t_asm.h
Edit
asn1t_no-asm.h
Edit
async.h
Edit
asyncerr.h
Edit
bio.h
Edit
bio_asm.h
Edit
bio_no-asm.h
Edit
bioerr.h
Edit
blowfish.h
Edit
bn.h
Edit
bn_conf.h
Edit
bn_conf_asm.h
Edit
bn_conf_no-asm.h
Edit
bnerr.h
Edit
buffer.h
Edit
buffererr.h
Edit
camellia.h
Edit
cast.h
Edit
cmac.h
Edit
cmp.h
Edit
cmp_asm.h
Edit
cmp_no-asm.h
Edit
cmp_util.h
Edit
cmperr.h
Edit
cms.h
Edit
cms_asm.h
Edit
cms_no-asm.h
Edit
cmserr.h
Edit
comp.h
Edit
comperr.h
Edit
conf.h
Edit
conf_api.h
Edit
conf_asm.h
Edit
conf_no-asm.h
Edit
conferr.h
Edit
configuration.h
Edit
configuration_asm.h
Edit
configuration_no-asm.h
Edit
conftypes.h
Edit
core.h
Edit
core_dispatch.h
Edit
core_names.h
Edit
core_object.h
Edit
crmf.h
Edit
crmf_asm.h
Edit
crmf_no-asm.h
Edit
crmferr.h
Edit
crypto.h
Edit
crypto_asm.h
Edit
crypto_no-asm.h
Edit
cryptoerr.h
Edit
cryptoerr_legacy.h
Edit
ct.h
Edit
ct_asm.h
Edit
ct_no-asm.h
Edit
cterr.h
Edit
decoder.h
Edit
decodererr.h
Edit
des.h
Edit
dh.h
Edit
dherr.h
Edit
dsa.h
Edit
dsaerr.h
Edit
dso_conf.h
Edit
dso_conf_asm.h
Edit
dso_conf_no-asm.h
Edit
dtls1.h
Edit
e_os2.h
Edit
ebcdic.h
Edit
ec.h
Edit
ecdh.h
Edit
ecdsa.h
Edit
ecerr.h
Edit
encoder.h
Edit
encodererr.h
Edit
engine.h
Edit
engineerr.h
Edit
err.h
Edit
err_asm.h
Edit
err_no-asm.h
Edit
ess.h
Edit
ess_asm.h
Edit
ess_no-asm.h
Edit
esserr.h
Edit
evp.h
Edit
evperr.h
Edit
fips_names.h
Edit
fipskey.h
Edit
fipskey_asm.h
Edit
fipskey_no-asm.h
Edit
hmac.h
Edit
http.h
Edit
httperr.h
Edit
idea.h
Edit
kdf.h
Edit
kdferr.h
Edit
lhash.h
Edit
lhash_asm.h
Edit
lhash_no-asm.h
Edit
macros.h
Edit
md2.h
Edit
md4.h
Edit
md5.h
Edit
mdc2.h
Edit
modes.h
Edit
obj_mac.h
Edit
objects.h
Edit
objectserr.h
Edit
ocsp.h
Edit
ocsp_asm.h
Edit
ocsp_no-asm.h
Edit
ocsperr.h
Edit
opensslconf.h
Edit
opensslconf_asm.h
Edit
opensslv.h
Edit
opensslv_asm.h
Edit
opensslv_no-asm.h
Edit
ossl_typ.h
Edit
param_build.h
Edit
params.h
Edit
pem.h
Edit
pem2.h
Edit
pemerr.h
Edit
pkcs12.h
Edit
pkcs12_asm.h
Edit
pkcs12_no-asm.h
Edit
pkcs12err.h
Edit
pkcs7.h
Edit
pkcs7_asm.h
Edit
pkcs7_no-asm.h
Edit
pkcs7err.h
Edit
prov_ssl.h
Edit
proverr.h
Edit
provider.h
Edit
rand.h
Edit
randerr.h
Edit
rc2.h
Edit
rc4.h
Edit
rc5.h
Edit
ripemd.h
Edit
rsa.h
Edit
rsaerr.h
Edit
safestack.h
Edit
safestack_asm.h
Edit
safestack_no-asm.h
Edit
seed.h
Edit
self_test.h
Edit
sha.h
Edit
srp.h
Edit
srp_asm.h
Edit
srp_no-asm.h
Edit
srtp.h
Edit
ssl.h
Edit
ssl2.h
Edit
ssl3.h
Edit
ssl_asm.h
Edit
ssl_no-asm.h
Edit
sslerr.h
Edit
sslerr_legacy.h
Edit
stack.h
Edit
store.h
Edit
storeerr.h
Edit
symhacks.h
Edit
tls1.h
Edit
trace.h
Edit
ts.h
Edit
tserr.h
Edit
txt_db.h
Edit
types.h
Edit
ui.h
Edit
ui_asm.h
Edit
ui_no-asm.h
Edit
uierr.h
Edit
whrlpool.h
Edit
x509.h
Edit
x509_asm.h
Edit
x509_no-asm.h
Edit
x509_vfy.h
Edit
x509_vfy_asm.h
Edit
x509_vfy_no-asm.h
Edit
x509err.h
Edit
x509v3.h
Edit
x509v3_asm.h
Edit
x509v3_no-asm.h
Edit
x509v3err.h
Edit