Continuing trying to crunch android openssl sizes.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4738 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2024-01-06 21:33:20 +00:00
parent 32ebfa78cd
commit b73f5011cf
10 changed files with 267 additions and 5 deletions

View File

@ -37,6 +37,9 @@ extern "C" {
# ifndef OPENSSL_NO_AFALGENG # ifndef OPENSSL_NO_AFALGENG
# define OPENSSL_NO_AFALGENG # define OPENSSL_NO_AFALGENG
# endif # endif
# ifndef OPENSSL_NO_APPS
# define OPENSSL_NO_APPS
# endif
# ifndef OPENSSL_NO_ASAN # ifndef OPENSSL_NO_ASAN
# define OPENSSL_NO_ASAN # define OPENSSL_NO_ASAN
# endif # endif
@ -46,6 +49,9 @@ extern "C" {
# ifndef OPENSSL_NO_ASYNC # ifndef OPENSSL_NO_ASYNC
# define OPENSSL_NO_ASYNC # define OPENSSL_NO_ASYNC
# endif # endif
# ifndef OPENSSL_NO_AUTOERRINIT
# define OPENSSL_NO_AUTOERRINIT
# endif
# ifndef OPENSSL_NO_BROTLI # ifndef OPENSSL_NO_BROTLI
# define OPENSSL_NO_BROTLI # define OPENSSL_NO_BROTLI
# endif # endif
@ -55,9 +61,18 @@ extern "C" {
# ifndef OPENSSL_NO_CAPIENG # ifndef OPENSSL_NO_CAPIENG
# define OPENSSL_NO_CAPIENG # define OPENSSL_NO_CAPIENG
# endif # endif
# ifndef OPENSSL_NO_CMP
# define OPENSSL_NO_CMP
# endif
# ifndef OPENSSL_NO_CMS
# define OPENSSL_NO_CMS
# endif
# ifndef OPENSSL_NO_COMP # ifndef OPENSSL_NO_COMP
# define OPENSSL_NO_COMP # define OPENSSL_NO_COMP
# endif # endif
# ifndef OPENSSL_NO_CRMF
# define OPENSSL_NO_CRMF
# endif
# ifndef OPENSSL_NO_CRYPTO_MDEBUG # ifndef OPENSSL_NO_CRYPTO_MDEBUG
# define OPENSSL_NO_CRYPTO_MDEBUG # define OPENSSL_NO_CRYPTO_MDEBUG
# endif # endif
@ -67,12 +82,21 @@ extern "C" {
# ifndef OPENSSL_NO_DEFAULT_THREAD_POOL # ifndef OPENSSL_NO_DEFAULT_THREAD_POOL
# define OPENSSL_NO_DEFAULT_THREAD_POOL # define OPENSSL_NO_DEFAULT_THREAD_POOL
# endif # endif
# ifndef OPENSSL_NO_DEPRECATED
# define OPENSSL_NO_DEPRECATED
# endif
# ifndef OPENSSL_NO_DEVCRYPTOENG # ifndef OPENSSL_NO_DEVCRYPTOENG
# define OPENSSL_NO_DEVCRYPTOENG # define OPENSSL_NO_DEVCRYPTOENG
# endif # endif
# ifndef OPENSSL_NO_DGRAM # ifndef OPENSSL_NO_DGRAM
# define OPENSSL_NO_DGRAM # define OPENSSL_NO_DGRAM
# endif # endif
# ifndef OPENSSL_NO_DOCS
# define OPENSSL_NO_DOCS
# endif
# ifndef OPENSSL_NO_DSA
# define OPENSSL_NO_DSA
# endif
# ifndef OPENSSL_NO_DSO # ifndef OPENSSL_NO_DSO
# define OPENSSL_NO_DSO # define OPENSSL_NO_DSO
# endif # endif
@ -85,6 +109,9 @@ extern "C" {
# ifndef OPENSSL_NO_DTLS1_2 # ifndef OPENSSL_NO_DTLS1_2
# define OPENSSL_NO_DTLS1_2 # define OPENSSL_NO_DTLS1_2
# endif # endif
# ifndef OPENSSL_NO_EC2M
# define OPENSSL_NO_EC2M
# endif
# ifndef OPENSSL_NO_EC_NISTP_64_GCC_128 # ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
# define OPENSSL_NO_EC_NISTP_64_GCC_128 # define OPENSSL_NO_EC_NISTP_64_GCC_128
# endif # endif
@ -94,6 +121,9 @@ extern "C" {
# ifndef OPENSSL_NO_ENGINE # ifndef OPENSSL_NO_ENGINE
# define OPENSSL_NO_ENGINE # define OPENSSL_NO_ENGINE
# endif # endif
# ifndef OPENSSL_NO_ERR
# define OPENSSL_NO_ERR
# endif
# ifndef OPENSSL_NO_EXTERNAL_TESTS # ifndef OPENSSL_NO_EXTERNAL_TESTS
# define OPENSSL_NO_EXTERNAL_TESTS # define OPENSSL_NO_EXTERNAL_TESTS
# endif # endif
@ -109,6 +139,12 @@ extern "C" {
# ifndef OPENSSL_NO_FUZZ_LIBFUZZER # ifndef OPENSSL_NO_FUZZ_LIBFUZZER
# define OPENSSL_NO_FUZZ_LIBFUZZER # define OPENSSL_NO_FUZZ_LIBFUZZER
# endif # endif
# ifndef OPENSSL_NO_GOST
# define OPENSSL_NO_GOST
# endif
# ifndef OPENSSL_NO_HTTP
# define OPENSSL_NO_HTTP
# endif
# ifndef OPENSSL_NO_IDEA # ifndef OPENSSL_NO_IDEA
# define OPENSSL_NO_IDEA # define OPENSSL_NO_IDEA
# endif # endif
@ -130,6 +166,12 @@ extern "C" {
# ifndef OPENSSL_NO_MULTIBLOCK # ifndef OPENSSL_NO_MULTIBLOCK
# define OPENSSL_NO_MULTIBLOCK # define OPENSSL_NO_MULTIBLOCK
# endif # endif
# ifndef OPENSSL_NO_NEXTPROTONEG
# define OPENSSL_NO_NEXTPROTONEG
# endif
# ifndef OPENSSL_NO_OCSP
# define OPENSSL_NO_OCSP
# endif
# ifndef OPENSSL_NO_PADLOCKENG # ifndef OPENSSL_NO_PADLOCKENG
# define OPENSSL_NO_PADLOCKENG # define OPENSSL_NO_PADLOCKENG
# endif # endif
@ -145,15 +187,24 @@ extern "C" {
# ifndef OPENSSL_NO_SCTP # ifndef OPENSSL_NO_SCTP
# define OPENSSL_NO_SCTP # define OPENSSL_NO_SCTP
# endif # endif
# ifndef OPENSSL_NO_SOCK
# define OPENSSL_NO_SOCK
# endif
# ifndef OPENSSL_NO_SRP # ifndef OPENSSL_NO_SRP
# define OPENSSL_NO_SRP # define OPENSSL_NO_SRP
# endif # endif
# ifndef OPENSSL_NO_SSL_TRACE
# define OPENSSL_NO_SSL_TRACE
# endif
# ifndef OPENSSL_NO_SSL3 # ifndef OPENSSL_NO_SSL3
# define OPENSSL_NO_SSL3 # define OPENSSL_NO_SSL3
# endif # endif
# ifndef OPENSSL_NO_SSL3_METHOD # ifndef OPENSSL_NO_SSL3_METHOD
# define OPENSSL_NO_SSL3_METHOD # define OPENSSL_NO_SSL3_METHOD
# endif # endif
# ifndef OPENSSL_NO_STDIO
# define OPENSSL_NO_STDIO
# endif
# ifndef OPENSSL_NO_TESTS # ifndef OPENSSL_NO_TESTS
# define OPENSSL_NO_TESTS # define OPENSSL_NO_TESTS
# endif # endif
@ -169,6 +220,9 @@ extern "C" {
# ifndef OPENSSL_NO_UBSAN # ifndef OPENSSL_NO_UBSAN
# define OPENSSL_NO_UBSAN # define OPENSSL_NO_UBSAN
# endif # endif
# ifndef OPENSSL_NO_UI_CONSOLE
# define OPENSSL_NO_UI_CONSOLE
# endif
# ifndef OPENSSL_NO_UNIT_TEST # ifndef OPENSSL_NO_UNIT_TEST
# define OPENSSL_NO_UNIT_TEST # define OPENSSL_NO_UNIT_TEST
# endif # endif

View File

@ -37,6 +37,9 @@ extern "C" {
# ifndef OPENSSL_NO_AFALGENG # ifndef OPENSSL_NO_AFALGENG
# define OPENSSL_NO_AFALGENG # define OPENSSL_NO_AFALGENG
# endif # endif
# ifndef OPENSSL_NO_APPS
# define OPENSSL_NO_APPS
# endif
# ifndef OPENSSL_NO_ASAN # ifndef OPENSSL_NO_ASAN
# define OPENSSL_NO_ASAN # define OPENSSL_NO_ASAN
# endif # endif
@ -46,6 +49,9 @@ extern "C" {
# ifndef OPENSSL_NO_ASYNC # ifndef OPENSSL_NO_ASYNC
# define OPENSSL_NO_ASYNC # define OPENSSL_NO_ASYNC
# endif # endif
# ifndef OPENSSL_NO_AUTOERRINIT
# define OPENSSL_NO_AUTOERRINIT
# endif
# ifndef OPENSSL_NO_BROTLI # ifndef OPENSSL_NO_BROTLI
# define OPENSSL_NO_BROTLI # define OPENSSL_NO_BROTLI
# endif # endif
@ -55,9 +61,18 @@ extern "C" {
# ifndef OPENSSL_NO_CAPIENG # ifndef OPENSSL_NO_CAPIENG
# define OPENSSL_NO_CAPIENG # define OPENSSL_NO_CAPIENG
# endif # endif
# ifndef OPENSSL_NO_CMP
# define OPENSSL_NO_CMP
# endif
# ifndef OPENSSL_NO_CMS
# define OPENSSL_NO_CMS
# endif
# ifndef OPENSSL_NO_COMP # ifndef OPENSSL_NO_COMP
# define OPENSSL_NO_COMP # define OPENSSL_NO_COMP
# endif # endif
# ifndef OPENSSL_NO_CRMF
# define OPENSSL_NO_CRMF
# endif
# ifndef OPENSSL_NO_CRYPTO_MDEBUG # ifndef OPENSSL_NO_CRYPTO_MDEBUG
# define OPENSSL_NO_CRYPTO_MDEBUG # define OPENSSL_NO_CRYPTO_MDEBUG
# endif # endif
@ -67,12 +82,21 @@ extern "C" {
# ifndef OPENSSL_NO_DEFAULT_THREAD_POOL # ifndef OPENSSL_NO_DEFAULT_THREAD_POOL
# define OPENSSL_NO_DEFAULT_THREAD_POOL # define OPENSSL_NO_DEFAULT_THREAD_POOL
# endif # endif
# ifndef OPENSSL_NO_DEPRECATED
# define OPENSSL_NO_DEPRECATED
# endif
# ifndef OPENSSL_NO_DEVCRYPTOENG # ifndef OPENSSL_NO_DEVCRYPTOENG
# define OPENSSL_NO_DEVCRYPTOENG # define OPENSSL_NO_DEVCRYPTOENG
# endif # endif
# ifndef OPENSSL_NO_DGRAM # ifndef OPENSSL_NO_DGRAM
# define OPENSSL_NO_DGRAM # define OPENSSL_NO_DGRAM
# endif # endif
# ifndef OPENSSL_NO_DOCS
# define OPENSSL_NO_DOCS
# endif
# ifndef OPENSSL_NO_DSA
# define OPENSSL_NO_DSA
# endif
# ifndef OPENSSL_NO_DSO # ifndef OPENSSL_NO_DSO
# define OPENSSL_NO_DSO # define OPENSSL_NO_DSO
# endif # endif
@ -85,6 +109,9 @@ extern "C" {
# ifndef OPENSSL_NO_DTLS1_2 # ifndef OPENSSL_NO_DTLS1_2
# define OPENSSL_NO_DTLS1_2 # define OPENSSL_NO_DTLS1_2
# endif # endif
# ifndef OPENSSL_NO_EC2M
# define OPENSSL_NO_EC2M
# endif
# ifndef OPENSSL_NO_EC_NISTP_64_GCC_128 # ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
# define OPENSSL_NO_EC_NISTP_64_GCC_128 # define OPENSSL_NO_EC_NISTP_64_GCC_128
# endif # endif
@ -94,6 +121,9 @@ extern "C" {
# ifndef OPENSSL_NO_ENGINE # ifndef OPENSSL_NO_ENGINE
# define OPENSSL_NO_ENGINE # define OPENSSL_NO_ENGINE
# endif # endif
# ifndef OPENSSL_NO_ERR
# define OPENSSL_NO_ERR
# endif
# ifndef OPENSSL_NO_EXTERNAL_TESTS # ifndef OPENSSL_NO_EXTERNAL_TESTS
# define OPENSSL_NO_EXTERNAL_TESTS # define OPENSSL_NO_EXTERNAL_TESTS
# endif # endif
@ -109,6 +139,12 @@ extern "C" {
# ifndef OPENSSL_NO_FUZZ_LIBFUZZER # ifndef OPENSSL_NO_FUZZ_LIBFUZZER
# define OPENSSL_NO_FUZZ_LIBFUZZER # define OPENSSL_NO_FUZZ_LIBFUZZER
# endif # endif
# ifndef OPENSSL_NO_GOST
# define OPENSSL_NO_GOST
# endif
# ifndef OPENSSL_NO_HTTP
# define OPENSSL_NO_HTTP
# endif
# ifndef OPENSSL_NO_IDEA # ifndef OPENSSL_NO_IDEA
# define OPENSSL_NO_IDEA # define OPENSSL_NO_IDEA
# endif # endif
@ -130,6 +166,12 @@ extern "C" {
# ifndef OPENSSL_NO_MULTIBLOCK # ifndef OPENSSL_NO_MULTIBLOCK
# define OPENSSL_NO_MULTIBLOCK # define OPENSSL_NO_MULTIBLOCK
# endif # endif
# ifndef OPENSSL_NO_NEXTPROTONEG
# define OPENSSL_NO_NEXTPROTONEG
# endif
# ifndef OPENSSL_NO_OCSP
# define OPENSSL_NO_OCSP
# endif
# ifndef OPENSSL_NO_PADLOCKENG # ifndef OPENSSL_NO_PADLOCKENG
# define OPENSSL_NO_PADLOCKENG # define OPENSSL_NO_PADLOCKENG
# endif # endif
@ -145,15 +187,24 @@ extern "C" {
# ifndef OPENSSL_NO_SCTP # ifndef OPENSSL_NO_SCTP
# define OPENSSL_NO_SCTP # define OPENSSL_NO_SCTP
# endif # endif
# ifndef OPENSSL_NO_SOCK
# define OPENSSL_NO_SOCK
# endif
# ifndef OPENSSL_NO_SRP # ifndef OPENSSL_NO_SRP
# define OPENSSL_NO_SRP # define OPENSSL_NO_SRP
# endif # endif
# ifndef OPENSSL_NO_SSL_TRACE
# define OPENSSL_NO_SSL_TRACE
# endif
# ifndef OPENSSL_NO_SSL3 # ifndef OPENSSL_NO_SSL3
# define OPENSSL_NO_SSL3 # define OPENSSL_NO_SSL3
# endif # endif
# ifndef OPENSSL_NO_SSL3_METHOD # ifndef OPENSSL_NO_SSL3_METHOD
# define OPENSSL_NO_SSL3_METHOD # define OPENSSL_NO_SSL3_METHOD
# endif # endif
# ifndef OPENSSL_NO_STDIO
# define OPENSSL_NO_STDIO
# endif
# ifndef OPENSSL_NO_TESTS # ifndef OPENSSL_NO_TESTS
# define OPENSSL_NO_TESTS # define OPENSSL_NO_TESTS
# endif # endif
@ -169,6 +220,9 @@ extern "C" {
# ifndef OPENSSL_NO_UBSAN # ifndef OPENSSL_NO_UBSAN
# define OPENSSL_NO_UBSAN # define OPENSSL_NO_UBSAN
# endif # endif
# ifndef OPENSSL_NO_UI_CONSOLE
# define OPENSSL_NO_UI_CONSOLE
# endif
# ifndef OPENSSL_NO_UNIT_TEST # ifndef OPENSSL_NO_UNIT_TEST
# define OPENSSL_NO_UNIT_TEST # define OPENSSL_NO_UNIT_TEST
# endif # endif

View File

@ -37,6 +37,9 @@ extern "C" {
# ifndef OPENSSL_NO_AFALGENG # ifndef OPENSSL_NO_AFALGENG
# define OPENSSL_NO_AFALGENG # define OPENSSL_NO_AFALGENG
# endif # endif
# ifndef OPENSSL_NO_APPS
# define OPENSSL_NO_APPS
# endif
# ifndef OPENSSL_NO_ASAN # ifndef OPENSSL_NO_ASAN
# define OPENSSL_NO_ASAN # define OPENSSL_NO_ASAN
# endif # endif
@ -46,6 +49,9 @@ extern "C" {
# ifndef OPENSSL_NO_ASYNC # ifndef OPENSSL_NO_ASYNC
# define OPENSSL_NO_ASYNC # define OPENSSL_NO_ASYNC
# endif # endif
# ifndef OPENSSL_NO_AUTOERRINIT
# define OPENSSL_NO_AUTOERRINIT
# endif
# ifndef OPENSSL_NO_BROTLI # ifndef OPENSSL_NO_BROTLI
# define OPENSSL_NO_BROTLI # define OPENSSL_NO_BROTLI
# endif # endif
@ -55,9 +61,18 @@ extern "C" {
# ifndef OPENSSL_NO_CAPIENG # ifndef OPENSSL_NO_CAPIENG
# define OPENSSL_NO_CAPIENG # define OPENSSL_NO_CAPIENG
# endif # endif
# ifndef OPENSSL_NO_CMP
# define OPENSSL_NO_CMP
# endif
# ifndef OPENSSL_NO_CMS
# define OPENSSL_NO_CMS
# endif
# ifndef OPENSSL_NO_COMP # ifndef OPENSSL_NO_COMP
# define OPENSSL_NO_COMP # define OPENSSL_NO_COMP
# endif # endif
# ifndef OPENSSL_NO_CRMF
# define OPENSSL_NO_CRMF
# endif
# ifndef OPENSSL_NO_CRYPTO_MDEBUG # ifndef OPENSSL_NO_CRYPTO_MDEBUG
# define OPENSSL_NO_CRYPTO_MDEBUG # define OPENSSL_NO_CRYPTO_MDEBUG
# endif # endif
@ -67,12 +82,21 @@ extern "C" {
# ifndef OPENSSL_NO_DEFAULT_THREAD_POOL # ifndef OPENSSL_NO_DEFAULT_THREAD_POOL
# define OPENSSL_NO_DEFAULT_THREAD_POOL # define OPENSSL_NO_DEFAULT_THREAD_POOL
# endif # endif
# ifndef OPENSSL_NO_DEPRECATED
# define OPENSSL_NO_DEPRECATED
# endif
# ifndef OPENSSL_NO_DEVCRYPTOENG # ifndef OPENSSL_NO_DEVCRYPTOENG
# define OPENSSL_NO_DEVCRYPTOENG # define OPENSSL_NO_DEVCRYPTOENG
# endif # endif
# ifndef OPENSSL_NO_DGRAM # ifndef OPENSSL_NO_DGRAM
# define OPENSSL_NO_DGRAM # define OPENSSL_NO_DGRAM
# endif # endif
# ifndef OPENSSL_NO_DOCS
# define OPENSSL_NO_DOCS
# endif
# ifndef OPENSSL_NO_DSA
# define OPENSSL_NO_DSA
# endif
# ifndef OPENSSL_NO_DSO # ifndef OPENSSL_NO_DSO
# define OPENSSL_NO_DSO # define OPENSSL_NO_DSO
# endif # endif
@ -85,6 +109,9 @@ extern "C" {
# ifndef OPENSSL_NO_DTLS1_2 # ifndef OPENSSL_NO_DTLS1_2
# define OPENSSL_NO_DTLS1_2 # define OPENSSL_NO_DTLS1_2
# endif # endif
# ifndef OPENSSL_NO_EC2M
# define OPENSSL_NO_EC2M
# endif
# ifndef OPENSSL_NO_EC_NISTP_64_GCC_128 # ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
# define OPENSSL_NO_EC_NISTP_64_GCC_128 # define OPENSSL_NO_EC_NISTP_64_GCC_128
# endif # endif
@ -94,6 +121,9 @@ extern "C" {
# ifndef OPENSSL_NO_ENGINE # ifndef OPENSSL_NO_ENGINE
# define OPENSSL_NO_ENGINE # define OPENSSL_NO_ENGINE
# endif # endif
# ifndef OPENSSL_NO_ERR
# define OPENSSL_NO_ERR
# endif
# ifndef OPENSSL_NO_EXTERNAL_TESTS # ifndef OPENSSL_NO_EXTERNAL_TESTS
# define OPENSSL_NO_EXTERNAL_TESTS # define OPENSSL_NO_EXTERNAL_TESTS
# endif # endif
@ -109,6 +139,12 @@ extern "C" {
# ifndef OPENSSL_NO_FUZZ_LIBFUZZER # ifndef OPENSSL_NO_FUZZ_LIBFUZZER
# define OPENSSL_NO_FUZZ_LIBFUZZER # define OPENSSL_NO_FUZZ_LIBFUZZER
# endif # endif
# ifndef OPENSSL_NO_GOST
# define OPENSSL_NO_GOST
# endif
# ifndef OPENSSL_NO_HTTP
# define OPENSSL_NO_HTTP
# endif
# ifndef OPENSSL_NO_IDEA # ifndef OPENSSL_NO_IDEA
# define OPENSSL_NO_IDEA # define OPENSSL_NO_IDEA
# endif # endif
@ -130,6 +166,12 @@ extern "C" {
# ifndef OPENSSL_NO_MULTIBLOCK # ifndef OPENSSL_NO_MULTIBLOCK
# define OPENSSL_NO_MULTIBLOCK # define OPENSSL_NO_MULTIBLOCK
# endif # endif
# ifndef OPENSSL_NO_NEXTPROTONEG
# define OPENSSL_NO_NEXTPROTONEG
# endif
# ifndef OPENSSL_NO_OCSP
# define OPENSSL_NO_OCSP
# endif
# ifndef OPENSSL_NO_PADLOCKENG # ifndef OPENSSL_NO_PADLOCKENG
# define OPENSSL_NO_PADLOCKENG # define OPENSSL_NO_PADLOCKENG
# endif # endif
@ -145,15 +187,24 @@ extern "C" {
# ifndef OPENSSL_NO_SCTP # ifndef OPENSSL_NO_SCTP
# define OPENSSL_NO_SCTP # define OPENSSL_NO_SCTP
# endif # endif
# ifndef OPENSSL_NO_SOCK
# define OPENSSL_NO_SOCK
# endif
# ifndef OPENSSL_NO_SRP # ifndef OPENSSL_NO_SRP
# define OPENSSL_NO_SRP # define OPENSSL_NO_SRP
# endif # endif
# ifndef OPENSSL_NO_SSL_TRACE
# define OPENSSL_NO_SSL_TRACE
# endif
# ifndef OPENSSL_NO_SSL3 # ifndef OPENSSL_NO_SSL3
# define OPENSSL_NO_SSL3 # define OPENSSL_NO_SSL3
# endif # endif
# ifndef OPENSSL_NO_SSL3_METHOD # ifndef OPENSSL_NO_SSL3_METHOD
# define OPENSSL_NO_SSL3_METHOD # define OPENSSL_NO_SSL3_METHOD
# endif # endif
# ifndef OPENSSL_NO_STDIO
# define OPENSSL_NO_STDIO
# endif
# ifndef OPENSSL_NO_TESTS # ifndef OPENSSL_NO_TESTS
# define OPENSSL_NO_TESTS # define OPENSSL_NO_TESTS
# endif # endif
@ -169,6 +220,9 @@ extern "C" {
# ifndef OPENSSL_NO_UBSAN # ifndef OPENSSL_NO_UBSAN
# define OPENSSL_NO_UBSAN # define OPENSSL_NO_UBSAN
# endif # endif
# ifndef OPENSSL_NO_UI_CONSOLE
# define OPENSSL_NO_UI_CONSOLE
# endif
# ifndef OPENSSL_NO_UNIT_TEST # ifndef OPENSSL_NO_UNIT_TEST
# define OPENSSL_NO_UNIT_TEST # define OPENSSL_NO_UNIT_TEST
# endif # endif

View File

@ -37,6 +37,9 @@ extern "C" {
# ifndef OPENSSL_NO_AFALGENG # ifndef OPENSSL_NO_AFALGENG
# define OPENSSL_NO_AFALGENG # define OPENSSL_NO_AFALGENG
# endif # endif
# ifndef OPENSSL_NO_APPS
# define OPENSSL_NO_APPS
# endif
# ifndef OPENSSL_NO_ASAN # ifndef OPENSSL_NO_ASAN
# define OPENSSL_NO_ASAN # define OPENSSL_NO_ASAN
# endif # endif
@ -46,6 +49,9 @@ extern "C" {
# ifndef OPENSSL_NO_ASYNC # ifndef OPENSSL_NO_ASYNC
# define OPENSSL_NO_ASYNC # define OPENSSL_NO_ASYNC
# endif # endif
# ifndef OPENSSL_NO_AUTOERRINIT
# define OPENSSL_NO_AUTOERRINIT
# endif
# ifndef OPENSSL_NO_BROTLI # ifndef OPENSSL_NO_BROTLI
# define OPENSSL_NO_BROTLI # define OPENSSL_NO_BROTLI
# endif # endif
@ -55,9 +61,18 @@ extern "C" {
# ifndef OPENSSL_NO_CAPIENG # ifndef OPENSSL_NO_CAPIENG
# define OPENSSL_NO_CAPIENG # define OPENSSL_NO_CAPIENG
# endif # endif
# ifndef OPENSSL_NO_CMP
# define OPENSSL_NO_CMP
# endif
# ifndef OPENSSL_NO_CMS
# define OPENSSL_NO_CMS
# endif
# ifndef OPENSSL_NO_COMP # ifndef OPENSSL_NO_COMP
# define OPENSSL_NO_COMP # define OPENSSL_NO_COMP
# endif # endif
# ifndef OPENSSL_NO_CRMF
# define OPENSSL_NO_CRMF
# endif
# ifndef OPENSSL_NO_CRYPTO_MDEBUG # ifndef OPENSSL_NO_CRYPTO_MDEBUG
# define OPENSSL_NO_CRYPTO_MDEBUG # define OPENSSL_NO_CRYPTO_MDEBUG
# endif # endif
@ -67,12 +82,21 @@ extern "C" {
# ifndef OPENSSL_NO_DEFAULT_THREAD_POOL # ifndef OPENSSL_NO_DEFAULT_THREAD_POOL
# define OPENSSL_NO_DEFAULT_THREAD_POOL # define OPENSSL_NO_DEFAULT_THREAD_POOL
# endif # endif
# ifndef OPENSSL_NO_DEPRECATED
# define OPENSSL_NO_DEPRECATED
# endif
# ifndef OPENSSL_NO_DEVCRYPTOENG # ifndef OPENSSL_NO_DEVCRYPTOENG
# define OPENSSL_NO_DEVCRYPTOENG # define OPENSSL_NO_DEVCRYPTOENG
# endif # endif
# ifndef OPENSSL_NO_DGRAM # ifndef OPENSSL_NO_DGRAM
# define OPENSSL_NO_DGRAM # define OPENSSL_NO_DGRAM
# endif # endif
# ifndef OPENSSL_NO_DOCS
# define OPENSSL_NO_DOCS
# endif
# ifndef OPENSSL_NO_DSA
# define OPENSSL_NO_DSA
# endif
# ifndef OPENSSL_NO_DSO # ifndef OPENSSL_NO_DSO
# define OPENSSL_NO_DSO # define OPENSSL_NO_DSO
# endif # endif
@ -85,6 +109,9 @@ extern "C" {
# ifndef OPENSSL_NO_DTLS1_2 # ifndef OPENSSL_NO_DTLS1_2
# define OPENSSL_NO_DTLS1_2 # define OPENSSL_NO_DTLS1_2
# endif # endif
# ifndef OPENSSL_NO_EC2M
# define OPENSSL_NO_EC2M
# endif
# ifndef OPENSSL_NO_EC_NISTP_64_GCC_128 # ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
# define OPENSSL_NO_EC_NISTP_64_GCC_128 # define OPENSSL_NO_EC_NISTP_64_GCC_128
# endif # endif
@ -94,6 +121,9 @@ extern "C" {
# ifndef OPENSSL_NO_ENGINE # ifndef OPENSSL_NO_ENGINE
# define OPENSSL_NO_ENGINE # define OPENSSL_NO_ENGINE
# endif # endif
# ifndef OPENSSL_NO_ERR
# define OPENSSL_NO_ERR
# endif
# ifndef OPENSSL_NO_EXTERNAL_TESTS # ifndef OPENSSL_NO_EXTERNAL_TESTS
# define OPENSSL_NO_EXTERNAL_TESTS # define OPENSSL_NO_EXTERNAL_TESTS
# endif # endif
@ -109,6 +139,12 @@ extern "C" {
# ifndef OPENSSL_NO_FUZZ_LIBFUZZER # ifndef OPENSSL_NO_FUZZ_LIBFUZZER
# define OPENSSL_NO_FUZZ_LIBFUZZER # define OPENSSL_NO_FUZZ_LIBFUZZER
# endif # endif
# ifndef OPENSSL_NO_GOST
# define OPENSSL_NO_GOST
# endif
# ifndef OPENSSL_NO_HTTP
# define OPENSSL_NO_HTTP
# endif
# ifndef OPENSSL_NO_IDEA # ifndef OPENSSL_NO_IDEA
# define OPENSSL_NO_IDEA # define OPENSSL_NO_IDEA
# endif # endif
@ -130,6 +166,12 @@ extern "C" {
# ifndef OPENSSL_NO_MULTIBLOCK # ifndef OPENSSL_NO_MULTIBLOCK
# define OPENSSL_NO_MULTIBLOCK # define OPENSSL_NO_MULTIBLOCK
# endif # endif
# ifndef OPENSSL_NO_NEXTPROTONEG
# define OPENSSL_NO_NEXTPROTONEG
# endif
# ifndef OPENSSL_NO_OCSP
# define OPENSSL_NO_OCSP
# endif
# ifndef OPENSSL_NO_PADLOCKENG # ifndef OPENSSL_NO_PADLOCKENG
# define OPENSSL_NO_PADLOCKENG # define OPENSSL_NO_PADLOCKENG
# endif # endif
@ -145,15 +187,24 @@ extern "C" {
# ifndef OPENSSL_NO_SCTP # ifndef OPENSSL_NO_SCTP
# define OPENSSL_NO_SCTP # define OPENSSL_NO_SCTP
# endif # endif
# ifndef OPENSSL_NO_SOCK
# define OPENSSL_NO_SOCK
# endif
# ifndef OPENSSL_NO_SRP # ifndef OPENSSL_NO_SRP
# define OPENSSL_NO_SRP # define OPENSSL_NO_SRP
# endif # endif
# ifndef OPENSSL_NO_SSL_TRACE
# define OPENSSL_NO_SSL_TRACE
# endif
# ifndef OPENSSL_NO_SSL3 # ifndef OPENSSL_NO_SSL3
# define OPENSSL_NO_SSL3 # define OPENSSL_NO_SSL3
# endif # endif
# ifndef OPENSSL_NO_SSL3_METHOD # ifndef OPENSSL_NO_SSL3_METHOD
# define OPENSSL_NO_SSL3_METHOD # define OPENSSL_NO_SSL3_METHOD
# endif # endif
# ifndef OPENSSL_NO_STDIO
# define OPENSSL_NO_STDIO
# endif
# ifndef OPENSSL_NO_TESTS # ifndef OPENSSL_NO_TESTS
# define OPENSSL_NO_TESTS # define OPENSSL_NO_TESTS
# endif # endif
@ -169,6 +220,9 @@ extern "C" {
# ifndef OPENSSL_NO_UBSAN # ifndef OPENSSL_NO_UBSAN
# define OPENSSL_NO_UBSAN # define OPENSSL_NO_UBSAN
# endif # endif
# ifndef OPENSSL_NO_UI_CONSOLE
# define OPENSSL_NO_UI_CONSOLE
# endif
# ifndef OPENSSL_NO_UNIT_TEST # ifndef OPENSSL_NO_UNIT_TEST
# define OPENSSL_NO_UNIT_TEST # define OPENSSL_NO_UNIT_TEST
# endif # endif

View File

@ -33,8 +33,7 @@ tf_tls_context_t* tf_tls_context_create()
{ {
tf_tls_context_t* context = tf_malloc(sizeof(tf_tls_context_t)); tf_tls_context_t* context = tf_malloc(sizeof(tf_tls_context_t));
memset(context, 0, sizeof(*context)); memset(context, 0, sizeof(*context));
SSL_library_init(); OPENSSL_init_ssl(0, NULL);
SSL_load_error_strings();
context->context = SSL_CTX_new(SSLv23_method()); context->context = SSL_CTX_new(SSLv23_method());
SSL_CTX_set_default_verify_paths(context->context); SSL_CTX_set_default_verify_paths(context->context);
return context; return context;
@ -166,9 +165,10 @@ void tf_tls_session_shutdown(tf_tls_session_t* session)
int tf_tls_session_get_peer_certificate(tf_tls_session_t* session, char* buffer, size_t bytes) int tf_tls_session_get_peer_certificate(tf_tls_session_t* session, char* buffer, size_t bytes)
{ {
int result = -1; int result = -1;
X509* certificate = SSL_get_peer_certificate(session->ssl); X509* certificate = SSL_get1_peer_certificate(session->ssl);
BIO* bio = BIO_new(BIO_s_mem()); BIO* bio = BIO_new(BIO_s_mem());
PEM_write_bio_X509(bio, certificate); PEM_write_bio_X509(bio, certificate);
X509_free(certificate);
BUF_MEM* mem; BUF_MEM* mem;
BIO_get_mem_ptr(bio, &mem); BIO_get_mem_ptr(bio, &mem);
if (mem->length <= bytes) if (mem->length <= bytes)
@ -269,7 +269,7 @@ static bool _tls_session_verify_hostname(X509* certificate, const char* hostname
static bool _tls_session_verify_peer_certificate(tf_tls_session_t* session) static bool _tls_session_verify_peer_certificate(tf_tls_session_t* session)
{ {
bool verified = false; bool verified = false;
X509* certificate = SSL_get_peer_certificate(session->ssl); X509* certificate = SSL_get1_peer_certificate(session->ssl);
if (certificate) if (certificate)
{ {
if (SSL_get_verify_result(session->ssl) == X509_V_OK) if (SSL_get_verify_result(session->ssl) == X509_V_OK)

View File

@ -29,7 +29,53 @@ build_the_thing() {
TOOLCHAIN=$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64 TOOLCHAIN=$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64
export PATH=$TOOLCHAIN/$TRIBLE/bin:$TOOLCHAIN/bin:$PATH export PATH=$TOOLCHAIN/$TRIBLE/bin:$TOOLCHAIN/bin:$PATH
echo $PATH echo $PATH
export GLOBAL_OPTIONS="no-trace no-asm no-threads no-md2 no-md4 no-dso no-async no-multiblock no-dgram no-filenames no-shared no-ssl3 no-engine no-dynamic-engine no-zlib no-comp no-psk no-idea no-srp no-weak-ssl-ciphers no-dtls no-egd no-tests -Os" export GLOBAL_OPTIONS="
no-apps
no-asm
no-async
no-autoerrinit
no-cmp
no-cms
no-comp
no-deprecated
no-dgram
no-docs
no-dsa
no-dso
no-dtls
no-dynamic-engine
no-ec2m
no-egd
no-engine
no-err
no-filenames
no-gost
no-http
no-idea
no-legacy
no-md2
no-md4
no-module
no-multiblock
no-nextprotoneg
no-ocsp
no-psk
no-shared
no-sock
no-srp
no-ssl3
no-ssl-trace
no-stdio
no-tests
no-thread-pool
no-threads
no-trace
no-ui-console
no-uplink
no-weak-ssl-ciphers
no-zlib
-Os
-DOPENSSL_SMALL_FOOTPRINT"
echo "./Configure $SSL_TARGET $OPTIONS $GLOBAL_OPTIONS -fuse-ld=$TOOLCHAIN/bin/ld" && \ echo "./Configure $SSL_TARGET $OPTIONS $GLOBAL_OPTIONS -fuse-ld=$TOOLCHAIN/bin/ld" && \
./Configure $SSL_TARGET $OPTIONS $GLOBAL_OPTIONS -fuse-ld=$TOOLCHAIN/bin/ld no-tests && \ ./Configure $SSL_TARGET $OPTIONS $GLOBAL_OPTIONS -fuse-ld=$TOOLCHAIN/bin/ld no-tests && \
make clean && \ make clean && \