diff --git a/Makefile.am b/Makefile.am index 68fda4859..b7bbd4057 100644 --- a/Makefile.am +++ b/Makefile.am @@ -32,7 +32,7 @@ doc_DATA = \ # src/libbitcoin-network.la => ${libdir} #------------------------------------------------------------------------------ lib_LTLIBRARIES = src/libbitcoin-network.la -src_libbitcoin_network_la_CPPFLAGS = -I${srcdir}/include -I${srcdir}/src/wolfssl ${bitcoin_system_BUILD_CPPFLAGS} +src_libbitcoin_network_la_CPPFLAGS = -I${srcdir}/include -I${srcdir}/include/bitcoin/ssl ${bitcoin_system_BUILD_CPPFLAGS} src_libbitcoin_network_la_LIBADD = ${bitcoin_system_LIBS} src_libbitcoin_network_la_SOURCES = \ src/error.cpp \ @@ -128,280 +128,119 @@ src_libbitcoin_network_la_SOURCES = \ src/sessions/session_peer.cpp \ src/sessions/session_seed.cpp \ src/sessions/session_server.cpp \ - src/wolfssl/src/bio.c \ - src/wolfssl/src/conf.c \ - src/wolfssl/src/crl.c \ - src/wolfssl/src/dtls.c \ - src/wolfssl/src/dtls13.c \ - src/wolfssl/src/internal.c \ - src/wolfssl/src/keys.c \ - src/wolfssl/src/ocsp.c \ - src/wolfssl/src/pk.c \ - src/wolfssl/src/quic.c \ - src/wolfssl/src/sniffer.c \ - src/wolfssl/src/ssl.c \ - src/wolfssl/src/ssl_asn1.c \ - src/wolfssl/src/ssl_bn.c \ - src/wolfssl/src/ssl_certman.c \ - src/wolfssl/src/ssl_crypto.c \ - src/wolfssl/src/ssl_load.c \ - src/wolfssl/src/ssl_misc.c \ - src/wolfssl/src/ssl_p7p12.c \ - src/wolfssl/src/ssl_sess.c \ - src/wolfssl/src/ssl_sk.c \ - src/wolfssl/src/tls.c \ - src/wolfssl/src/tls13.c \ - src/wolfssl/src/wolfio.c \ - src/wolfssl/src/x509.c \ - src/wolfssl/src/x509_str.c \ - src/wolfssl/wolfcrypt/src/aes.c \ - src/wolfssl/wolfcrypt/src/arc4.c \ - src/wolfssl/wolfcrypt/src/ascon.c \ - src/wolfssl/wolfcrypt/src/asm.c \ - src/wolfssl/wolfcrypt/src/asn.c \ - src/wolfssl/wolfcrypt/src/blake2b.c \ - src/wolfssl/wolfcrypt/src/blake2s.c \ - src/wolfssl/wolfcrypt/src/camellia.c \ - src/wolfssl/wolfcrypt/src/chacha.c \ - src/wolfssl/wolfcrypt/src/chacha20_poly1305.c \ - src/wolfssl/wolfcrypt/src/cmac.c \ - src/wolfssl/wolfcrypt/src/coding.c \ - src/wolfssl/wolfcrypt/src/compress.c \ - src/wolfssl/wolfcrypt/src/cpuid.c \ - src/wolfssl/wolfcrypt/src/cryptocb.c \ - src/wolfssl/wolfcrypt/src/curve25519.c \ - src/wolfssl/wolfcrypt/src/curve448.c \ - src/wolfssl/wolfcrypt/src/des3.c \ - src/wolfssl/wolfcrypt/src/dh.c \ - src/wolfssl/wolfcrypt/src/dilithium.c \ - src/wolfssl/wolfcrypt/src/dsa.c \ - src/wolfssl/wolfcrypt/src/ecc.c \ - src/wolfssl/wolfcrypt/src/eccsi.c \ - src/wolfssl/wolfcrypt/src/ed25519.c \ - src/wolfssl/wolfcrypt/src/ed448.c \ - src/wolfssl/wolfcrypt/src/error1.c \ - src/wolfssl/wolfcrypt/src/evp.c \ - src/wolfssl/wolfcrypt/src/ext_lms.c \ - src/wolfssl/wolfcrypt/src/ext_mlkem.c \ - src/wolfssl/wolfcrypt/src/ext_xmss.c \ - src/wolfssl/wolfcrypt/src/falcon.c \ - src/wolfssl/wolfcrypt/src/fe_448.c \ - src/wolfssl/wolfcrypt/src/fe_low_mem.c \ - src/wolfssl/wolfcrypt/src/fe_operations.c \ - src/wolfssl/wolfcrypt/src/fe_x25519_128.h \ - src/wolfssl/wolfcrypt/src/ge_448.c \ - src/wolfssl/wolfcrypt/src/ge_low_mem.c \ - src/wolfssl/wolfcrypt/src/ge_operations.c \ - src/wolfssl/wolfcrypt/src/hash.c \ - src/wolfssl/wolfcrypt/src/hmac.c \ - src/wolfssl/wolfcrypt/src/hpke.c \ - src/wolfssl/wolfcrypt/src/integer.c \ - src/wolfssl/wolfcrypt/src/kdf.c \ - src/wolfssl/wolfcrypt/src/logging.c \ - src/wolfssl/wolfcrypt/src/md2.c \ - src/wolfssl/wolfcrypt/src/md4.c \ - src/wolfssl/wolfcrypt/src/md5.c \ - src/wolfssl/wolfcrypt/src/memory1.c \ - src/wolfssl/wolfcrypt/src/misc.c \ - src/wolfssl/wolfcrypt/src/pkcs12.c \ - src/wolfssl/wolfcrypt/src/pkcs7.c \ - src/wolfssl/wolfcrypt/src/poly1305.c \ - src/wolfssl/wolfcrypt/src/pwdbased.c \ - src/wolfssl/wolfcrypt/src/random.c \ - src/wolfssl/wolfcrypt/src/rc2.c \ - src/wolfssl/wolfcrypt/src/ripemd.c \ - src/wolfssl/wolfcrypt/src/rsa.c \ - src/wolfssl/wolfcrypt/src/sakke.c \ - src/wolfssl/wolfcrypt/src/sha.c \ - src/wolfssl/wolfcrypt/src/sha256.c \ - src/wolfssl/wolfcrypt/src/sha3.c \ - src/wolfssl/wolfcrypt/src/sha512.c \ - src/wolfssl/wolfcrypt/src/signature.c \ - src/wolfssl/wolfcrypt/src/siphash.c \ - src/wolfssl/wolfcrypt/src/sp_arm32.c \ - src/wolfssl/wolfcrypt/src/sp_arm64.c \ - src/wolfssl/wolfcrypt/src/sp_armthumb.c \ - src/wolfssl/wolfcrypt/src/sp_c32.c \ - src/wolfssl/wolfcrypt/src/sp_c64.c \ - src/wolfssl/wolfcrypt/src/sp_cortexm.c \ - src/wolfssl/wolfcrypt/src/sp_dsp32.c \ - src/wolfssl/wolfcrypt/src/sp_int.c \ - src/wolfssl/wolfcrypt/src/sp_x86_64.c \ - src/wolfssl/wolfcrypt/src/sphincs.c \ - src/wolfssl/wolfcrypt/src/srp.c \ - src/wolfssl/wolfcrypt/src/tfm.c \ - src/wolfssl/wolfcrypt/src/wc_dsp.c \ - src/wolfssl/wolfcrypt/src/wc_encrypt.c \ - src/wolfssl/wolfcrypt/src/wc_lms.c \ - src/wolfssl/wolfcrypt/src/wc_lms_impl.c \ - src/wolfssl/wolfcrypt/src/wc_mlkem.c \ - src/wolfssl/wolfcrypt/src/wc_mlkem_poly.c \ - src/wolfssl/wolfcrypt/src/wc_pkcs11.c \ - src/wolfssl/wolfcrypt/src/wc_port.c \ - src/wolfssl/wolfcrypt/src/wc_xmss.c \ - src/wolfssl/wolfcrypt/src/wc_xmss_impl.c \ - src/wolfssl/wolfcrypt/src/wolfevent.c \ - src/wolfssl/wolfcrypt/src/wolfmath.c \ - src/wolfssl/wolfssl/callbacks.h \ - src/wolfssl/wolfssl/certs_test.h \ - src/wolfssl/wolfssl/certs_test_sm.h \ - src/wolfssl/wolfssl/crl.h \ - src/wolfssl/wolfssl/error-ssl.h \ - src/wolfssl/wolfssl/internal.h \ - src/wolfssl/wolfssl/ocsp.h \ - src/wolfssl/wolfssl/quic.h \ - src/wolfssl/wolfssl/ssl.h \ - src/wolfssl/wolfssl/test.h \ - src/wolfssl/wolfssl/version.h \ - src/wolfssl/wolfssl/wolfio.h \ - src/wolfssl/wolfssl/openssl/aes.h \ - src/wolfssl/wolfssl/openssl/asn1.h \ - src/wolfssl/wolfssl/openssl/asn1t.h \ - src/wolfssl/wolfssl/openssl/bio.h \ - src/wolfssl/wolfssl/openssl/bn.h \ - src/wolfssl/wolfssl/openssl/buffer.h \ - src/wolfssl/wolfssl/openssl/camellia.h \ - src/wolfssl/wolfssl/openssl/cmac.h \ - src/wolfssl/wolfssl/openssl/cms.h \ - src/wolfssl/wolfssl/openssl/compat_types.h \ - src/wolfssl/wolfssl/openssl/conf.h \ - src/wolfssl/wolfssl/openssl/crypto.h \ - src/wolfssl/wolfssl/openssl/des.h \ - src/wolfssl/wolfssl/openssl/dh.h \ - src/wolfssl/wolfssl/openssl/dsa.h \ - src/wolfssl/wolfssl/openssl/ec.h \ - src/wolfssl/wolfssl/openssl/ec25519.h \ - src/wolfssl/wolfssl/openssl/ec448.h \ - src/wolfssl/wolfssl/openssl/ecdh.h \ - src/wolfssl/wolfssl/openssl/ecdsa.h \ - src/wolfssl/wolfssl/openssl/ed25519.h \ - src/wolfssl/wolfssl/openssl/ed448.h \ - src/wolfssl/wolfssl/openssl/engine.h \ - src/wolfssl/wolfssl/openssl/err.h \ - src/wolfssl/wolfssl/openssl/evp.h \ - src/wolfssl/wolfssl/openssl/fips_rand.h \ - src/wolfssl/wolfssl/openssl/hmac.h \ - src/wolfssl/wolfssl/openssl/kdf.h \ - src/wolfssl/wolfssl/openssl/lhash.h \ - src/wolfssl/wolfssl/openssl/md4.h \ - src/wolfssl/wolfssl/openssl/md5.h \ - src/wolfssl/wolfssl/openssl/modes.h \ - src/wolfssl/wolfssl/openssl/obj_mac.h \ - src/wolfssl/wolfssl/openssl/objects.h \ - src/wolfssl/wolfssl/openssl/ocsp.h \ - src/wolfssl/wolfssl/openssl/opensslconf.h \ - src/wolfssl/wolfssl/openssl/opensslv.h \ - src/wolfssl/wolfssl/openssl/ossl_typ.h \ - src/wolfssl/wolfssl/openssl/pem.h \ - src/wolfssl/wolfssl/openssl/pkcs12.h \ - src/wolfssl/wolfssl/openssl/pkcs7.h \ - src/wolfssl/wolfssl/openssl/rand.h \ - src/wolfssl/wolfssl/openssl/rc4.h \ - src/wolfssl/wolfssl/openssl/ripemd.h \ - src/wolfssl/wolfssl/openssl/rsa.h \ - src/wolfssl/wolfssl/openssl/safestack.h \ - src/wolfssl/wolfssl/openssl/sha.h \ - src/wolfssl/wolfssl/openssl/sha3.h \ - src/wolfssl/wolfssl/openssl/srp.h \ - src/wolfssl/wolfssl/openssl/ssl.h \ - src/wolfssl/wolfssl/openssl/ssl23.h \ - src/wolfssl/wolfssl/openssl/stack.h \ - src/wolfssl/wolfssl/openssl/tls1.h \ - src/wolfssl/wolfssl/openssl/txt_db.h \ - src/wolfssl/wolfssl/openssl/ui.h \ - src/wolfssl/wolfssl/openssl/x509.h \ - src/wolfssl/wolfssl/openssl/x509_vfy.h \ - src/wolfssl/wolfssl/openssl/x509v3.h \ - src/wolfssl/wolfssl/wolfcrypt/aes.h \ - src/wolfssl/wolfssl/wolfcrypt/arc4.h \ - src/wolfssl/wolfssl/wolfcrypt/ascon.h \ - src/wolfssl/wolfssl/wolfcrypt/asn.h \ - src/wolfssl/wolfssl/wolfcrypt/asn_public.h \ - src/wolfssl/wolfssl/wolfcrypt/blake2-impl.h \ - src/wolfssl/wolfssl/wolfcrypt/blake2-int.h \ - src/wolfssl/wolfssl/wolfcrypt/blake2.h \ - src/wolfssl/wolfssl/wolfcrypt/camellia.h \ - src/wolfssl/wolfssl/wolfcrypt/chacha.h \ - src/wolfssl/wolfssl/wolfcrypt/chacha20_poly1305.h \ - src/wolfssl/wolfssl/wolfcrypt/cmac.h \ - src/wolfssl/wolfssl/wolfcrypt/coding.h \ - src/wolfssl/wolfssl/wolfcrypt/compress.h \ - src/wolfssl/wolfssl/wolfcrypt/cpuid.h \ - src/wolfssl/wolfssl/wolfcrypt/cryptocb.h \ - src/wolfssl/wolfssl/wolfcrypt/curve25519.h \ - src/wolfssl/wolfssl/wolfcrypt/curve448.h \ - src/wolfssl/wolfssl/wolfcrypt/des3.h \ - src/wolfssl/wolfssl/wolfcrypt/dh.h \ - src/wolfssl/wolfssl/wolfcrypt/dilithium.h \ - src/wolfssl/wolfssl/wolfcrypt/dsa.h \ - src/wolfssl/wolfssl/wolfcrypt/ecc.h \ - src/wolfssl/wolfssl/wolfcrypt/eccsi.h \ - src/wolfssl/wolfssl/wolfcrypt/ed25519.h \ - src/wolfssl/wolfssl/wolfcrypt/ed448.h \ - src/wolfssl/wolfssl/wolfcrypt/error-crypt.h \ - src/wolfssl/wolfssl/wolfcrypt/ext_lms.h \ - src/wolfssl/wolfssl/wolfcrypt/ext_mlkem.h \ - src/wolfssl/wolfssl/wolfcrypt/ext_xmss.h \ - src/wolfssl/wolfssl/wolfcrypt/falcon.h \ - src/wolfssl/wolfssl/wolfcrypt/fe_448.h \ - src/wolfssl/wolfssl/wolfcrypt/fe_operations.h \ - src/wolfssl/wolfssl/wolfcrypt/fips_test.h \ - src/wolfssl/wolfssl/wolfcrypt/ge_448.h \ - src/wolfssl/wolfssl/wolfcrypt/ge_operations.h \ - src/wolfssl/wolfssl/wolfcrypt/hash.h \ - src/wolfssl/wolfssl/wolfcrypt/hmac.h \ - src/wolfssl/wolfssl/wolfcrypt/hpke.h \ - src/wolfssl/wolfssl/wolfcrypt/integer.h \ - src/wolfssl/wolfssl/wolfcrypt/kdf.h \ - src/wolfssl/wolfssl/wolfcrypt/libwolfssl_sources.h \ - src/wolfssl/wolfssl/wolfcrypt/libwolfssl_sources_asm.h \ - src/wolfssl/wolfssl/wolfcrypt/lms.h \ - src/wolfssl/wolfssl/wolfcrypt/logging.h \ - src/wolfssl/wolfssl/wolfcrypt/md2.h \ - src/wolfssl/wolfssl/wolfcrypt/md4.h \ - src/wolfssl/wolfssl/wolfcrypt/md5.h \ - src/wolfssl/wolfssl/wolfcrypt/mem_track.h \ - src/wolfssl/wolfssl/wolfcrypt/memory.h \ - src/wolfssl/wolfssl/wolfcrypt/misc.h \ - src/wolfssl/wolfssl/wolfcrypt/mlkem.h \ - src/wolfssl/wolfssl/wolfcrypt/mpi_class.h \ - src/wolfssl/wolfssl/wolfcrypt/mpi_superclass.h \ - src/wolfssl/wolfssl/wolfcrypt/oid_sum.h \ - src/wolfssl/wolfssl/wolfcrypt/pkcs11.h \ - src/wolfssl/wolfssl/wolfcrypt/pkcs12.h \ - src/wolfssl/wolfssl/wolfcrypt/pkcs7.h \ - src/wolfssl/wolfssl/wolfcrypt/poly1305.h \ - src/wolfssl/wolfssl/wolfcrypt/pwdbased.h \ - src/wolfssl/wolfssl/wolfcrypt/random.h \ - src/wolfssl/wolfssl/wolfcrypt/rc2.h \ - src/wolfssl/wolfssl/wolfcrypt/ripemd.h \ - src/wolfssl/wolfssl/wolfcrypt/rsa.h \ - src/wolfssl/wolfssl/wolfcrypt/sakke.h \ - src/wolfssl/wolfssl/wolfcrypt/selftest.h \ - src/wolfssl/wolfssl/wolfcrypt/settings.h \ - src/wolfssl/wolfssl/wolfcrypt/sha.h \ - src/wolfssl/wolfssl/wolfcrypt/sha256.h \ - src/wolfssl/wolfssl/wolfcrypt/sha3.h \ - src/wolfssl/wolfssl/wolfcrypt/sha512.h \ - src/wolfssl/wolfssl/wolfcrypt/signature.h \ - src/wolfssl/wolfssl/wolfcrypt/siphash.h \ - src/wolfssl/wolfssl/wolfcrypt/sp.h \ - src/wolfssl/wolfssl/wolfcrypt/sp_int.h \ - src/wolfssl/wolfssl/wolfcrypt/sphincs.h \ - src/wolfssl/wolfssl/wolfcrypt/srp.h \ - src/wolfssl/wolfssl/wolfcrypt/tfm.h \ - src/wolfssl/wolfssl/wolfcrypt/types.h \ - src/wolfssl/wolfssl/wolfcrypt/user_settings.h \ - src/wolfssl/wolfssl/wolfcrypt/visibility.h \ - src/wolfssl/wolfssl/wolfcrypt/wc_encrypt.h \ - src/wolfssl/wolfssl/wolfcrypt/wc_lms.h \ - src/wolfssl/wolfssl/wolfcrypt/wc_mlkem.h \ - src/wolfssl/wolfssl/wolfcrypt/wc_pkcs11.h \ - src/wolfssl/wolfssl/wolfcrypt/wc_port.h \ - src/wolfssl/wolfssl/wolfcrypt/wc_xmss.h \ - src/wolfssl/wolfssl/wolfcrypt/wolfevent.h \ - src/wolfssl/wolfssl/wolfcrypt/wolfmath.h \ - src/wolfssl/wolfssl/wolfcrypt/xmss.h + src/ssl/wolfcrypt/aes.c \ + src/ssl/wolfcrypt/arc4.c \ + src/ssl/wolfcrypt/ascon.c \ + src/ssl/wolfcrypt/asm.c \ + src/ssl/wolfcrypt/asn.c \ + src/ssl/wolfcrypt/blake2b.c \ + src/ssl/wolfcrypt/blake2s.c \ + src/ssl/wolfcrypt/camellia.c \ + src/ssl/wolfcrypt/chacha.c \ + src/ssl/wolfcrypt/chacha20_poly1305.c \ + src/ssl/wolfcrypt/cmac.c \ + src/ssl/wolfcrypt/coding.c \ + src/ssl/wolfcrypt/compress.c \ + src/ssl/wolfcrypt/cpuid.c \ + src/ssl/wolfcrypt/cryptocb.c \ + src/ssl/wolfcrypt/curve25519.c \ + src/ssl/wolfcrypt/curve448.c \ + src/ssl/wolfcrypt/des3.c \ + src/ssl/wolfcrypt/dh.c \ + src/ssl/wolfcrypt/dilithium.c \ + src/ssl/wolfcrypt/dsa.c \ + src/ssl/wolfcrypt/ecc.c \ + src/ssl/wolfcrypt/eccsi.c \ + src/ssl/wolfcrypt/ed25519.c \ + src/ssl/wolfcrypt/ed448.c \ + src/ssl/wolfcrypt/error1.c \ + src/ssl/wolfcrypt/ext_lms.c \ + src/ssl/wolfcrypt/ext_mlkem.c \ + src/ssl/wolfcrypt/ext_xmss.c \ + src/ssl/wolfcrypt/falcon.c \ + src/ssl/wolfcrypt/fe_448.c \ + src/ssl/wolfcrypt/fe_low_mem.c \ + src/ssl/wolfcrypt/fe_operations.c \ + src/ssl/wolfcrypt/fe_x25519_128.h \ + src/ssl/wolfcrypt/ge_448.c \ + src/ssl/wolfcrypt/ge_low_mem.c \ + src/ssl/wolfcrypt/ge_operations.c \ + src/ssl/wolfcrypt/hash.c \ + src/ssl/wolfcrypt/hmac.c \ + src/ssl/wolfcrypt/hpke.c \ + src/ssl/wolfcrypt/integer.c \ + src/ssl/wolfcrypt/kdf.c \ + src/ssl/wolfcrypt/logging.c \ + src/ssl/wolfcrypt/md2.c \ + src/ssl/wolfcrypt/md4.c \ + src/ssl/wolfcrypt/md5.c \ + src/ssl/wolfcrypt/memory1.c \ + src/ssl/wolfcrypt/pkcs12.c \ + src/ssl/wolfcrypt/pkcs7.c \ + src/ssl/wolfcrypt/poly1305.c \ + src/ssl/wolfcrypt/pwdbased.c \ + src/ssl/wolfcrypt/random.c \ + src/ssl/wolfcrypt/rc2.c \ + src/ssl/wolfcrypt/ripemd.c \ + src/ssl/wolfcrypt/rsa.c \ + src/ssl/wolfcrypt/sakke.c \ + src/ssl/wolfcrypt/sha.c \ + src/ssl/wolfcrypt/sha256.c \ + src/ssl/wolfcrypt/sha3.c \ + src/ssl/wolfcrypt/sha512.c \ + src/ssl/wolfcrypt/signature.c \ + src/ssl/wolfcrypt/siphash.c \ + src/ssl/wolfcrypt/sp_arm32.c \ + src/ssl/wolfcrypt/sp_arm64.c \ + src/ssl/wolfcrypt/sp_armthumb.c \ + src/ssl/wolfcrypt/sp_c32.c \ + src/ssl/wolfcrypt/sp_c64.c \ + src/ssl/wolfcrypt/sp_cortexm.c \ + src/ssl/wolfcrypt/sp_dsp32.c \ + src/ssl/wolfcrypt/sp_int.c \ + src/ssl/wolfcrypt/sp_x86_64.c \ + src/ssl/wolfcrypt/sphincs.c \ + src/ssl/wolfcrypt/srp.c \ + src/ssl/wolfcrypt/tfm.c \ + src/ssl/wolfcrypt/wc_dsp.c \ + src/ssl/wolfcrypt/wc_encrypt.c \ + src/ssl/wolfcrypt/wc_lms.c \ + src/ssl/wolfcrypt/wc_lms_impl.c \ + src/ssl/wolfcrypt/wc_mlkem.c \ + src/ssl/wolfcrypt/wc_mlkem_poly.c \ + src/ssl/wolfcrypt/wc_pkcs11.c \ + src/ssl/wolfcrypt/wc_port.c \ + src/ssl/wolfcrypt/wc_xmss.c \ + src/ssl/wolfcrypt/wc_xmss_impl.c \ + src/ssl/wolfcrypt/wolfevent.c \ + src/ssl/wolfcrypt/wolfmath.c \ + src/ssl/wolfssl/crl.c \ + src/ssl/wolfssl/dtls.c \ + src/ssl/wolfssl/dtls13.c \ + src/ssl/wolfssl/internal.c \ + src/ssl/wolfssl/keys.c \ + src/ssl/wolfssl/ocsp.c \ + src/ssl/wolfssl/quic.c \ + src/ssl/wolfssl/sniffer.c \ + src/ssl/wolfssl/ssl.c \ + src/ssl/wolfssl/tls.c \ + src/ssl/wolfssl/tls13.c \ + src/ssl/wolfssl/wolfio.c \ + src/ssl/wolfssl/src/bio.c \ + src/ssl/wolfssl/src/conf.c \ + src/ssl/wolfssl/src/evp.c \ + src/ssl/wolfssl/src/pk.c \ + src/ssl/wolfssl/src/ssl_asn1.c \ + src/ssl/wolfssl/src/ssl_bn.c \ + src/ssl/wolfssl/src/ssl_certman.c \ + src/ssl/wolfssl/src/ssl_crypto.c \ + src/ssl/wolfssl/src/ssl_load.c \ + src/ssl/wolfssl/src/ssl_misc.c \ + src/ssl/wolfssl/src/ssl_p7p12.c \ + src/ssl/wolfssl/src/ssl_sess.c \ + src/ssl/wolfssl/src/ssl_sk.c \ + src/ssl/wolfssl/src/x509.c \ + src/ssl/wolfssl/src/x509_str.c # local: test/libbitcoin-network-test #------------------------------------------------------------------------------ @@ -410,7 +249,7 @@ if WITH_TESTS TESTS = libbitcoin-network-test_runner.sh check_PROGRAMS = test/libbitcoin-network-test -test_libbitcoin_network_test_CPPFLAGS = -I${srcdir}/include ${bitcoin_system_BUILD_CPPFLAGS} +test_libbitcoin_network_test_CPPFLAGS = -I${srcdir}/include -I${srcdir}/include/bitcoin/ssl ${bitcoin_system_BUILD_CPPFLAGS} test_libbitcoin_network_test_LDADD = src/libbitcoin-network.la ${boost_unit_test_framework_LIBS} ${bitcoin_system_LIBS} test_libbitcoin_network_test_SOURCES = \ test/error.cpp \ @@ -774,3 +613,187 @@ include_bitcoin_network_sessions_HEADERS = \ include/bitcoin/network/sessions/session_server.hpp \ include/bitcoin/network/sessions/sessions.hpp +include_bitcoin_ssl_openssldir = ${includedir}/bitcoin/ssl/openssl +include_bitcoin_ssl_openssl_HEADERS = \ + include/bitcoin/ssl/openssl/conf.h \ + include/bitcoin/ssl/openssl/dh.h \ + include/bitcoin/ssl/openssl/err.h \ + include/bitcoin/ssl/openssl/openssl.h \ + include/bitcoin/ssl/openssl/rsa.h \ + include/bitcoin/ssl/openssl/ssl.h \ + include/bitcoin/ssl/openssl/x509.h \ + include/bitcoin/ssl/openssl/x509v3.h + +include_bitcoin_ssl_wolfcryptdir = ${includedir}/bitcoin/ssl/wolfcrypt +include_bitcoin_ssl_wolfcrypt_HEADERS = \ + include/bitcoin/ssl/wolfcrypt/wolfcrypt.h + +include_bitcoin_ssl_wolfssldir = ${includedir}/bitcoin/ssl/wolfssl +include_bitcoin_ssl_wolfssl_HEADERS = \ + include/bitcoin/ssl/wolfssl/callbacks.h \ + include/bitcoin/ssl/wolfssl/certs_test.h \ + include/bitcoin/ssl/wolfssl/certs_test_sm.h \ + include/bitcoin/ssl/wolfssl/crl.h \ + include/bitcoin/ssl/wolfssl/error-ssl.h \ + include/bitcoin/ssl/wolfssl/internal.h \ + include/bitcoin/ssl/wolfssl/ocsp.h \ + include/bitcoin/ssl/wolfssl/options.h \ + include/bitcoin/ssl/wolfssl/quic.h \ + include/bitcoin/ssl/wolfssl/ssl.h \ + include/bitcoin/ssl/wolfssl/test.h \ + include/bitcoin/ssl/wolfssl/version.h \ + include/bitcoin/ssl/wolfssl/wolfio.h \ + include/bitcoin/ssl/wolfssl/wolfssl.h + +include_bitcoin_ssl_wolfssl_openssldir = ${includedir}/bitcoin/ssl/wolfssl/openssl +include_bitcoin_ssl_wolfssl_openssl_HEADERS = \ + include/bitcoin/ssl/wolfssl/openssl/aes.h \ + include/bitcoin/ssl/wolfssl/openssl/asn1.h \ + include/bitcoin/ssl/wolfssl/openssl/asn1t.h \ + include/bitcoin/ssl/wolfssl/openssl/bio.h \ + include/bitcoin/ssl/wolfssl/openssl/bn.h \ + include/bitcoin/ssl/wolfssl/openssl/buffer.h \ + include/bitcoin/ssl/wolfssl/openssl/camellia.h \ + include/bitcoin/ssl/wolfssl/openssl/cmac.h \ + include/bitcoin/ssl/wolfssl/openssl/cms.h \ + include/bitcoin/ssl/wolfssl/openssl/compat_types.h \ + include/bitcoin/ssl/wolfssl/openssl/conf.h \ + include/bitcoin/ssl/wolfssl/openssl/crypto.h \ + include/bitcoin/ssl/wolfssl/openssl/des.h \ + include/bitcoin/ssl/wolfssl/openssl/dh.h \ + include/bitcoin/ssl/wolfssl/openssl/dsa.h \ + include/bitcoin/ssl/wolfssl/openssl/ec.h \ + include/bitcoin/ssl/wolfssl/openssl/ec25519.h \ + include/bitcoin/ssl/wolfssl/openssl/ec448.h \ + include/bitcoin/ssl/wolfssl/openssl/ecdh.h \ + include/bitcoin/ssl/wolfssl/openssl/ecdsa.h \ + include/bitcoin/ssl/wolfssl/openssl/ed25519.h \ + include/bitcoin/ssl/wolfssl/openssl/ed448.h \ + include/bitcoin/ssl/wolfssl/openssl/engine.h \ + include/bitcoin/ssl/wolfssl/openssl/err.h \ + include/bitcoin/ssl/wolfssl/openssl/evp.h \ + include/bitcoin/ssl/wolfssl/openssl/fips_rand.h \ + include/bitcoin/ssl/wolfssl/openssl/hmac.h \ + include/bitcoin/ssl/wolfssl/openssl/kdf.h \ + include/bitcoin/ssl/wolfssl/openssl/lhash.h \ + include/bitcoin/ssl/wolfssl/openssl/md4.h \ + include/bitcoin/ssl/wolfssl/openssl/md5.h \ + include/bitcoin/ssl/wolfssl/openssl/modes.h \ + include/bitcoin/ssl/wolfssl/openssl/obj_mac.h \ + include/bitcoin/ssl/wolfssl/openssl/objects.h \ + include/bitcoin/ssl/wolfssl/openssl/ocsp.h \ + include/bitcoin/ssl/wolfssl/openssl/opensslconf.h \ + include/bitcoin/ssl/wolfssl/openssl/opensslv.h \ + include/bitcoin/ssl/wolfssl/openssl/ossl_typ.h \ + include/bitcoin/ssl/wolfssl/openssl/pem.h \ + include/bitcoin/ssl/wolfssl/openssl/pkcs12.h \ + include/bitcoin/ssl/wolfssl/openssl/pkcs7.h \ + include/bitcoin/ssl/wolfssl/openssl/rand.h \ + include/bitcoin/ssl/wolfssl/openssl/rc4.h \ + include/bitcoin/ssl/wolfssl/openssl/ripemd.h \ + include/bitcoin/ssl/wolfssl/openssl/rsa.h \ + include/bitcoin/ssl/wolfssl/openssl/safestack.h \ + include/bitcoin/ssl/wolfssl/openssl/sha.h \ + include/bitcoin/ssl/wolfssl/openssl/sha3.h \ + include/bitcoin/ssl/wolfssl/openssl/srp.h \ + include/bitcoin/ssl/wolfssl/openssl/ssl.h \ + include/bitcoin/ssl/wolfssl/openssl/stack.h \ + include/bitcoin/ssl/wolfssl/openssl/tls1.h \ + include/bitcoin/ssl/wolfssl/openssl/txt_db.h \ + include/bitcoin/ssl/wolfssl/openssl/x509.h \ + include/bitcoin/ssl/wolfssl/openssl/x509_vfy.h \ + include/bitcoin/ssl/wolfssl/openssl/x509v3.h + +include_bitcoin_ssl_wolfssl_wolfcryptdir = ${includedir}/bitcoin/ssl/wolfssl/wolfcrypt +include_bitcoin_ssl_wolfssl_wolfcrypt_HEADERS = \ + include/bitcoin/ssl/wolfssl/wolfcrypt/aes.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/arc4.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/ascon.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/asn.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/asn_public.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/blake2-impl.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/blake2-int.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/blake2.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/camellia.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/chacha.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/chacha20_poly1305.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/cmac.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/coding.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/compress.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/cpuid.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/cryptocb.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/curve25519.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/curve448.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/des3.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/dh.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/dilithium.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/dsa.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/ecc.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/eccsi.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/ed25519.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/ed448.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/error-crypt.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/ext_lms.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/ext_mlkem.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/ext_xmss.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/falcon.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/fe_448.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/fe_operations.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/fips_test.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/ge_448.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/ge_operations.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/hash.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/hmac.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/hpke.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/integer.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/kdf.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/libwolfssl_sources.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/libwolfssl_sources_asm.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/lms.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/logging.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/md2.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/md4.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/md5.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/mem_track.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/memory.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/misc.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/mlkem.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/mpi_class.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/mpi_superclass.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/oid_sum.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/pkcs11.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/pkcs12.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/pkcs7.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/poly1305.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/pwdbased.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/random.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/rc2.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/ripemd.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/rsa.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/sakke.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/selftest.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/settings.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/sha.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/sha256.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/sha3.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/sha512.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/signature.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/siphash.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/sp.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/sp_int.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/sphincs.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/srp.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/tfm.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/types.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/user_settings.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/visibility.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/wc_encrypt.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/wc_lms.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/wc_mlkem.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/wc_pkcs11.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/wc_port.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/wc_xmss.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/wolfevent.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/wolfmath.h \ + include/bitcoin/ssl/wolfssl/wolfcrypt/xmss.h + diff --git a/builds/cmake/CMakeLists.txt b/builds/cmake/CMakeLists.txt index 484cef0fe..fc9e0dd51 100644 --- a/builds/cmake/CMakeLists.txt +++ b/builds/cmake/CMakeLists.txt @@ -132,6 +132,7 @@ if (BUILD_SHARED_LIBS) add_definitions( -DBOOST_ALL_DYN_LINK ) endif() +add_definitions( -DWOLFSSL_USER_SETTINGS ) if (BUILD_SHARED_LIBS) set( Boost_USE_STATIC_LIBS "off" ) else() @@ -310,280 +311,119 @@ add_library( ${CANONICAL_LIB_NAME} "../../src/sessions/session_peer.cpp" "../../src/sessions/session_seed.cpp" "../../src/sessions/session_server.cpp" - "../../src/wolfssl/src/bio.c" - "../../src/wolfssl/src/conf.c" - "../../src/wolfssl/src/crl.c" - "../../src/wolfssl/src/dtls.c" - "../../src/wolfssl/src/dtls13.c" - "../../src/wolfssl/src/internal.c" - "../../src/wolfssl/src/keys.c" - "../../src/wolfssl/src/ocsp.c" - "../../src/wolfssl/src/pk.c" - "../../src/wolfssl/src/quic.c" - "../../src/wolfssl/src/sniffer.c" - "../../src/wolfssl/src/ssl.c" - "../../src/wolfssl/src/ssl_asn1.c" - "../../src/wolfssl/src/ssl_bn.c" - "../../src/wolfssl/src/ssl_certman.c" - "../../src/wolfssl/src/ssl_crypto.c" - "../../src/wolfssl/src/ssl_load.c" - "../../src/wolfssl/src/ssl_misc.c" - "../../src/wolfssl/src/ssl_p7p12.c" - "../../src/wolfssl/src/ssl_sess.c" - "../../src/wolfssl/src/ssl_sk.c" - "../../src/wolfssl/src/tls.c" - "../../src/wolfssl/src/tls13.c" - "../../src/wolfssl/src/wolfio.c" - "../../src/wolfssl/src/x509.c" - "../../src/wolfssl/src/x509_str.c" - "../../src/wolfssl/wolfcrypt/src/aes.c" - "../../src/wolfssl/wolfcrypt/src/arc4.c" - "../../src/wolfssl/wolfcrypt/src/ascon.c" - "../../src/wolfssl/wolfcrypt/src/asm.c" - "../../src/wolfssl/wolfcrypt/src/asn.c" - "../../src/wolfssl/wolfcrypt/src/blake2b.c" - "../../src/wolfssl/wolfcrypt/src/blake2s.c" - "../../src/wolfssl/wolfcrypt/src/camellia.c" - "../../src/wolfssl/wolfcrypt/src/chacha.c" - "../../src/wolfssl/wolfcrypt/src/chacha20_poly1305.c" - "../../src/wolfssl/wolfcrypt/src/cmac.c" - "../../src/wolfssl/wolfcrypt/src/coding.c" - "../../src/wolfssl/wolfcrypt/src/compress.c" - "../../src/wolfssl/wolfcrypt/src/cpuid.c" - "../../src/wolfssl/wolfcrypt/src/cryptocb.c" - "../../src/wolfssl/wolfcrypt/src/curve25519.c" - "../../src/wolfssl/wolfcrypt/src/curve448.c" - "../../src/wolfssl/wolfcrypt/src/des3.c" - "../../src/wolfssl/wolfcrypt/src/dh.c" - "../../src/wolfssl/wolfcrypt/src/dilithium.c" - "../../src/wolfssl/wolfcrypt/src/dsa.c" - "../../src/wolfssl/wolfcrypt/src/ecc.c" - "../../src/wolfssl/wolfcrypt/src/eccsi.c" - "../../src/wolfssl/wolfcrypt/src/ed25519.c" - "../../src/wolfssl/wolfcrypt/src/ed448.c" - "../../src/wolfssl/wolfcrypt/src/error1.c" - "../../src/wolfssl/wolfcrypt/src/evp.c" - "../../src/wolfssl/wolfcrypt/src/ext_lms.c" - "../../src/wolfssl/wolfcrypt/src/ext_mlkem.c" - "../../src/wolfssl/wolfcrypt/src/ext_xmss.c" - "../../src/wolfssl/wolfcrypt/src/falcon.c" - "../../src/wolfssl/wolfcrypt/src/fe_448.c" - "../../src/wolfssl/wolfcrypt/src/fe_low_mem.c" - "../../src/wolfssl/wolfcrypt/src/fe_operations.c" - "../../src/wolfssl/wolfcrypt/src/fe_x25519_128.h" - "../../src/wolfssl/wolfcrypt/src/ge_448.c" - "../../src/wolfssl/wolfcrypt/src/ge_low_mem.c" - "../../src/wolfssl/wolfcrypt/src/ge_operations.c" - "../../src/wolfssl/wolfcrypt/src/hash.c" - "../../src/wolfssl/wolfcrypt/src/hmac.c" - "../../src/wolfssl/wolfcrypt/src/hpke.c" - "../../src/wolfssl/wolfcrypt/src/integer.c" - "../../src/wolfssl/wolfcrypt/src/kdf.c" - "../../src/wolfssl/wolfcrypt/src/logging.c" - "../../src/wolfssl/wolfcrypt/src/md2.c" - "../../src/wolfssl/wolfcrypt/src/md4.c" - "../../src/wolfssl/wolfcrypt/src/md5.c" - "../../src/wolfssl/wolfcrypt/src/memory1.c" - "../../src/wolfssl/wolfcrypt/src/misc.c" - "../../src/wolfssl/wolfcrypt/src/pkcs12.c" - "../../src/wolfssl/wolfcrypt/src/pkcs7.c" - "../../src/wolfssl/wolfcrypt/src/poly1305.c" - "../../src/wolfssl/wolfcrypt/src/pwdbased.c" - "../../src/wolfssl/wolfcrypt/src/random.c" - "../../src/wolfssl/wolfcrypt/src/rc2.c" - "../../src/wolfssl/wolfcrypt/src/ripemd.c" - "../../src/wolfssl/wolfcrypt/src/rsa.c" - "../../src/wolfssl/wolfcrypt/src/sakke.c" - "../../src/wolfssl/wolfcrypt/src/sha.c" - "../../src/wolfssl/wolfcrypt/src/sha256.c" - "../../src/wolfssl/wolfcrypt/src/sha3.c" - "../../src/wolfssl/wolfcrypt/src/sha512.c" - "../../src/wolfssl/wolfcrypt/src/signature.c" - "../../src/wolfssl/wolfcrypt/src/siphash.c" - "../../src/wolfssl/wolfcrypt/src/sp_arm32.c" - "../../src/wolfssl/wolfcrypt/src/sp_arm64.c" - "../../src/wolfssl/wolfcrypt/src/sp_armthumb.c" - "../../src/wolfssl/wolfcrypt/src/sp_c32.c" - "../../src/wolfssl/wolfcrypt/src/sp_c64.c" - "../../src/wolfssl/wolfcrypt/src/sp_cortexm.c" - "../../src/wolfssl/wolfcrypt/src/sp_dsp32.c" - "../../src/wolfssl/wolfcrypt/src/sp_int.c" - "../../src/wolfssl/wolfcrypt/src/sp_x86_64.c" - "../../src/wolfssl/wolfcrypt/src/sphincs.c" - "../../src/wolfssl/wolfcrypt/src/srp.c" - "../../src/wolfssl/wolfcrypt/src/tfm.c" - "../../src/wolfssl/wolfcrypt/src/wc_dsp.c" - "../../src/wolfssl/wolfcrypt/src/wc_encrypt.c" - "../../src/wolfssl/wolfcrypt/src/wc_lms.c" - "../../src/wolfssl/wolfcrypt/src/wc_lms_impl.c" - "../../src/wolfssl/wolfcrypt/src/wc_mlkem.c" - "../../src/wolfssl/wolfcrypt/src/wc_mlkem_poly.c" - "../../src/wolfssl/wolfcrypt/src/wc_pkcs11.c" - "../../src/wolfssl/wolfcrypt/src/wc_port.c" - "../../src/wolfssl/wolfcrypt/src/wc_xmss.c" - "../../src/wolfssl/wolfcrypt/src/wc_xmss_impl.c" - "../../src/wolfssl/wolfcrypt/src/wolfevent.c" - "../../src/wolfssl/wolfcrypt/src/wolfmath.c" - "../../src/wolfssl/wolfssl/callbacks.h" - "../../src/wolfssl/wolfssl/certs_test.h" - "../../src/wolfssl/wolfssl/certs_test_sm.h" - "../../src/wolfssl/wolfssl/crl.h" - "../../src/wolfssl/wolfssl/error-ssl.h" - "../../src/wolfssl/wolfssl/internal.h" - "../../src/wolfssl/wolfssl/ocsp.h" - "../../src/wolfssl/wolfssl/quic.h" - "../../src/wolfssl/wolfssl/ssl.h" - "../../src/wolfssl/wolfssl/test.h" - "../../src/wolfssl/wolfssl/version.h" - "../../src/wolfssl/wolfssl/wolfio.h" - "../../src/wolfssl/wolfssl/openssl/aes.h" - "../../src/wolfssl/wolfssl/openssl/asn1.h" - "../../src/wolfssl/wolfssl/openssl/asn1t.h" - "../../src/wolfssl/wolfssl/openssl/bio.h" - "../../src/wolfssl/wolfssl/openssl/bn.h" - "../../src/wolfssl/wolfssl/openssl/buffer.h" - "../../src/wolfssl/wolfssl/openssl/camellia.h" - "../../src/wolfssl/wolfssl/openssl/cmac.h" - "../../src/wolfssl/wolfssl/openssl/cms.h" - "../../src/wolfssl/wolfssl/openssl/compat_types.h" - "../../src/wolfssl/wolfssl/openssl/conf.h" - "../../src/wolfssl/wolfssl/openssl/crypto.h" - "../../src/wolfssl/wolfssl/openssl/des.h" - "../../src/wolfssl/wolfssl/openssl/dh.h" - "../../src/wolfssl/wolfssl/openssl/dsa.h" - "../../src/wolfssl/wolfssl/openssl/ec.h" - "../../src/wolfssl/wolfssl/openssl/ec25519.h" - "../../src/wolfssl/wolfssl/openssl/ec448.h" - "../../src/wolfssl/wolfssl/openssl/ecdh.h" - "../../src/wolfssl/wolfssl/openssl/ecdsa.h" - "../../src/wolfssl/wolfssl/openssl/ed25519.h" - "../../src/wolfssl/wolfssl/openssl/ed448.h" - "../../src/wolfssl/wolfssl/openssl/engine.h" - "../../src/wolfssl/wolfssl/openssl/err.h" - "../../src/wolfssl/wolfssl/openssl/evp.h" - "../../src/wolfssl/wolfssl/openssl/fips_rand.h" - "../../src/wolfssl/wolfssl/openssl/hmac.h" - "../../src/wolfssl/wolfssl/openssl/kdf.h" - "../../src/wolfssl/wolfssl/openssl/lhash.h" - "../../src/wolfssl/wolfssl/openssl/md4.h" - "../../src/wolfssl/wolfssl/openssl/md5.h" - "../../src/wolfssl/wolfssl/openssl/modes.h" - "../../src/wolfssl/wolfssl/openssl/obj_mac.h" - "../../src/wolfssl/wolfssl/openssl/objects.h" - "../../src/wolfssl/wolfssl/openssl/ocsp.h" - "../../src/wolfssl/wolfssl/openssl/opensslconf.h" - "../../src/wolfssl/wolfssl/openssl/opensslv.h" - "../../src/wolfssl/wolfssl/openssl/ossl_typ.h" - "../../src/wolfssl/wolfssl/openssl/pem.h" - "../../src/wolfssl/wolfssl/openssl/pkcs12.h" - "../../src/wolfssl/wolfssl/openssl/pkcs7.h" - "../../src/wolfssl/wolfssl/openssl/rand.h" - "../../src/wolfssl/wolfssl/openssl/rc4.h" - "../../src/wolfssl/wolfssl/openssl/ripemd.h" - "../../src/wolfssl/wolfssl/openssl/rsa.h" - "../../src/wolfssl/wolfssl/openssl/safestack.h" - "../../src/wolfssl/wolfssl/openssl/sha.h" - "../../src/wolfssl/wolfssl/openssl/sha3.h" - "../../src/wolfssl/wolfssl/openssl/srp.h" - "../../src/wolfssl/wolfssl/openssl/ssl.h" - "../../src/wolfssl/wolfssl/openssl/ssl23.h" - "../../src/wolfssl/wolfssl/openssl/stack.h" - "../../src/wolfssl/wolfssl/openssl/tls1.h" - "../../src/wolfssl/wolfssl/openssl/txt_db.h" - "../../src/wolfssl/wolfssl/openssl/ui.h" - "../../src/wolfssl/wolfssl/openssl/x509.h" - "../../src/wolfssl/wolfssl/openssl/x509_vfy.h" - "../../src/wolfssl/wolfssl/openssl/x509v3.h" - "../../src/wolfssl/wolfssl/wolfcrypt/aes.h" - "../../src/wolfssl/wolfssl/wolfcrypt/arc4.h" - "../../src/wolfssl/wolfssl/wolfcrypt/ascon.h" - "../../src/wolfssl/wolfssl/wolfcrypt/asn.h" - "../../src/wolfssl/wolfssl/wolfcrypt/asn_public.h" - "../../src/wolfssl/wolfssl/wolfcrypt/blake2-impl.h" - "../../src/wolfssl/wolfssl/wolfcrypt/blake2-int.h" - "../../src/wolfssl/wolfssl/wolfcrypt/blake2.h" - "../../src/wolfssl/wolfssl/wolfcrypt/camellia.h" - "../../src/wolfssl/wolfssl/wolfcrypt/chacha.h" - "../../src/wolfssl/wolfssl/wolfcrypt/chacha20_poly1305.h" - "../../src/wolfssl/wolfssl/wolfcrypt/cmac.h" - "../../src/wolfssl/wolfssl/wolfcrypt/coding.h" - "../../src/wolfssl/wolfssl/wolfcrypt/compress.h" - "../../src/wolfssl/wolfssl/wolfcrypt/cpuid.h" - "../../src/wolfssl/wolfssl/wolfcrypt/cryptocb.h" - "../../src/wolfssl/wolfssl/wolfcrypt/curve25519.h" - "../../src/wolfssl/wolfssl/wolfcrypt/curve448.h" - "../../src/wolfssl/wolfssl/wolfcrypt/des3.h" - "../../src/wolfssl/wolfssl/wolfcrypt/dh.h" - "../../src/wolfssl/wolfssl/wolfcrypt/dilithium.h" - "../../src/wolfssl/wolfssl/wolfcrypt/dsa.h" - "../../src/wolfssl/wolfssl/wolfcrypt/ecc.h" - "../../src/wolfssl/wolfssl/wolfcrypt/eccsi.h" - "../../src/wolfssl/wolfssl/wolfcrypt/ed25519.h" - "../../src/wolfssl/wolfssl/wolfcrypt/ed448.h" - "../../src/wolfssl/wolfssl/wolfcrypt/error-crypt.h" - "../../src/wolfssl/wolfssl/wolfcrypt/ext_lms.h" - "../../src/wolfssl/wolfssl/wolfcrypt/ext_mlkem.h" - "../../src/wolfssl/wolfssl/wolfcrypt/ext_xmss.h" - "../../src/wolfssl/wolfssl/wolfcrypt/falcon.h" - "../../src/wolfssl/wolfssl/wolfcrypt/fe_448.h" - "../../src/wolfssl/wolfssl/wolfcrypt/fe_operations.h" - "../../src/wolfssl/wolfssl/wolfcrypt/fips_test.h" - "../../src/wolfssl/wolfssl/wolfcrypt/ge_448.h" - "../../src/wolfssl/wolfssl/wolfcrypt/ge_operations.h" - "../../src/wolfssl/wolfssl/wolfcrypt/hash.h" - "../../src/wolfssl/wolfssl/wolfcrypt/hmac.h" - "../../src/wolfssl/wolfssl/wolfcrypt/hpke.h" - "../../src/wolfssl/wolfssl/wolfcrypt/integer.h" - "../../src/wolfssl/wolfssl/wolfcrypt/kdf.h" - "../../src/wolfssl/wolfssl/wolfcrypt/libwolfssl_sources.h" - "../../src/wolfssl/wolfssl/wolfcrypt/libwolfssl_sources_asm.h" - "../../src/wolfssl/wolfssl/wolfcrypt/lms.h" - "../../src/wolfssl/wolfssl/wolfcrypt/logging.h" - "../../src/wolfssl/wolfssl/wolfcrypt/md2.h" - "../../src/wolfssl/wolfssl/wolfcrypt/md4.h" - "../../src/wolfssl/wolfssl/wolfcrypt/md5.h" - "../../src/wolfssl/wolfssl/wolfcrypt/mem_track.h" - "../../src/wolfssl/wolfssl/wolfcrypt/memory.h" - "../../src/wolfssl/wolfssl/wolfcrypt/misc.h" - "../../src/wolfssl/wolfssl/wolfcrypt/mlkem.h" - "../../src/wolfssl/wolfssl/wolfcrypt/mpi_class.h" - "../../src/wolfssl/wolfssl/wolfcrypt/mpi_superclass.h" - "../../src/wolfssl/wolfssl/wolfcrypt/oid_sum.h" - "../../src/wolfssl/wolfssl/wolfcrypt/pkcs11.h" - "../../src/wolfssl/wolfssl/wolfcrypt/pkcs12.h" - "../../src/wolfssl/wolfssl/wolfcrypt/pkcs7.h" - "../../src/wolfssl/wolfssl/wolfcrypt/poly1305.h" - "../../src/wolfssl/wolfssl/wolfcrypt/pwdbased.h" - "../../src/wolfssl/wolfssl/wolfcrypt/random.h" - "../../src/wolfssl/wolfssl/wolfcrypt/rc2.h" - "../../src/wolfssl/wolfssl/wolfcrypt/ripemd.h" - "../../src/wolfssl/wolfssl/wolfcrypt/rsa.h" - "../../src/wolfssl/wolfssl/wolfcrypt/sakke.h" - "../../src/wolfssl/wolfssl/wolfcrypt/selftest.h" - "../../src/wolfssl/wolfssl/wolfcrypt/settings.h" - "../../src/wolfssl/wolfssl/wolfcrypt/sha.h" - "../../src/wolfssl/wolfssl/wolfcrypt/sha256.h" - "../../src/wolfssl/wolfssl/wolfcrypt/sha3.h" - "../../src/wolfssl/wolfssl/wolfcrypt/sha512.h" - "../../src/wolfssl/wolfssl/wolfcrypt/signature.h" - "../../src/wolfssl/wolfssl/wolfcrypt/siphash.h" - "../../src/wolfssl/wolfssl/wolfcrypt/sp.h" - "../../src/wolfssl/wolfssl/wolfcrypt/sp_int.h" - "../../src/wolfssl/wolfssl/wolfcrypt/sphincs.h" - "../../src/wolfssl/wolfssl/wolfcrypt/srp.h" - "../../src/wolfssl/wolfssl/wolfcrypt/tfm.h" - "../../src/wolfssl/wolfssl/wolfcrypt/types.h" - "../../src/wolfssl/wolfssl/wolfcrypt/user_settings.h" - "../../src/wolfssl/wolfssl/wolfcrypt/visibility.h" - "../../src/wolfssl/wolfssl/wolfcrypt/wc_encrypt.h" - "../../src/wolfssl/wolfssl/wolfcrypt/wc_lms.h" - "../../src/wolfssl/wolfssl/wolfcrypt/wc_mlkem.h" - "../../src/wolfssl/wolfssl/wolfcrypt/wc_pkcs11.h" - "../../src/wolfssl/wolfssl/wolfcrypt/wc_port.h" - "../../src/wolfssl/wolfssl/wolfcrypt/wc_xmss.h" - "../../src/wolfssl/wolfssl/wolfcrypt/wolfevent.h" - "../../src/wolfssl/wolfssl/wolfcrypt/wolfmath.h" - "../../src/wolfssl/wolfssl/wolfcrypt/xmss.h" ) + "../../src/ssl/wolfcrypt/aes.c" + "../../src/ssl/wolfcrypt/arc4.c" + "../../src/ssl/wolfcrypt/ascon.c" + "../../src/ssl/wolfcrypt/asm.c" + "../../src/ssl/wolfcrypt/asn.c" + "../../src/ssl/wolfcrypt/blake2b.c" + "../../src/ssl/wolfcrypt/blake2s.c" + "../../src/ssl/wolfcrypt/camellia.c" + "../../src/ssl/wolfcrypt/chacha.c" + "../../src/ssl/wolfcrypt/chacha20_poly1305.c" + "../../src/ssl/wolfcrypt/cmac.c" + "../../src/ssl/wolfcrypt/coding.c" + "../../src/ssl/wolfcrypt/compress.c" + "../../src/ssl/wolfcrypt/cpuid.c" + "../../src/ssl/wolfcrypt/cryptocb.c" + "../../src/ssl/wolfcrypt/curve25519.c" + "../../src/ssl/wolfcrypt/curve448.c" + "../../src/ssl/wolfcrypt/des3.c" + "../../src/ssl/wolfcrypt/dh.c" + "../../src/ssl/wolfcrypt/dilithium.c" + "../../src/ssl/wolfcrypt/dsa.c" + "../../src/ssl/wolfcrypt/ecc.c" + "../../src/ssl/wolfcrypt/eccsi.c" + "../../src/ssl/wolfcrypt/ed25519.c" + "../../src/ssl/wolfcrypt/ed448.c" + "../../src/ssl/wolfcrypt/error1.c" + "../../src/ssl/wolfcrypt/ext_lms.c" + "../../src/ssl/wolfcrypt/ext_mlkem.c" + "../../src/ssl/wolfcrypt/ext_xmss.c" + "../../src/ssl/wolfcrypt/falcon.c" + "../../src/ssl/wolfcrypt/fe_448.c" + "../../src/ssl/wolfcrypt/fe_low_mem.c" + "../../src/ssl/wolfcrypt/fe_operations.c" + "../../src/ssl/wolfcrypt/fe_x25519_128.h" + "../../src/ssl/wolfcrypt/ge_448.c" + "../../src/ssl/wolfcrypt/ge_low_mem.c" + "../../src/ssl/wolfcrypt/ge_operations.c" + "../../src/ssl/wolfcrypt/hash.c" + "../../src/ssl/wolfcrypt/hmac.c" + "../../src/ssl/wolfcrypt/hpke.c" + "../../src/ssl/wolfcrypt/integer.c" + "../../src/ssl/wolfcrypt/kdf.c" + "../../src/ssl/wolfcrypt/logging.c" + "../../src/ssl/wolfcrypt/md2.c" + "../../src/ssl/wolfcrypt/md4.c" + "../../src/ssl/wolfcrypt/md5.c" + "../../src/ssl/wolfcrypt/memory1.c" + "../../src/ssl/wolfcrypt/pkcs12.c" + "../../src/ssl/wolfcrypt/pkcs7.c" + "../../src/ssl/wolfcrypt/poly1305.c" + "../../src/ssl/wolfcrypt/pwdbased.c" + "../../src/ssl/wolfcrypt/random.c" + "../../src/ssl/wolfcrypt/rc2.c" + "../../src/ssl/wolfcrypt/ripemd.c" + "../../src/ssl/wolfcrypt/rsa.c" + "../../src/ssl/wolfcrypt/sakke.c" + "../../src/ssl/wolfcrypt/sha.c" + "../../src/ssl/wolfcrypt/sha256.c" + "../../src/ssl/wolfcrypt/sha3.c" + "../../src/ssl/wolfcrypt/sha512.c" + "../../src/ssl/wolfcrypt/signature.c" + "../../src/ssl/wolfcrypt/siphash.c" + "../../src/ssl/wolfcrypt/sp_arm32.c" + "../../src/ssl/wolfcrypt/sp_arm64.c" + "../../src/ssl/wolfcrypt/sp_armthumb.c" + "../../src/ssl/wolfcrypt/sp_c32.c" + "../../src/ssl/wolfcrypt/sp_c64.c" + "../../src/ssl/wolfcrypt/sp_cortexm.c" + "../../src/ssl/wolfcrypt/sp_dsp32.c" + "../../src/ssl/wolfcrypt/sp_int.c" + "../../src/ssl/wolfcrypt/sp_x86_64.c" + "../../src/ssl/wolfcrypt/sphincs.c" + "../../src/ssl/wolfcrypt/srp.c" + "../../src/ssl/wolfcrypt/tfm.c" + "../../src/ssl/wolfcrypt/wc_dsp.c" + "../../src/ssl/wolfcrypt/wc_encrypt.c" + "../../src/ssl/wolfcrypt/wc_lms.c" + "../../src/ssl/wolfcrypt/wc_lms_impl.c" + "../../src/ssl/wolfcrypt/wc_mlkem.c" + "../../src/ssl/wolfcrypt/wc_mlkem_poly.c" + "../../src/ssl/wolfcrypt/wc_pkcs11.c" + "../../src/ssl/wolfcrypt/wc_port.c" + "../../src/ssl/wolfcrypt/wc_xmss.c" + "../../src/ssl/wolfcrypt/wc_xmss_impl.c" + "../../src/ssl/wolfcrypt/wolfevent.c" + "../../src/ssl/wolfcrypt/wolfmath.c" + "../../src/ssl/wolfssl/crl.c" + "../../src/ssl/wolfssl/dtls.c" + "../../src/ssl/wolfssl/dtls13.c" + "../../src/ssl/wolfssl/internal.c" + "../../src/ssl/wolfssl/keys.c" + "../../src/ssl/wolfssl/ocsp.c" + "../../src/ssl/wolfssl/quic.c" + "../../src/ssl/wolfssl/sniffer.c" + "../../src/ssl/wolfssl/ssl.c" + "../../src/ssl/wolfssl/tls.c" + "../../src/ssl/wolfssl/tls13.c" + "../../src/ssl/wolfssl/wolfio.c" + "../../src/ssl/wolfssl/src/bio.c" + "../../src/ssl/wolfssl/src/conf.c" + "../../src/ssl/wolfssl/src/evp.c" + "../../src/ssl/wolfssl/src/pk.c" + "../../src/ssl/wolfssl/src/ssl_asn1.c" + "../../src/ssl/wolfssl/src/ssl_bn.c" + "../../src/ssl/wolfssl/src/ssl_certman.c" + "../../src/ssl/wolfssl/src/ssl_crypto.c" + "../../src/ssl/wolfssl/src/ssl_load.c" + "../../src/ssl/wolfssl/src/ssl_misc.c" + "../../src/ssl/wolfssl/src/ssl_p7p12.c" + "../../src/ssl/wolfssl/src/ssl_sess.c" + "../../src/ssl/wolfssl/src/ssl_sk.c" + "../../src/ssl/wolfssl/src/x509.c" + "../../src/ssl/wolfssl/src/x509_str.c" ) # ${CANONICAL_LIB_NAME} project specific include directory normalization for build. #------------------------------------------------------------------------------ @@ -597,7 +437,7 @@ endif() #------------------------------------------------------------------------------ target_include_directories( ${CANONICAL_LIB_NAME} PRIVATE "../../include" - "../../src/wolfssl" + "../../include/bitcoin/ssl" ${bitcoin_system_FOR_BUILD_INCLUDE_DIRS} ) target_include_directories( ${CANONICAL_LIB_NAME} PUBLIC @@ -751,7 +591,8 @@ if (with-tests) # libbitcoin-network-test project specific include directories. #------------------------------------------------------------------------------ target_include_directories( libbitcoin-network-test PRIVATE - "../../include" ) + "../../include" + "../../include/bitcoin/ssl" ) # libbitcoin-network-test project specific libraries/linker flags. #------------------------------------------------------------------------------ diff --git a/builds/msvc/vs2022/libbitcoin-network.import.props b/builds/msvc/vs2022/libbitcoin-network.import.props index c88f62d5d..d963a1a34 100644 --- a/builds/msvc/vs2022/libbitcoin-network.import.props +++ b/builds/msvc/vs2022/libbitcoin-network.import.props @@ -15,9 +15,13 @@ + + $(ProjectDir)..\..\..\..\..\libbitcoin-network\include\bitcoin\ssl\;%(AdditionalIncludeDirectories) $(ProjectDir)..\..\..\..\..\libbitcoin-network\include\;%(AdditionalIncludeDirectories) /bigobj %(AdditionalOptions) BCT_STATIC;%(PreprocessorDefinitions) + + WOLFSSL_USER_SETTINGS;%(PreprocessorDefinitions) libbitcoin-network.lib;%(AdditionalDependencies) diff --git a/builds/msvc/vs2022/libbitcoin-network/libbitcoin-network.props b/builds/msvc/vs2022/libbitcoin-network/libbitcoin-network.props index c7a03262c..5dbf3d3a7 100644 --- a/builds/msvc/vs2022/libbitcoin-network/libbitcoin-network.props +++ b/builds/msvc/vs2022/libbitcoin-network/libbitcoin-network.props @@ -11,8 +11,8 @@ - - $(RepoRoot)src\wolfssl\;%(AdditionalIncludeDirectories) + + $(RepoRoot)include\bitcoin\ssl\;%(AdditionalIncludeDirectories) $(RepoRoot)include\;%(AdditionalIncludeDirectories) /bigobj %(AdditionalOptions) false diff --git a/builds/msvc/vs2022/libbitcoin-network/libbitcoin-network.vcxproj b/builds/msvc/vs2022/libbitcoin-network/libbitcoin-network.vcxproj index a0f0af7cc..77e5837d4 100644 --- a/builds/msvc/vs2022/libbitcoin-network/libbitcoin-network.vcxproj +++ b/builds/msvc/vs2022/libbitcoin-network/libbitcoin-network.vcxproj @@ -121,6 +121,7 @@ + @@ -218,119 +219,118 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -481,167 +481,176 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/builds/msvc/vs2022/libbitcoin-network/libbitcoin-network.vcxproj.filters b/builds/msvc/vs2022/libbitcoin-network/libbitcoin-network.vcxproj.filters index a230ee5c5..bcd62f3f8 100644 --- a/builds/msvc/vs2022/libbitcoin-network/libbitcoin-network.vcxproj.filters +++ b/builds/msvc/vs2022/libbitcoin-network/libbitcoin-network.vcxproj.filters @@ -8,88 +8,109 @@ - {564EB540-D6B6-425C-0000-000000000006} + {564EB540-D6B6-425C-0000-000000000003} - {564EB540-D6B6-425C-0000-000000000007} + {564EB540-D6B6-425C-0000-000000000004} - {564EB540-D6B6-425C-0000-000000000008} + {564EB540-D6B6-425C-0000-000000000005} - {564EB540-D6B6-425C-0000-000000000009} + {564EB540-D6B6-425C-0000-000000000007} - {564EB540-D6B6-425C-0000-000000000004} + {564EB540-D6B6-425C-0000-000000000002} - {564EB540-D6B6-425C-0000-000000000010} + {564EB540-D6B6-425C-0000-000000000008} - {564EB540-D6B6-425C-0000-0000000000A1} + {564EB540-D6B6-425C-0000-000000000009} - {564EB540-D6B6-425C-0000-0000000000B1} + {564EB540-D6B6-425C-0000-000000000010} - {564EB540-D6B6-425C-0000-000000000005} + {564EB540-D6B6-425C-0000-000000000003} - {564EB540-D6B6-425C-0000-000000000009} + {564EB540-D6B6-425C-0000-000000000007} - {564EB540-D6B6-425C-0000-000000000006} + {564EB540-D6B6-425C-0000-000000000004} - {564EB540-D6B6-425C-0000-000000000007} + {564EB540-D6B6-425C-0000-000000000005} - {564EB540-D6B6-425C-0000-000000000010} + {564EB540-D6B6-425C-0000-000000000008} - {564EB540-D6B6-425C-0000-000000000008} + {564EB540-D6B6-425C-0000-000000000006} - {564EB540-D6B6-425C-0000-0000000000C1} + {564EB540-D6B6-425C-0000-0000000000A1} - {564EB540-D6B6-425C-0000-0000000000D1} + {564EB540-D6B6-425C-0000-0000000000B1} - {564EB540-D6B6-425C-0000-0000000000E1} + {564EB540-D6B6-425C-0000-0000000000C1} - {564EB540-D6B6-425C-0000-000000000011} + {564EB540-D6B6-425C-0000-000000000009} - {564EB540-D6B6-425C-0000-0000000000C2} + {564EB540-D6B6-425C-0000-0000000000A2} - {564EB540-D6B6-425C-0000-0000000000A2} + {564EB540-D6B6-425C-0000-000000000010} - {564EB540-D6B6-425C-0000-0000000000D2} + {564EB540-D6B6-425C-0000-0000000000B2} - {564EB540-D6B6-425C-0000-0000000000E2} + {564EB540-D6B6-425C-0000-0000000000C2} - {564EB540-D6B6-425C-0000-0000000000B2} + {564EB540-D6B6-425C-0000-000000000011} - {564EB540-D6B6-425C-0000-0000000000F2} + {564EB540-D6B6-425C-0000-0000000000D2} - {564EB540-D6B6-425C-0000-0000000000F1} + {564EB540-D6B6-425C-0000-0000000000D1} - {564EB540-D6B6-425C-0000-000000000002} + {564EB540-D6B6-425C-0000-0000000000E1} + {564EB540-D6B6-425C-0000-0000000000F1} + + + {564EB540-D6B6-425C-0000-000000000006} + + + {564EB540-D6B6-425C-0000-0000000000E2} + + + {564EB540-D6B6-425C-0000-0000000000F2} + + + {564EB540-D6B6-425C-0000-000000000004} + + {564EB540-D6B6-425C-0000-000000000003} + + {564EB540-D6B6-425C-0000-000000000005} + + + {564EB540-D6B6-425C-0000-000000000006} + - {564EB540-D6B6-425C-0000-000000000003} + {564EB540-D6B6-425C-0000-000000000007} {564EB540-D6B6-425C-0000-000000000000} @@ -133,29 +154,23 @@ {564EB540-D6B6-425C-0000-000000000008} - + {564EB540-D6B6-425C-0000-000000000009} - + {564EB540-D6B6-425C-0000-00000000000F} - + {564EB540-D6B6-425C-0000-000000000001} - - {564EB540-D6B6-425C-0000-000000000003} - - + {564EB540-D6B6-425C-0000-000000000002} - - {564EB540-D6B6-425C-0000-000000000004} - - - {564EB540-D6B6-425C-0000-000000000005} - + + include\bitcoin\ssl\wolfcrypt\src + src\async @@ -435,344 +450,341 @@ src - - src\wolfssl\src + + src\ssl\wolfcrypt - - src\wolfssl\src + + src\ssl\wolfcrypt - - src\wolfssl\src + + src\ssl\wolfcrypt - - src\wolfssl\src + + src\ssl\wolfcrypt - - src\wolfssl\src + + src\ssl\wolfcrypt - - src\wolfssl\src + + src\ssl\wolfcrypt - - src\wolfssl\src + + src\ssl\wolfcrypt - - src\wolfssl\src + + src\ssl\wolfcrypt - - src\wolfssl\src + + src\ssl\wolfcrypt - - src\wolfssl\src + + src\ssl\wolfcrypt - - src\wolfssl\src + + src\ssl\wolfcrypt - - src\wolfssl\src + + src\ssl\wolfcrypt - - src\wolfssl\src + + src\ssl\wolfcrypt - - src\wolfssl\src + + src\ssl\wolfcrypt - - src\wolfssl\src + + src\ssl\wolfcrypt - - src\wolfssl\src + + src\ssl\wolfcrypt - - src\wolfssl\src + + src\ssl\wolfcrypt - - src\wolfssl\src + + src\ssl\wolfcrypt - - src\wolfssl\src + + src\ssl\wolfcrypt - - src\wolfssl\src + + src\ssl\wolfcrypt - - src\wolfssl\src + + src\ssl\wolfcrypt - - src\wolfssl\src + + src\ssl\wolfcrypt - - src\wolfssl\src + + src\ssl\wolfcrypt - - src\wolfssl\src + + src\ssl\wolfcrypt - - src\wolfssl\src + + src\ssl\wolfcrypt - - src\wolfssl\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfcrypt - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfssl - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfssl - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfssl - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfssl - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfssl - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfssl - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfssl - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfssl - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfssl\src - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfssl\src - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfssl\src - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfssl\src - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfssl\src - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfssl\src - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfssl\src - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfssl\src - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfssl\src - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfssl\src - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfssl\src - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfssl\src - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfssl\src - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfssl\src - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfssl\src - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfssl - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfssl - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfssl - - src\wolfssl\wolfcrypt\src - - - src\wolfssl\wolfcrypt\src + + src\ssl\wolfssl @@ -1220,488 +1232,515 @@ include\bitcoin\network - - src\wolfssl\wolfcrypt\src + + include\bitcoin\ssl\openssl + + + include\bitcoin\ssl\openssl + + + include\bitcoin\ssl\openssl + + + include\bitcoin\ssl\openssl + + + include\bitcoin\ssl\openssl + + + include\bitcoin\ssl\openssl + + + include\bitcoin\ssl\openssl + + + include\bitcoin\ssl\openssl + + + include\bitcoin\ssl\wolfcrypt + + + include\bitcoin\ssl\wolfssl - - src\wolfssl\wolfssl + + include\bitcoin\ssl\wolfssl - - src\wolfssl\wolfssl + + include\bitcoin\ssl\wolfssl - - src\wolfssl\wolfssl + + include\bitcoin\ssl\wolfssl - - src\wolfssl\wolfssl + + include\bitcoin\ssl\wolfssl - - src\wolfssl\wolfssl + + include\bitcoin\ssl\wolfssl - - src\wolfssl\wolfssl + + include\bitcoin\ssl\wolfssl - - src\wolfssl\wolfssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl\openssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl - - src\wolfssl\wolfssl\openssl + + include\bitcoin\ssl\wolfssl - - src\wolfssl\wolfssl + + include\bitcoin\ssl\wolfssl - - src\wolfssl\wolfssl + + include\bitcoin\ssl\wolfssl - - src\wolfssl\wolfssl + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl\wolfcrypt - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl - - src\wolfssl\wolfssl\wolfcrypt + + include\bitcoin\ssl\wolfssl - - src\wolfssl\wolfssl + + src\ssl\wolfcrypt diff --git a/configure.ac b/configure.ac index c915e4a66..ebe39539c 100644 --- a/configure.ac +++ b/configure.ac @@ -124,6 +124,13 @@ AC_ARG_ENABLE([isystem], AC_MSG_RESULT([$enable_isystem]) +# Set preprocessor defines. +#============================================================================== +# Unconditionally define the preprocessor symbol WOLFSSL_USER_SETTINGS. +#------------------------------------------------------------------------------ +AC_DEFINE([WOLFSSL_USER_SETTINGS]) + + # Set flags. #============================================================================== # Require c++20 for all c++ products. diff --git a/include/bitcoin/network/async/asio.hpp b/include/bitcoin/network/async/asio.hpp index be5ed429e..c2123fc04 100644 --- a/include/bitcoin/network/async/asio.hpp +++ b/include/bitcoin/network/async/asio.hpp @@ -56,10 +56,24 @@ typedef asio::acceptor::reuse_address reuse_address; /// connect typedef tcp::socket socket; typedef std::shared_ptr socket_ptr; - constexpr auto max_connections = boost::asio::socket_base::max_listen_connections; +/// ssl +namespace ssl { + +typedef boost::asio::ssl::context context; +typedef boost::asio::ssl::stream socket; + +// Just testing out the ssl socket compile. +inline void foobar() THROWS +{ + io_context my_io_context{}; + context my_ssl_context{ context::tlsv12_server }; + socket my_ssl_socket{ my_io_context, my_ssl_context }; +} + +} // namespace ssl } // namespace asio } // namespace network } // namespace libbitcoin diff --git a/include/bitcoin/network/boost.hpp b/include/bitcoin/network/boost.hpp index daf6f21a5..2c98f2645 100644 --- a/include/bitcoin/network/boost.hpp +++ b/include/bitcoin/network/boost.hpp @@ -21,7 +21,14 @@ #include +// See for wolf/openssl includes. +#define BOOST_ASIO_USE_WOLFSSL +#define BOOST_ASIO_NO_DEPRECATED + +// The /ssl/openssl/ directory is provided for direct ssl import by boost, +// which is required because is included. #include +#include #include #include #include diff --git a/include/bitcoin/ssl/openssl/conf.h b/include/bitcoin/ssl/openssl/conf.h new file mode 100644 index 000000000..cc8e42ed5 --- /dev/null +++ b/include/bitcoin/ssl/openssl/conf.h @@ -0,0 +1,25 @@ +/** + * Copyright (c) 2011-2025 libbitcoin developers (see AUTHORS) + * + * This file is part of libbitcoin. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +#ifndef LIBBITCOIN_NETWORK_SSL_OPENSSL_CONF_H +#define LIBBITCOIN_NETWORK_SSL_OPENSSL_CONF_H + +// Forward load of . +#include + +#endif diff --git a/include/bitcoin/ssl/openssl/dh.h b/include/bitcoin/ssl/openssl/dh.h new file mode 100644 index 000000000..37a73e70d --- /dev/null +++ b/include/bitcoin/ssl/openssl/dh.h @@ -0,0 +1,25 @@ +/** + * Copyright (c) 2011-2025 libbitcoin developers (see AUTHORS) + * + * This file is part of libbitcoin. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +#ifndef LIBBITCOIN_NETWORK_SSL_OPENSSL_DH_H +#define LIBBITCOIN_NETWORK_SSL_OPENSSL_DH_H + +// Forward load of . +#include + +#endif diff --git a/include/bitcoin/ssl/openssl/err.h b/include/bitcoin/ssl/openssl/err.h new file mode 100644 index 000000000..4ee222fba --- /dev/null +++ b/include/bitcoin/ssl/openssl/err.h @@ -0,0 +1,25 @@ +/** + * Copyright (c) 2011-2025 libbitcoin developers (see AUTHORS) + * + * This file is part of libbitcoin. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +#ifndef LIBBITCOIN_NETWORK_SSL_OPENSSL_ERR_H +#define LIBBITCOIN_NETWORK_SSL_OPENSSL_ERR_H + +// Forward load of . +#include + +#endif diff --git a/include/bitcoin/ssl/openssl/openssl.h b/include/bitcoin/ssl/openssl/openssl.h new file mode 100644 index 000000000..5a20df777 --- /dev/null +++ b/include/bitcoin/ssl/openssl/openssl.h @@ -0,0 +1,26 @@ +/** + * Copyright (c) 2011-2025 libbitcoin developers (see AUTHORS) + * + * This file is part of libbitcoin. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +#ifndef LIBBITCOIN_NETWORK_SSL_OPENSSL_OPENSSL_H +#define LIBBITCOIN_NETWORK_SSL_OPENSSL_OPENSSL_H + +// This directory is defined by libbitcoin to provide the expected path for +// boost::asio to #include the contained headers. Each header forwards to: +// #include + +#endif diff --git a/include/bitcoin/ssl/openssl/rsa.h b/include/bitcoin/ssl/openssl/rsa.h new file mode 100644 index 000000000..c4e5164e5 --- /dev/null +++ b/include/bitcoin/ssl/openssl/rsa.h @@ -0,0 +1,25 @@ +/** + * Copyright (c) 2011-2025 libbitcoin developers (see AUTHORS) + * + * This file is part of libbitcoin. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +#ifndef LIBBITCOIN_NETWORK_SSL_OPENSSL_RSA_H +#define LIBBITCOIN_NETWORK_SSL_OPENSSL_RSA_H + +// Forward load of . +#include + +#endif diff --git a/include/bitcoin/ssl/openssl/ssl.h b/include/bitcoin/ssl/openssl/ssl.h new file mode 100644 index 000000000..cc2149aa8 --- /dev/null +++ b/include/bitcoin/ssl/openssl/ssl.h @@ -0,0 +1,25 @@ +/** + * Copyright (c) 2011-2025 libbitcoin developers (see AUTHORS) + * + * This file is part of libbitcoin. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +#ifndef LIBBITCOIN_NETWORK_SSL_OPENSSL_SSL_H +#define LIBBITCOIN_NETWORK_SSL_OPENSSL_SSL_H + +// Forward load of . +#include + +#endif diff --git a/include/bitcoin/ssl/openssl/x509.h b/include/bitcoin/ssl/openssl/x509.h new file mode 100644 index 000000000..92bd52737 --- /dev/null +++ b/include/bitcoin/ssl/openssl/x509.h @@ -0,0 +1,25 @@ +/** + * Copyright (c) 2011-2025 libbitcoin developers (see AUTHORS) + * + * This file is part of libbitcoin. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +#ifndef LIBBITCOIN_NETWORK_SSL_OPENSSL_X509_H +#define LIBBITCOIN_NETWORK_SSL_OPENSSL_X509_H + +// Forward load of . +#include + +#endif diff --git a/include/bitcoin/ssl/openssl/x509v3.h b/include/bitcoin/ssl/openssl/x509v3.h new file mode 100644 index 000000000..2d1713450 --- /dev/null +++ b/include/bitcoin/ssl/openssl/x509v3.h @@ -0,0 +1,25 @@ +/** + * Copyright (c) 2011-2025 libbitcoin developers (see AUTHORS) + * + * This file is part of libbitcoin. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +#ifndef LIBBITCOIN_NETWORK_SSL_OPENSSL_X509V3_H +#define LIBBITCOIN_NETWORK_SSL_OPENSSL_X509V3_H + +// Forward load of . +#include + +#endif diff --git a/src/wolfssl/wolfcrypt/src/misc.c b/include/bitcoin/ssl/wolfcrypt/src/misc.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/misc.c rename to include/bitcoin/ssl/wolfcrypt/src/misc.c diff --git a/include/bitcoin/ssl/wolfcrypt/wolfcrypt.h b/include/bitcoin/ssl/wolfcrypt/wolfcrypt.h new file mode 100644 index 000000000..1ff8271d2 --- /dev/null +++ b/include/bitcoin/ssl/wolfcrypt/wolfcrypt.h @@ -0,0 +1,26 @@ +/** + * Copyright (c) 2011-2025 libbitcoin developers (see AUTHORS) + * + * This file is part of libbitcoin. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +#ifndef LIBBITCOIN_NETWORK_SSL_WOLFCRYPT_WOLFCRYPT_H +#define LIBBITCOIN_NETWORK_SSL_WOLFCRYPT_WOLFCRYPT_H + +// This directory is defined by libbitcoin to provide the expected path so that +// wolfssl sources may remain unmodified and specify: +// #include + +#endif diff --git a/src/wolfssl/wolfssl/callbacks.h b/include/bitcoin/ssl/wolfssl/callbacks.h similarity index 100% rename from src/wolfssl/wolfssl/callbacks.h rename to include/bitcoin/ssl/wolfssl/callbacks.h diff --git a/src/wolfssl/wolfssl/certs_test.h b/include/bitcoin/ssl/wolfssl/certs_test.h similarity index 100% rename from src/wolfssl/wolfssl/certs_test.h rename to include/bitcoin/ssl/wolfssl/certs_test.h diff --git a/src/wolfssl/wolfssl/certs_test_sm.h b/include/bitcoin/ssl/wolfssl/certs_test_sm.h similarity index 100% rename from src/wolfssl/wolfssl/certs_test_sm.h rename to include/bitcoin/ssl/wolfssl/certs_test_sm.h diff --git a/src/wolfssl/wolfssl/crl.h b/include/bitcoin/ssl/wolfssl/crl.h similarity index 100% rename from src/wolfssl/wolfssl/crl.h rename to include/bitcoin/ssl/wolfssl/crl.h diff --git a/src/wolfssl/wolfssl/error-ssl.h b/include/bitcoin/ssl/wolfssl/error-ssl.h similarity index 100% rename from src/wolfssl/wolfssl/error-ssl.h rename to include/bitcoin/ssl/wolfssl/error-ssl.h diff --git a/src/wolfssl/wolfssl/internal.h b/include/bitcoin/ssl/wolfssl/internal.h similarity index 100% rename from src/wolfssl/wolfssl/internal.h rename to include/bitcoin/ssl/wolfssl/internal.h diff --git a/src/wolfssl/wolfssl/ocsp.h b/include/bitcoin/ssl/wolfssl/ocsp.h similarity index 100% rename from src/wolfssl/wolfssl/ocsp.h rename to include/bitcoin/ssl/wolfssl/ocsp.h diff --git a/src/wolfssl/wolfssl/openssl/aes.h b/include/bitcoin/ssl/wolfssl/openssl/aes.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/aes.h rename to include/bitcoin/ssl/wolfssl/openssl/aes.h diff --git a/src/wolfssl/wolfssl/openssl/asn1.h b/include/bitcoin/ssl/wolfssl/openssl/asn1.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/asn1.h rename to include/bitcoin/ssl/wolfssl/openssl/asn1.h diff --git a/src/wolfssl/wolfssl/openssl/asn1t.h b/include/bitcoin/ssl/wolfssl/openssl/asn1t.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/asn1t.h rename to include/bitcoin/ssl/wolfssl/openssl/asn1t.h diff --git a/src/wolfssl/wolfssl/openssl/bio.h b/include/bitcoin/ssl/wolfssl/openssl/bio.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/bio.h rename to include/bitcoin/ssl/wolfssl/openssl/bio.h diff --git a/src/wolfssl/wolfssl/openssl/bn.h b/include/bitcoin/ssl/wolfssl/openssl/bn.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/bn.h rename to include/bitcoin/ssl/wolfssl/openssl/bn.h diff --git a/src/wolfssl/wolfssl/openssl/buffer.h b/include/bitcoin/ssl/wolfssl/openssl/buffer.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/buffer.h rename to include/bitcoin/ssl/wolfssl/openssl/buffer.h diff --git a/src/wolfssl/wolfssl/openssl/camellia.h b/include/bitcoin/ssl/wolfssl/openssl/camellia.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/camellia.h rename to include/bitcoin/ssl/wolfssl/openssl/camellia.h diff --git a/src/wolfssl/wolfssl/openssl/cmac.h b/include/bitcoin/ssl/wolfssl/openssl/cmac.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/cmac.h rename to include/bitcoin/ssl/wolfssl/openssl/cmac.h diff --git a/src/wolfssl/wolfssl/openssl/cms.h b/include/bitcoin/ssl/wolfssl/openssl/cms.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/cms.h rename to include/bitcoin/ssl/wolfssl/openssl/cms.h diff --git a/src/wolfssl/wolfssl/openssl/compat_types.h b/include/bitcoin/ssl/wolfssl/openssl/compat_types.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/compat_types.h rename to include/bitcoin/ssl/wolfssl/openssl/compat_types.h diff --git a/src/wolfssl/wolfssl/openssl/conf.h b/include/bitcoin/ssl/wolfssl/openssl/conf.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/conf.h rename to include/bitcoin/ssl/wolfssl/openssl/conf.h diff --git a/src/wolfssl/wolfssl/openssl/crypto.h b/include/bitcoin/ssl/wolfssl/openssl/crypto.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/crypto.h rename to include/bitcoin/ssl/wolfssl/openssl/crypto.h diff --git a/src/wolfssl/wolfssl/openssl/des.h b/include/bitcoin/ssl/wolfssl/openssl/des.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/des.h rename to include/bitcoin/ssl/wolfssl/openssl/des.h diff --git a/src/wolfssl/wolfssl/openssl/dh.h b/include/bitcoin/ssl/wolfssl/openssl/dh.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/dh.h rename to include/bitcoin/ssl/wolfssl/openssl/dh.h diff --git a/src/wolfssl/wolfssl/openssl/dsa.h b/include/bitcoin/ssl/wolfssl/openssl/dsa.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/dsa.h rename to include/bitcoin/ssl/wolfssl/openssl/dsa.h diff --git a/src/wolfssl/wolfssl/openssl/ec.h b/include/bitcoin/ssl/wolfssl/openssl/ec.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/ec.h rename to include/bitcoin/ssl/wolfssl/openssl/ec.h diff --git a/src/wolfssl/wolfssl/openssl/ec25519.h b/include/bitcoin/ssl/wolfssl/openssl/ec25519.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/ec25519.h rename to include/bitcoin/ssl/wolfssl/openssl/ec25519.h diff --git a/src/wolfssl/wolfssl/openssl/ec448.h b/include/bitcoin/ssl/wolfssl/openssl/ec448.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/ec448.h rename to include/bitcoin/ssl/wolfssl/openssl/ec448.h diff --git a/src/wolfssl/wolfssl/openssl/ecdh.h b/include/bitcoin/ssl/wolfssl/openssl/ecdh.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/ecdh.h rename to include/bitcoin/ssl/wolfssl/openssl/ecdh.h diff --git a/src/wolfssl/wolfssl/openssl/ecdsa.h b/include/bitcoin/ssl/wolfssl/openssl/ecdsa.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/ecdsa.h rename to include/bitcoin/ssl/wolfssl/openssl/ecdsa.h diff --git a/src/wolfssl/wolfssl/openssl/ed25519.h b/include/bitcoin/ssl/wolfssl/openssl/ed25519.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/ed25519.h rename to include/bitcoin/ssl/wolfssl/openssl/ed25519.h diff --git a/src/wolfssl/wolfssl/openssl/ed448.h b/include/bitcoin/ssl/wolfssl/openssl/ed448.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/ed448.h rename to include/bitcoin/ssl/wolfssl/openssl/ed448.h diff --git a/src/wolfssl/wolfssl/openssl/engine.h b/include/bitcoin/ssl/wolfssl/openssl/engine.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/engine.h rename to include/bitcoin/ssl/wolfssl/openssl/engine.h diff --git a/src/wolfssl/wolfssl/openssl/err.h b/include/bitcoin/ssl/wolfssl/openssl/err.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/err.h rename to include/bitcoin/ssl/wolfssl/openssl/err.h diff --git a/src/wolfssl/wolfssl/openssl/evp.h b/include/bitcoin/ssl/wolfssl/openssl/evp.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/evp.h rename to include/bitcoin/ssl/wolfssl/openssl/evp.h diff --git a/src/wolfssl/wolfssl/openssl/fips_rand.h b/include/bitcoin/ssl/wolfssl/openssl/fips_rand.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/fips_rand.h rename to include/bitcoin/ssl/wolfssl/openssl/fips_rand.h diff --git a/src/wolfssl/wolfssl/openssl/hmac.h b/include/bitcoin/ssl/wolfssl/openssl/hmac.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/hmac.h rename to include/bitcoin/ssl/wolfssl/openssl/hmac.h diff --git a/src/wolfssl/wolfssl/openssl/kdf.h b/include/bitcoin/ssl/wolfssl/openssl/kdf.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/kdf.h rename to include/bitcoin/ssl/wolfssl/openssl/kdf.h diff --git a/src/wolfssl/wolfssl/openssl/lhash.h b/include/bitcoin/ssl/wolfssl/openssl/lhash.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/lhash.h rename to include/bitcoin/ssl/wolfssl/openssl/lhash.h diff --git a/src/wolfssl/wolfssl/openssl/md4.h b/include/bitcoin/ssl/wolfssl/openssl/md4.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/md4.h rename to include/bitcoin/ssl/wolfssl/openssl/md4.h diff --git a/src/wolfssl/wolfssl/openssl/md5.h b/include/bitcoin/ssl/wolfssl/openssl/md5.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/md5.h rename to include/bitcoin/ssl/wolfssl/openssl/md5.h diff --git a/src/wolfssl/wolfssl/openssl/modes.h b/include/bitcoin/ssl/wolfssl/openssl/modes.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/modes.h rename to include/bitcoin/ssl/wolfssl/openssl/modes.h diff --git a/src/wolfssl/wolfssl/openssl/obj_mac.h b/include/bitcoin/ssl/wolfssl/openssl/obj_mac.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/obj_mac.h rename to include/bitcoin/ssl/wolfssl/openssl/obj_mac.h diff --git a/src/wolfssl/wolfssl/openssl/objects.h b/include/bitcoin/ssl/wolfssl/openssl/objects.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/objects.h rename to include/bitcoin/ssl/wolfssl/openssl/objects.h diff --git a/src/wolfssl/wolfssl/openssl/ocsp.h b/include/bitcoin/ssl/wolfssl/openssl/ocsp.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/ocsp.h rename to include/bitcoin/ssl/wolfssl/openssl/ocsp.h diff --git a/src/wolfssl/wolfssl/openssl/opensslconf.h b/include/bitcoin/ssl/wolfssl/openssl/opensslconf.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/opensslconf.h rename to include/bitcoin/ssl/wolfssl/openssl/opensslconf.h diff --git a/src/wolfssl/wolfssl/openssl/opensslv.h b/include/bitcoin/ssl/wolfssl/openssl/opensslv.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/opensslv.h rename to include/bitcoin/ssl/wolfssl/openssl/opensslv.h diff --git a/src/wolfssl/wolfssl/openssl/ossl_typ.h b/include/bitcoin/ssl/wolfssl/openssl/ossl_typ.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/ossl_typ.h rename to include/bitcoin/ssl/wolfssl/openssl/ossl_typ.h diff --git a/src/wolfssl/wolfssl/openssl/pem.h b/include/bitcoin/ssl/wolfssl/openssl/pem.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/pem.h rename to include/bitcoin/ssl/wolfssl/openssl/pem.h diff --git a/src/wolfssl/wolfssl/openssl/pkcs12.h b/include/bitcoin/ssl/wolfssl/openssl/pkcs12.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/pkcs12.h rename to include/bitcoin/ssl/wolfssl/openssl/pkcs12.h diff --git a/src/wolfssl/wolfssl/openssl/pkcs7.h b/include/bitcoin/ssl/wolfssl/openssl/pkcs7.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/pkcs7.h rename to include/bitcoin/ssl/wolfssl/openssl/pkcs7.h diff --git a/src/wolfssl/wolfssl/openssl/rand.h b/include/bitcoin/ssl/wolfssl/openssl/rand.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/rand.h rename to include/bitcoin/ssl/wolfssl/openssl/rand.h diff --git a/src/wolfssl/wolfssl/openssl/rc4.h b/include/bitcoin/ssl/wolfssl/openssl/rc4.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/rc4.h rename to include/bitcoin/ssl/wolfssl/openssl/rc4.h diff --git a/src/wolfssl/wolfssl/openssl/ripemd.h b/include/bitcoin/ssl/wolfssl/openssl/ripemd.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/ripemd.h rename to include/bitcoin/ssl/wolfssl/openssl/ripemd.h diff --git a/src/wolfssl/wolfssl/openssl/rsa.h b/include/bitcoin/ssl/wolfssl/openssl/rsa.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/rsa.h rename to include/bitcoin/ssl/wolfssl/openssl/rsa.h diff --git a/src/wolfssl/wolfssl/openssl/safestack.h b/include/bitcoin/ssl/wolfssl/openssl/safestack.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/safestack.h rename to include/bitcoin/ssl/wolfssl/openssl/safestack.h diff --git a/src/wolfssl/wolfssl/openssl/sha.h b/include/bitcoin/ssl/wolfssl/openssl/sha.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/sha.h rename to include/bitcoin/ssl/wolfssl/openssl/sha.h diff --git a/src/wolfssl/wolfssl/openssl/sha3.h b/include/bitcoin/ssl/wolfssl/openssl/sha3.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/sha3.h rename to include/bitcoin/ssl/wolfssl/openssl/sha3.h diff --git a/src/wolfssl/wolfssl/openssl/srp.h b/include/bitcoin/ssl/wolfssl/openssl/srp.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/srp.h rename to include/bitcoin/ssl/wolfssl/openssl/srp.h diff --git a/src/wolfssl/wolfssl/openssl/ssl.h b/include/bitcoin/ssl/wolfssl/openssl/ssl.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/ssl.h rename to include/bitcoin/ssl/wolfssl/openssl/ssl.h diff --git a/src/wolfssl/wolfssl/openssl/stack.h b/include/bitcoin/ssl/wolfssl/openssl/stack.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/stack.h rename to include/bitcoin/ssl/wolfssl/openssl/stack.h diff --git a/src/wolfssl/wolfssl/openssl/tls1.h b/include/bitcoin/ssl/wolfssl/openssl/tls1.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/tls1.h rename to include/bitcoin/ssl/wolfssl/openssl/tls1.h diff --git a/src/wolfssl/wolfssl/openssl/txt_db.h b/include/bitcoin/ssl/wolfssl/openssl/txt_db.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/txt_db.h rename to include/bitcoin/ssl/wolfssl/openssl/txt_db.h diff --git a/src/wolfssl/wolfssl/openssl/x509.h b/include/bitcoin/ssl/wolfssl/openssl/x509.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/x509.h rename to include/bitcoin/ssl/wolfssl/openssl/x509.h diff --git a/src/wolfssl/wolfssl/openssl/x509_vfy.h b/include/bitcoin/ssl/wolfssl/openssl/x509_vfy.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/x509_vfy.h rename to include/bitcoin/ssl/wolfssl/openssl/x509_vfy.h diff --git a/src/wolfssl/wolfssl/openssl/x509v3.h b/include/bitcoin/ssl/wolfssl/openssl/x509v3.h similarity index 100% rename from src/wolfssl/wolfssl/openssl/x509v3.h rename to include/bitcoin/ssl/wolfssl/openssl/x509v3.h diff --git a/include/bitcoin/ssl/wolfssl/options.h b/include/bitcoin/ssl/wolfssl/options.h new file mode 100644 index 000000000..4774966c8 --- /dev/null +++ b/include/bitcoin/ssl/wolfssl/options.h @@ -0,0 +1,30 @@ +/** + * Copyright (c) 2011-2025 libbitcoin developers (see AUTHORS) + * + * This file is part of libbitcoin. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +#ifndef LIBBITCOIN_NETWORK_SSL_WOLFSSL_OPTIONS_H +#define LIBBITCOIN_NETWORK_SSL_WOLFSSL_OPTIONS_H + +// This ensures boost sees all configuration, but probably not used. +#include + +// Boost ASIO pulls in this file when BOOST_ASIO_USE_WOLFSSL is defined. +////#if defined(BOOST_ASIO_USE_WOLFSSL) +//// #include +////#endif + +#endif diff --git a/src/wolfssl/wolfssl/quic.h b/include/bitcoin/ssl/wolfssl/quic.h similarity index 100% rename from src/wolfssl/wolfssl/quic.h rename to include/bitcoin/ssl/wolfssl/quic.h diff --git a/src/wolfssl/wolfssl/ssl.h b/include/bitcoin/ssl/wolfssl/ssl.h similarity index 100% rename from src/wolfssl/wolfssl/ssl.h rename to include/bitcoin/ssl/wolfssl/ssl.h diff --git a/src/wolfssl/wolfssl/test.h b/include/bitcoin/ssl/wolfssl/test.h similarity index 100% rename from src/wolfssl/wolfssl/test.h rename to include/bitcoin/ssl/wolfssl/test.h diff --git a/src/wolfssl/wolfssl/version.h b/include/bitcoin/ssl/wolfssl/version.h similarity index 100% rename from src/wolfssl/wolfssl/version.h rename to include/bitcoin/ssl/wolfssl/version.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/aes.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/aes.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/aes.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/aes.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/arc4.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/arc4.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/arc4.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/arc4.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/ascon.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/ascon.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/ascon.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/ascon.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/asn.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/asn.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/asn.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/asn.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/asn_public.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/asn_public.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/asn_public.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/asn_public.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/blake2-impl.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/blake2-impl.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/blake2-impl.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/blake2-impl.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/blake2-int.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/blake2-int.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/blake2-int.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/blake2-int.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/blake2.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/blake2.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/blake2.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/blake2.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/camellia.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/camellia.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/camellia.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/camellia.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/chacha.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/chacha.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/chacha.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/chacha.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/chacha20_poly1305.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/chacha20_poly1305.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/chacha20_poly1305.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/chacha20_poly1305.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/cmac.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/cmac.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/cmac.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/cmac.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/coding.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/coding.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/coding.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/coding.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/compress.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/compress.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/compress.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/compress.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/cpuid.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/cpuid.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/cpuid.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/cpuid.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/cryptocb.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/cryptocb.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/cryptocb.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/cryptocb.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/curve25519.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/curve25519.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/curve25519.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/curve25519.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/curve448.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/curve448.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/curve448.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/curve448.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/des3.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/des3.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/des3.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/des3.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/dh.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/dh.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/dh.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/dh.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/dilithium.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/dilithium.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/dilithium.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/dilithium.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/dsa.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/dsa.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/dsa.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/dsa.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/ecc.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/ecc.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/ecc.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/ecc.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/eccsi.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/eccsi.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/eccsi.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/eccsi.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/ed25519.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/ed25519.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/ed25519.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/ed25519.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/ed448.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/ed448.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/ed448.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/ed448.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/error-crypt.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/error-crypt.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/error-crypt.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/error-crypt.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/ext_lms.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/ext_lms.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/ext_lms.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/ext_lms.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/ext_mlkem.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/ext_mlkem.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/ext_mlkem.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/ext_mlkem.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/ext_xmss.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/ext_xmss.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/ext_xmss.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/ext_xmss.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/falcon.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/falcon.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/falcon.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/falcon.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/fe_448.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/fe_448.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/fe_448.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/fe_448.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/fe_operations.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/fe_operations.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/fe_operations.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/fe_operations.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/fips_test.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/fips_test.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/fips_test.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/fips_test.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/ge_448.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/ge_448.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/ge_448.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/ge_448.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/ge_operations.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/ge_operations.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/ge_operations.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/ge_operations.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/hash.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/hash.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/hash.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/hash.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/hmac.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/hmac.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/hmac.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/hmac.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/hpke.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/hpke.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/hpke.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/hpke.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/integer.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/integer.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/integer.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/integer.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/kdf.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/kdf.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/kdf.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/kdf.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/libwolfssl_sources.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/libwolfssl_sources.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/libwolfssl_sources.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/libwolfssl_sources.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/libwolfssl_sources_asm.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/libwolfssl_sources_asm.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/libwolfssl_sources_asm.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/libwolfssl_sources_asm.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/lms.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/lms.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/lms.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/lms.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/logging.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/logging.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/logging.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/logging.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/md2.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/md2.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/md2.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/md2.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/md4.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/md4.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/md4.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/md4.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/md5.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/md5.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/md5.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/md5.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/mem_track.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/mem_track.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/mem_track.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/mem_track.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/memory.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/memory.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/memory.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/memory.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/misc.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/misc.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/misc.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/misc.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/mlkem.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/mlkem.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/mlkem.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/mlkem.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/mpi_class.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/mpi_class.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/mpi_class.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/mpi_class.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/mpi_superclass.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/mpi_superclass.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/mpi_superclass.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/mpi_superclass.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/oid_sum.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/oid_sum.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/oid_sum.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/oid_sum.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/pkcs11.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/pkcs11.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/pkcs11.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/pkcs11.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/pkcs12.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/pkcs12.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/pkcs12.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/pkcs12.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/pkcs7.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/pkcs7.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/pkcs7.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/pkcs7.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/poly1305.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/poly1305.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/poly1305.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/poly1305.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/pwdbased.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/pwdbased.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/pwdbased.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/pwdbased.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/random.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/random.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/random.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/random.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/rc2.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/rc2.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/rc2.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/rc2.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/ripemd.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/ripemd.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/ripemd.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/ripemd.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/rsa.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/rsa.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/rsa.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/rsa.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/sakke.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/sakke.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/sakke.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/sakke.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/selftest.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/selftest.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/selftest.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/selftest.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/settings.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/settings.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/settings.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/settings.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/sha.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/sha.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/sha.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/sha.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/sha256.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/sha256.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/sha256.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/sha256.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/sha3.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/sha3.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/sha3.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/sha3.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/sha512.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/sha512.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/sha512.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/sha512.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/signature.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/signature.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/signature.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/signature.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/siphash.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/siphash.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/siphash.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/siphash.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/sp.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/sp.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/sp.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/sp.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/sp_int.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/sp_int.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/sp_int.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/sp_int.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/sphincs.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/sphincs.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/sphincs.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/sphincs.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/srp.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/srp.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/srp.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/srp.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/tfm.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/tfm.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/tfm.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/tfm.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/types.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/types.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/types.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/types.h diff --git a/include/bitcoin/ssl/wolfssl/wolfcrypt/user_settings.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/user_settings.h new file mode 100644 index 000000000..80a8b784e --- /dev/null +++ b/include/bitcoin/ssl/wolfssl/wolfcrypt/user_settings.h @@ -0,0 +1,132 @@ +/** + * Copyright (c) 2011-2025 libbitcoin developers (see AUTHORS) + * + * This file is part of libbitcoin. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +#ifndef LIBBITCOIN_NETWORK_SSL_WOLFSSL_WOLFCRYPT_USER_SETINGS_H +#define LIBBITCOIN_NETWORK_SSL_WOLFSSL_WOLFCRYPT_USER_SETINGS_H + +// This file is imported into all wolfssl sources when WOLFSSL_USER_SETTINGS +// is defined, which is done at project scope. This is also imported by boost +// asio via options.h import when BOOST_ASIO_USE_WOLFSSL is defined. +// The /ssl/openssl/ directory is provided for direct import by boost when +// #include is specified, forwarding to wolfssl headers. + +// This build has no dependency on any libbitcoin sources. +////#include +#if defined(_MSC_VER) + // C99 variable-length arrays (VLAs) are not supported by MSVC. + #define WOLFSSL_SP_NO_DYN_STACK + + // Avoid conflict with min/max compatibility macros. + #define WOLFSSL_HAVE_MIN + #define WOLFSSL_HAVE_MAX +#endif + +// Documentation for the options below. +// wolfssl.com/documentation/manuals/wolfssl/chapter02.html + +// In a library build, "HAVE_" symbols are set on the command line. But since +// this is embedded they are set here just as with "NO_", "WC_" and "WOLFSSL_". + +// Suppress warnings on unnecessary file inclusions. +#define WOLFSSL_IGNORE_FILE_WARN + +// Side-channel protection is not required. +////#define WOLFSSL_HARDEN_TLS 128 +#define NO_ECC_TIMING_RESISTANT +#define NO_TFM_TIMING_RESISTANT +#define NO_WC_RSA_BLINDING +#define WC_NO_HARDEN + +// On Windows OS APIs are used. +////#define NO_DEV_RANDOM +////#define NO_DEV_URANDOM + +// Keep control over socket. +// wolfssl.com/documentation/manuals/wolfssl/chapter05.html +#define WOLFSSL_USER_IO +#define WOLFSSL_NO_SOCK + +// Required for certificate management via filesystem. +////#define NO_FILESYSTEM + +// TODO: keygen. +////#define WOLFSSL_PEM_TO_DER +#define WOLFSSL_CERT_GEN +#define WOLFSSL_DER_LOAD +#define WOLFSSL_KEY_GEN + +// TLS is required, not just cryptographic functions. +////#define WOLFSSL_AEAD_ONLY +#define WOLFSSL_TLS13 +#define HAVE_TLS_EXTENSIONS +#define HAVE_FFDHE_2048 +#define HAVE_POLY1305 +#define HAVE_CHACHA +#define HAVE_HKDF +#define HAVE_HMAC +#define HAVE_SHA256 + +// At least one encryption method is required. +// ECC is needed for Curve25519-based key exchange in modern TLS. +#define HAVE_CURVE25519 +#define HAVE_ECC + +// Callback requires at least one union element to be defined. +#define WOLF_CRYPTO_CB + +// Used with BOOST_ASIO_USE_WOLFSSL to optimize boost integration. +// wolfssl.com/wolfssl-support-asio-boost-asio-c-libraries +#define WOLFSSL_ASIO + +// This is an openssl setting that affects wolfssl. +#define OPENSSL_EXTRA + +// These are openssl settings that affect boost asio. +#define OPENSSL_NO_ENGINE +#define OPENSSL_NO_SSL3 +#define OPENSSL_NO_SSL2 + +// Remove unused or undesired components. +#define WC_NO_HASHDRBG +#define NO_PWDBASED +#define NO_OLD_TLS +#define NO_AESGCM +#define NO_OCSP +#define NO_DES3 +#define NO_PSK +#define NO_AES +#define NO_SHA +#define NO_DSA +#define NO_RSA +#define NO_DH +#define NO_MD4 +#define NO_MD5 +#define NO_RC4 +#define NO_TLS_DH +#define NO_CAMELLIA_CBC +#define NO_SESSION_CACHE +#define NO_ED448_CLIENT_AUTH +#define NO_ED25519_CLIENT_AUTH +#define NO_OLD_SSL_NAMES +#define NO_OLD_WC_NAMES +#define NO_OLD_POLY1305 +#define WOLFSSL_NO_SOCK +#define WOLFSSL_NO_CLIENT_AUTH +#define NO_WOLFSSL_RENESAS_TSIP_TLS_SESSION + +#endif diff --git a/src/wolfssl/wolfssl/wolfcrypt/visibility.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/visibility.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/visibility.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/visibility.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/wc_encrypt.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/wc_encrypt.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/wc_encrypt.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/wc_encrypt.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/wc_lms.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/wc_lms.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/wc_lms.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/wc_lms.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/wc_mlkem.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/wc_mlkem.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/wc_mlkem.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/wc_mlkem.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/wc_pkcs11.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/wc_pkcs11.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/wc_pkcs11.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/wc_pkcs11.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/wc_port.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/wc_port.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/wc_port.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/wc_port.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/wc_xmss.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/wc_xmss.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/wc_xmss.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/wc_xmss.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/wolfevent.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/wolfevent.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/wolfevent.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/wolfevent.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/wolfmath.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/wolfmath.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/wolfmath.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/wolfmath.h diff --git a/src/wolfssl/wolfssl/wolfcrypt/xmss.h b/include/bitcoin/ssl/wolfssl/wolfcrypt/xmss.h similarity index 100% rename from src/wolfssl/wolfssl/wolfcrypt/xmss.h rename to include/bitcoin/ssl/wolfssl/wolfcrypt/xmss.h diff --git a/src/wolfssl/wolfssl/wolfio.h b/include/bitcoin/ssl/wolfssl/wolfio.h similarity index 100% rename from src/wolfssl/wolfssl/wolfio.h rename to include/bitcoin/ssl/wolfssl/wolfio.h diff --git a/include/bitcoin/ssl/wolfssl/wolfssl.h b/include/bitcoin/ssl/wolfssl/wolfssl.h new file mode 100644 index 000000000..a0d4e3d3d --- /dev/null +++ b/include/bitcoin/ssl/wolfssl/wolfssl.h @@ -0,0 +1,28 @@ +/** + * Copyright (c) 2011-2025 libbitcoin developers (see AUTHORS) + * + * This file is part of libbitcoin. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +#ifndef LIBBITCOIN_NETWORK_SSL_WOLFSSL_WOLFSSL_H +#define LIBBITCOIN_NETWORK_SSL_WOLFSSL_WOLFSSL_H + +// This directory is defined by libbitcoin to provide the expected path so that +// wolfssl sources may remain unmodified and specify: +// #include +// #include +// #include + +#endif diff --git a/src/wolfssl/wolfcrypt/src/aes.c b/src/ssl/wolfcrypt/aes.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/aes.c rename to src/ssl/wolfcrypt/aes.c diff --git a/src/wolfssl/wolfcrypt/src/arc4.c b/src/ssl/wolfcrypt/arc4.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/arc4.c rename to src/ssl/wolfcrypt/arc4.c diff --git a/src/wolfssl/wolfcrypt/src/ascon.c b/src/ssl/wolfcrypt/ascon.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/ascon.c rename to src/ssl/wolfcrypt/ascon.c diff --git a/src/wolfssl/wolfcrypt/src/asm.c b/src/ssl/wolfcrypt/asm.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/asm.c rename to src/ssl/wolfcrypt/asm.c diff --git a/src/wolfssl/wolfcrypt/src/asn.c b/src/ssl/wolfcrypt/asn.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/asn.c rename to src/ssl/wolfcrypt/asn.c diff --git a/src/wolfssl/wolfcrypt/src/blake2b.c b/src/ssl/wolfcrypt/blake2b.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/blake2b.c rename to src/ssl/wolfcrypt/blake2b.c diff --git a/src/wolfssl/wolfcrypt/src/blake2s.c b/src/ssl/wolfcrypt/blake2s.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/blake2s.c rename to src/ssl/wolfcrypt/blake2s.c diff --git a/src/wolfssl/wolfcrypt/src/camellia.c b/src/ssl/wolfcrypt/camellia.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/camellia.c rename to src/ssl/wolfcrypt/camellia.c diff --git a/src/wolfssl/wolfcrypt/src/chacha.c b/src/ssl/wolfcrypt/chacha.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/chacha.c rename to src/ssl/wolfcrypt/chacha.c diff --git a/src/wolfssl/wolfcrypt/src/chacha20_poly1305.c b/src/ssl/wolfcrypt/chacha20_poly1305.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/chacha20_poly1305.c rename to src/ssl/wolfcrypt/chacha20_poly1305.c diff --git a/src/wolfssl/wolfcrypt/src/cmac.c b/src/ssl/wolfcrypt/cmac.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/cmac.c rename to src/ssl/wolfcrypt/cmac.c diff --git a/src/wolfssl/wolfcrypt/src/coding.c b/src/ssl/wolfcrypt/coding.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/coding.c rename to src/ssl/wolfcrypt/coding.c diff --git a/src/wolfssl/wolfcrypt/src/compress.c b/src/ssl/wolfcrypt/compress.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/compress.c rename to src/ssl/wolfcrypt/compress.c diff --git a/src/wolfssl/wolfcrypt/src/cpuid.c b/src/ssl/wolfcrypt/cpuid.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/cpuid.c rename to src/ssl/wolfcrypt/cpuid.c diff --git a/src/wolfssl/wolfcrypt/src/cryptocb.c b/src/ssl/wolfcrypt/cryptocb.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/cryptocb.c rename to src/ssl/wolfcrypt/cryptocb.c diff --git a/src/wolfssl/wolfcrypt/src/curve25519.c b/src/ssl/wolfcrypt/curve25519.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/curve25519.c rename to src/ssl/wolfcrypt/curve25519.c diff --git a/src/wolfssl/wolfcrypt/src/curve448.c b/src/ssl/wolfcrypt/curve448.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/curve448.c rename to src/ssl/wolfcrypt/curve448.c diff --git a/src/wolfssl/wolfcrypt/src/des3.c b/src/ssl/wolfcrypt/des3.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/des3.c rename to src/ssl/wolfcrypt/des3.c diff --git a/src/wolfssl/wolfcrypt/src/dh.c b/src/ssl/wolfcrypt/dh.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/dh.c rename to src/ssl/wolfcrypt/dh.c diff --git a/src/wolfssl/wolfcrypt/src/dilithium.c b/src/ssl/wolfcrypt/dilithium.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/dilithium.c rename to src/ssl/wolfcrypt/dilithium.c diff --git a/src/wolfssl/wolfcrypt/src/dsa.c b/src/ssl/wolfcrypt/dsa.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/dsa.c rename to src/ssl/wolfcrypt/dsa.c diff --git a/src/wolfssl/wolfcrypt/src/ecc.c b/src/ssl/wolfcrypt/ecc.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/ecc.c rename to src/ssl/wolfcrypt/ecc.c diff --git a/src/wolfssl/wolfcrypt/src/eccsi.c b/src/ssl/wolfcrypt/eccsi.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/eccsi.c rename to src/ssl/wolfcrypt/eccsi.c diff --git a/src/wolfssl/wolfcrypt/src/ed25519.c b/src/ssl/wolfcrypt/ed25519.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/ed25519.c rename to src/ssl/wolfcrypt/ed25519.c diff --git a/src/wolfssl/wolfcrypt/src/ed448.c b/src/ssl/wolfcrypt/ed448.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/ed448.c rename to src/ssl/wolfcrypt/ed448.c diff --git a/src/wolfssl/wolfcrypt/src/error1.c b/src/ssl/wolfcrypt/error1.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/error1.c rename to src/ssl/wolfcrypt/error1.c diff --git a/src/wolfssl/wolfcrypt/src/ext_lms.c b/src/ssl/wolfcrypt/ext_lms.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/ext_lms.c rename to src/ssl/wolfcrypt/ext_lms.c diff --git a/src/wolfssl/wolfcrypt/src/ext_mlkem.c b/src/ssl/wolfcrypt/ext_mlkem.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/ext_mlkem.c rename to src/ssl/wolfcrypt/ext_mlkem.c diff --git a/src/wolfssl/wolfcrypt/src/ext_xmss.c b/src/ssl/wolfcrypt/ext_xmss.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/ext_xmss.c rename to src/ssl/wolfcrypt/ext_xmss.c diff --git a/src/wolfssl/wolfcrypt/src/falcon.c b/src/ssl/wolfcrypt/falcon.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/falcon.c rename to src/ssl/wolfcrypt/falcon.c diff --git a/src/wolfssl/wolfcrypt/src/fe_448.c b/src/ssl/wolfcrypt/fe_448.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/fe_448.c rename to src/ssl/wolfcrypt/fe_448.c diff --git a/src/wolfssl/wolfcrypt/src/fe_low_mem.c b/src/ssl/wolfcrypt/fe_low_mem.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/fe_low_mem.c rename to src/ssl/wolfcrypt/fe_low_mem.c diff --git a/src/wolfssl/wolfcrypt/src/fe_operations.c b/src/ssl/wolfcrypt/fe_operations.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/fe_operations.c rename to src/ssl/wolfcrypt/fe_operations.c diff --git a/src/wolfssl/wolfcrypt/src/fe_x25519_128.h b/src/ssl/wolfcrypt/fe_x25519_128.h similarity index 100% rename from src/wolfssl/wolfcrypt/src/fe_x25519_128.h rename to src/ssl/wolfcrypt/fe_x25519_128.h diff --git a/src/wolfssl/wolfcrypt/src/ge_448.c b/src/ssl/wolfcrypt/ge_448.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/ge_448.c rename to src/ssl/wolfcrypt/ge_448.c diff --git a/src/wolfssl/wolfcrypt/src/ge_low_mem.c b/src/ssl/wolfcrypt/ge_low_mem.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/ge_low_mem.c rename to src/ssl/wolfcrypt/ge_low_mem.c diff --git a/src/wolfssl/wolfcrypt/src/ge_operations.c b/src/ssl/wolfcrypt/ge_operations.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/ge_operations.c rename to src/ssl/wolfcrypt/ge_operations.c diff --git a/src/wolfssl/wolfcrypt/src/hash.c b/src/ssl/wolfcrypt/hash.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/hash.c rename to src/ssl/wolfcrypt/hash.c diff --git a/src/wolfssl/wolfcrypt/src/hmac.c b/src/ssl/wolfcrypt/hmac.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/hmac.c rename to src/ssl/wolfcrypt/hmac.c diff --git a/src/wolfssl/wolfcrypt/src/hpke.c b/src/ssl/wolfcrypt/hpke.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/hpke.c rename to src/ssl/wolfcrypt/hpke.c diff --git a/src/wolfssl/wolfcrypt/src/integer.c b/src/ssl/wolfcrypt/integer.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/integer.c rename to src/ssl/wolfcrypt/integer.c diff --git a/src/wolfssl/wolfcrypt/src/kdf.c b/src/ssl/wolfcrypt/kdf.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/kdf.c rename to src/ssl/wolfcrypt/kdf.c diff --git a/src/wolfssl/wolfcrypt/src/logging.c b/src/ssl/wolfcrypt/logging.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/logging.c rename to src/ssl/wolfcrypt/logging.c diff --git a/src/wolfssl/wolfcrypt/src/md2.c b/src/ssl/wolfcrypt/md2.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/md2.c rename to src/ssl/wolfcrypt/md2.c diff --git a/src/wolfssl/wolfcrypt/src/md4.c b/src/ssl/wolfcrypt/md4.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/md4.c rename to src/ssl/wolfcrypt/md4.c diff --git a/src/wolfssl/wolfcrypt/src/md5.c b/src/ssl/wolfcrypt/md5.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/md5.c rename to src/ssl/wolfcrypt/md5.c diff --git a/src/wolfssl/wolfcrypt/src/memory1.c b/src/ssl/wolfcrypt/memory1.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/memory1.c rename to src/ssl/wolfcrypt/memory1.c diff --git a/src/wolfssl/wolfcrypt/src/pkcs12.c b/src/ssl/wolfcrypt/pkcs12.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/pkcs12.c rename to src/ssl/wolfcrypt/pkcs12.c diff --git a/src/wolfssl/wolfcrypt/src/pkcs7.c b/src/ssl/wolfcrypt/pkcs7.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/pkcs7.c rename to src/ssl/wolfcrypt/pkcs7.c diff --git a/src/wolfssl/wolfcrypt/src/poly1305.c b/src/ssl/wolfcrypt/poly1305.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/poly1305.c rename to src/ssl/wolfcrypt/poly1305.c diff --git a/src/wolfssl/wolfcrypt/src/pwdbased.c b/src/ssl/wolfcrypt/pwdbased.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/pwdbased.c rename to src/ssl/wolfcrypt/pwdbased.c diff --git a/src/wolfssl/wolfcrypt/src/random.c b/src/ssl/wolfcrypt/random.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/random.c rename to src/ssl/wolfcrypt/random.c diff --git a/src/wolfssl/wolfcrypt/src/rc2.c b/src/ssl/wolfcrypt/rc2.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/rc2.c rename to src/ssl/wolfcrypt/rc2.c diff --git a/src/wolfssl/wolfcrypt/src/ripemd.c b/src/ssl/wolfcrypt/ripemd.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/ripemd.c rename to src/ssl/wolfcrypt/ripemd.c diff --git a/src/wolfssl/wolfcrypt/src/rsa.c b/src/ssl/wolfcrypt/rsa.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/rsa.c rename to src/ssl/wolfcrypt/rsa.c diff --git a/src/wolfssl/wolfcrypt/src/sakke.c b/src/ssl/wolfcrypt/sakke.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/sakke.c rename to src/ssl/wolfcrypt/sakke.c diff --git a/src/wolfssl/wolfcrypt/src/sha.c b/src/ssl/wolfcrypt/sha.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/sha.c rename to src/ssl/wolfcrypt/sha.c diff --git a/src/wolfssl/wolfcrypt/src/sha256.c b/src/ssl/wolfcrypt/sha256.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/sha256.c rename to src/ssl/wolfcrypt/sha256.c diff --git a/src/wolfssl/wolfcrypt/src/sha3.c b/src/ssl/wolfcrypt/sha3.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/sha3.c rename to src/ssl/wolfcrypt/sha3.c diff --git a/src/wolfssl/wolfcrypt/src/sha512.c b/src/ssl/wolfcrypt/sha512.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/sha512.c rename to src/ssl/wolfcrypt/sha512.c diff --git a/src/wolfssl/wolfcrypt/src/signature.c b/src/ssl/wolfcrypt/signature.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/signature.c rename to src/ssl/wolfcrypt/signature.c diff --git a/src/wolfssl/wolfcrypt/src/siphash.c b/src/ssl/wolfcrypt/siphash.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/siphash.c rename to src/ssl/wolfcrypt/siphash.c diff --git a/src/wolfssl/wolfcrypt/src/sp_arm32.c b/src/ssl/wolfcrypt/sp_arm32.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/sp_arm32.c rename to src/ssl/wolfcrypt/sp_arm32.c diff --git a/src/wolfssl/wolfcrypt/src/sp_arm64.c b/src/ssl/wolfcrypt/sp_arm64.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/sp_arm64.c rename to src/ssl/wolfcrypt/sp_arm64.c diff --git a/src/wolfssl/wolfcrypt/src/sp_armthumb.c b/src/ssl/wolfcrypt/sp_armthumb.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/sp_armthumb.c rename to src/ssl/wolfcrypt/sp_armthumb.c diff --git a/src/wolfssl/wolfcrypt/src/sp_c32.c b/src/ssl/wolfcrypt/sp_c32.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/sp_c32.c rename to src/ssl/wolfcrypt/sp_c32.c diff --git a/src/wolfssl/wolfcrypt/src/sp_c64.c b/src/ssl/wolfcrypt/sp_c64.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/sp_c64.c rename to src/ssl/wolfcrypt/sp_c64.c diff --git a/src/wolfssl/wolfcrypt/src/sp_cortexm.c b/src/ssl/wolfcrypt/sp_cortexm.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/sp_cortexm.c rename to src/ssl/wolfcrypt/sp_cortexm.c diff --git a/src/wolfssl/wolfcrypt/src/sp_dsp32.c b/src/ssl/wolfcrypt/sp_dsp32.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/sp_dsp32.c rename to src/ssl/wolfcrypt/sp_dsp32.c diff --git a/src/wolfssl/wolfcrypt/src/sp_int.c b/src/ssl/wolfcrypt/sp_int.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/sp_int.c rename to src/ssl/wolfcrypt/sp_int.c diff --git a/src/wolfssl/wolfcrypt/src/sp_x86_64.c b/src/ssl/wolfcrypt/sp_x86_64.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/sp_x86_64.c rename to src/ssl/wolfcrypt/sp_x86_64.c diff --git a/src/wolfssl/wolfcrypt/src/sphincs.c b/src/ssl/wolfcrypt/sphincs.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/sphincs.c rename to src/ssl/wolfcrypt/sphincs.c diff --git a/src/wolfssl/wolfcrypt/src/srp.c b/src/ssl/wolfcrypt/srp.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/srp.c rename to src/ssl/wolfcrypt/srp.c diff --git a/src/wolfssl/wolfcrypt/src/tfm.c b/src/ssl/wolfcrypt/tfm.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/tfm.c rename to src/ssl/wolfcrypt/tfm.c diff --git a/src/wolfssl/wolfcrypt/src/wc_dsp.c b/src/ssl/wolfcrypt/wc_dsp.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/wc_dsp.c rename to src/ssl/wolfcrypt/wc_dsp.c diff --git a/src/wolfssl/wolfcrypt/src/wc_encrypt.c b/src/ssl/wolfcrypt/wc_encrypt.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/wc_encrypt.c rename to src/ssl/wolfcrypt/wc_encrypt.c diff --git a/src/wolfssl/wolfcrypt/src/wc_lms.c b/src/ssl/wolfcrypt/wc_lms.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/wc_lms.c rename to src/ssl/wolfcrypt/wc_lms.c diff --git a/src/wolfssl/wolfcrypt/src/wc_lms_impl.c b/src/ssl/wolfcrypt/wc_lms_impl.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/wc_lms_impl.c rename to src/ssl/wolfcrypt/wc_lms_impl.c diff --git a/src/wolfssl/wolfcrypt/src/wc_mlkem.c b/src/ssl/wolfcrypt/wc_mlkem.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/wc_mlkem.c rename to src/ssl/wolfcrypt/wc_mlkem.c diff --git a/src/wolfssl/wolfcrypt/src/wc_mlkem_poly.c b/src/ssl/wolfcrypt/wc_mlkem_poly.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/wc_mlkem_poly.c rename to src/ssl/wolfcrypt/wc_mlkem_poly.c diff --git a/src/wolfssl/wolfcrypt/src/wc_pkcs11.c b/src/ssl/wolfcrypt/wc_pkcs11.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/wc_pkcs11.c rename to src/ssl/wolfcrypt/wc_pkcs11.c diff --git a/src/wolfssl/wolfcrypt/src/wc_port.c b/src/ssl/wolfcrypt/wc_port.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/wc_port.c rename to src/ssl/wolfcrypt/wc_port.c diff --git a/src/wolfssl/wolfcrypt/src/wc_xmss.c b/src/ssl/wolfcrypt/wc_xmss.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/wc_xmss.c rename to src/ssl/wolfcrypt/wc_xmss.c diff --git a/src/wolfssl/wolfcrypt/src/wc_xmss_impl.c b/src/ssl/wolfcrypt/wc_xmss_impl.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/wc_xmss_impl.c rename to src/ssl/wolfcrypt/wc_xmss_impl.c diff --git a/src/wolfssl/wolfcrypt/src/wolfevent.c b/src/ssl/wolfcrypt/wolfevent.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/wolfevent.c rename to src/ssl/wolfcrypt/wolfevent.c diff --git a/src/wolfssl/wolfcrypt/src/wolfmath.c b/src/ssl/wolfcrypt/wolfmath.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/wolfmath.c rename to src/ssl/wolfcrypt/wolfmath.c diff --git a/src/wolfssl/src/crl.c b/src/ssl/wolfssl/crl.c similarity index 100% rename from src/wolfssl/src/crl.c rename to src/ssl/wolfssl/crl.c diff --git a/src/wolfssl/src/dtls.c b/src/ssl/wolfssl/dtls.c similarity index 100% rename from src/wolfssl/src/dtls.c rename to src/ssl/wolfssl/dtls.c diff --git a/src/wolfssl/src/dtls13.c b/src/ssl/wolfssl/dtls13.c similarity index 100% rename from src/wolfssl/src/dtls13.c rename to src/ssl/wolfssl/dtls13.c diff --git a/src/wolfssl/src/internal.c b/src/ssl/wolfssl/internal.c similarity index 99% rename from src/wolfssl/src/internal.c rename to src/ssl/wolfssl/internal.c index 30c27fbcb..5a67083ee 100644 --- a/src/wolfssl/src/internal.c +++ b/src/ssl/wolfssl/internal.c @@ -25591,8 +25591,23 @@ static int ModifyForMTU(WOLFSSL* ssl, int buffSz, int outputSz, int mtuSz) */ static int CheckTLS13AEADSendLimit(WOLFSSL* ssl) { +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// LIBBITCOIN: fix unused variable warning. +#if defined(BUILD_AESGCM) | defined(HAVE_AESCCM) || defined(WOLFSSL_SM4_GCM) || defined(WOLFSSL_SM4_CCM) || defined(WOLFSSL_DTLS13) +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// w64wrapper seq; +//////////////////////////////////////////////////////////////////////////////////////////////////////// +#endif // unused variable +//////////////////////////////////////////////////////////////////////////////////////////////////////// + +//////////////////////////////////////////////////////////////////////////////////////////////////////// +// LIBBITCOIN: fix unused variable warning. +#if defined(BUILD_AESGCM) | defined(HAVE_AESCCM) || defined(WOLFSSL_SM4_GCM) || defined(WOLFSSL_SM4_CCM) +//////////////////////////////////////////////////////////////////////////////////////////////////////// w64wrapper limit; +//////////////////////////////////////////////////////////////////////////////////////////////////////// +#endif // unused variable +//////////////////////////////////////////////////////////////////////////////////////////////////////// switch (ssl->specs.bulk_cipher_algorithm) { #ifdef BUILD_AESGCM @@ -25645,6 +25660,11 @@ static int CheckTLS13AEADSendLimit(WOLFSSL* ssl) } else #endif + +//////////////////////////////////////////////////////////////////////////////////////////////////////// +// LIBBITCOIN: fix unreachable code warnings. +#if defined(BUILD_AESGCM) | defined(HAVE_AESCCM) || defined(WOLFSSL_SM4_GCM) || defined(WOLFSSL_SM4_CCM) +//////////////////////////////////////////////////////////////////////////////////////////////////////// { seq = w64From32(ssl->keys.sequence_number_hi, ssl->keys.sequence_number_lo); @@ -25657,6 +25677,9 @@ static int CheckTLS13AEADSendLimit(WOLFSSL* ssl) } return 0; +//////////////////////////////////////////////////////////////////////////////////////////////////////// +#endif // unreachable code +//////////////////////////////////////////////////////////////////////////////////////////////////////// } #endif /* WOLFSSL_TLS13 && !WOLFSSL_TLS13_IGNORE_AEAD_LIMITS */ diff --git a/src/wolfssl/src/keys.c b/src/ssl/wolfssl/keys.c similarity index 100% rename from src/wolfssl/src/keys.c rename to src/ssl/wolfssl/keys.c diff --git a/src/wolfssl/src/ocsp.c b/src/ssl/wolfssl/ocsp.c similarity index 100% rename from src/wolfssl/src/ocsp.c rename to src/ssl/wolfssl/ocsp.c diff --git a/src/wolfssl/src/quic.c b/src/ssl/wolfssl/quic.c similarity index 100% rename from src/wolfssl/src/quic.c rename to src/ssl/wolfssl/quic.c diff --git a/src/wolfssl/src/sniffer.c b/src/ssl/wolfssl/sniffer.c similarity index 100% rename from src/wolfssl/src/sniffer.c rename to src/ssl/wolfssl/sniffer.c diff --git a/src/wolfssl/src/bio.c b/src/ssl/wolfssl/src/bio.c similarity index 100% rename from src/wolfssl/src/bio.c rename to src/ssl/wolfssl/src/bio.c diff --git a/src/wolfssl/src/conf.c b/src/ssl/wolfssl/src/conf.c similarity index 100% rename from src/wolfssl/src/conf.c rename to src/ssl/wolfssl/src/conf.c diff --git a/src/wolfssl/wolfcrypt/src/evp.c b/src/ssl/wolfssl/src/evp.c similarity index 100% rename from src/wolfssl/wolfcrypt/src/evp.c rename to src/ssl/wolfssl/src/evp.c diff --git a/src/wolfssl/src/pk.c b/src/ssl/wolfssl/src/pk.c similarity index 100% rename from src/wolfssl/src/pk.c rename to src/ssl/wolfssl/src/pk.c diff --git a/src/wolfssl/src/ssl_asn1.c b/src/ssl/wolfssl/src/ssl_asn1.c similarity index 100% rename from src/wolfssl/src/ssl_asn1.c rename to src/ssl/wolfssl/src/ssl_asn1.c diff --git a/src/wolfssl/src/ssl_bn.c b/src/ssl/wolfssl/src/ssl_bn.c similarity index 100% rename from src/wolfssl/src/ssl_bn.c rename to src/ssl/wolfssl/src/ssl_bn.c diff --git a/src/wolfssl/src/ssl_certman.c b/src/ssl/wolfssl/src/ssl_certman.c similarity index 100% rename from src/wolfssl/src/ssl_certman.c rename to src/ssl/wolfssl/src/ssl_certman.c diff --git a/src/wolfssl/src/ssl_crypto.c b/src/ssl/wolfssl/src/ssl_crypto.c similarity index 100% rename from src/wolfssl/src/ssl_crypto.c rename to src/ssl/wolfssl/src/ssl_crypto.c diff --git a/src/wolfssl/src/ssl_load.c b/src/ssl/wolfssl/src/ssl_load.c similarity index 100% rename from src/wolfssl/src/ssl_load.c rename to src/ssl/wolfssl/src/ssl_load.c diff --git a/src/wolfssl/src/ssl_misc.c b/src/ssl/wolfssl/src/ssl_misc.c similarity index 100% rename from src/wolfssl/src/ssl_misc.c rename to src/ssl/wolfssl/src/ssl_misc.c diff --git a/src/wolfssl/src/ssl_p7p12.c b/src/ssl/wolfssl/src/ssl_p7p12.c similarity index 100% rename from src/wolfssl/src/ssl_p7p12.c rename to src/ssl/wolfssl/src/ssl_p7p12.c diff --git a/src/wolfssl/src/ssl_sess.c b/src/ssl/wolfssl/src/ssl_sess.c similarity index 100% rename from src/wolfssl/src/ssl_sess.c rename to src/ssl/wolfssl/src/ssl_sess.c diff --git a/src/wolfssl/src/ssl_sk.c b/src/ssl/wolfssl/src/ssl_sk.c similarity index 100% rename from src/wolfssl/src/ssl_sk.c rename to src/ssl/wolfssl/src/ssl_sk.c diff --git a/src/wolfssl/src/x509.c b/src/ssl/wolfssl/src/x509.c similarity index 99% rename from src/wolfssl/src/x509.c rename to src/ssl/wolfssl/src/x509.c index ea9f9b743..8aa5b5f55 100644 --- a/src/wolfssl/src/x509.c +++ b/src/ssl/wolfssl/src/x509.c @@ -10630,7 +10630,11 @@ static int CertFromX509(Cert* cert, WOLFSSL_X509* x509) cert->isCA = wolfSSL_X509_get_isCA(x509); cert->basicConstCrit = x509->basicConstCrit; cert->basicConstSet = x509->basicConstSet; - cert->pathLen = x509->pathLength; +/////////////////////////////////////////////////////////////////////////////// +// LIBBITCOIN: implicit cast (4 bytes to 1 byte). Added runtime guard and cast: + if (x509->pathLength > (byte)~0) return WOLFSSL_FAILURE; + cert->pathLen = (byte)x509->pathLength; +/////////////////////////////////////////////////////////////////////////////// cert->pathLenSet = x509->pathLengthSet; #ifdef WOLFSSL_CERT_EXT diff --git a/src/wolfssl/src/x509_str.c b/src/ssl/wolfssl/src/x509_str.c similarity index 100% rename from src/wolfssl/src/x509_str.c rename to src/ssl/wolfssl/src/x509_str.c diff --git a/src/wolfssl/src/ssl.c b/src/ssl/wolfssl/ssl.c similarity index 99% rename from src/wolfssl/src/ssl.c rename to src/ssl/wolfssl/ssl.c index 9b695976d..d08650f57 100644 --- a/src/wolfssl/src/ssl.c +++ b/src/ssl/wolfssl/ssl.c @@ -19,6 +19,14 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA */ +/////////////////////////////////////////////////////////////////////////////// +// LIBBITCOIN: Four lines in this file have been modified as follows. +// #include -> "src/ssl_load.c" +// #include -> "src/conf.c" +// #include -> "src/x509_str.c" +// #include -> "src/ssl_p7p12.c" +/////////////////////////////////////////////////////////////////////////////// + #include #if defined(OPENSSL_EXTRA) && !defined(_WIN32) && !defined(_GNU_SOURCE) @@ -178,7 +186,11 @@ #include "src/ssl_misc.c" #define WOLFSSL_EVP_INCLUDED -#include "wolfcrypt/src/evp.c" +/////////////////////////////////////////////////////////////////////////////// +// LIBBITCOIN: one line modified as follows. +// #include "wolfcrypt/src/evp.c" -> "src/evp.c" +#include "src/evp.c" +/////////////////////////////////////////////////////////////////////////////// /* Crypto code uses EVP APIs. */ #define WOLFSSL_SSL_CRYPTO_INCLUDED @@ -5967,7 +5979,11 @@ int AddCA(WOLFSSL_CERT_MANAGER* cm, DerBuffer** pDer, int type, int verify) { int ret; Signer* signer = NULL; - word32 row; +/////////////////////////////////////////////////////////////////////////////// +// LIBBITCOIN: fix (bogus) potentially uninitialized variable warning. + word32 row = 0; +// word32 row; +/////////////////////////////////////////////////////////////////////////////// byte* subjectHash; WC_DECLARE_VAR(cert, DecodedCert, 1, 0); DerBuffer* der = *pDer; @@ -6825,7 +6841,7 @@ void wolfSSL_set_security_level(WOLFSSL * ssl, int level) #define WOLFSSL_SSL_LOAD_INCLUDED -#include +#include "src/ssl_load.c" #ifndef NO_CERTS @@ -24717,7 +24733,7 @@ void wolfSSL_BUF_MEM_free(WOLFSSL_BUF_MEM* buf) ******************************************************************************/ #define WOLFSSL_CONF_INCLUDED -#include +#include "src/conf.c" /******************************************************************************* * START OF RAND API @@ -25796,10 +25812,10 @@ void wolfSSL_aes_ctr_iv(WOLFSSL_EVP_CIPHER_CTX* ctx, int doset, #ifndef NO_CERTS #define WOLFSSL_X509_STORE_INCLUDED -#include +#include "src/x509_str.c" #define WOLFSSL_SSL_P7P12_INCLUDED -#include +#include "src/ssl_p7p12.c" #endif /* !NO_CERTS */ diff --git a/src/wolfssl/src/tls.c b/src/ssl/wolfssl/tls.c similarity index 100% rename from src/wolfssl/src/tls.c rename to src/ssl/wolfssl/tls.c diff --git a/src/wolfssl/src/tls13.c b/src/ssl/wolfssl/tls13.c similarity index 100% rename from src/wolfssl/src/tls13.c rename to src/ssl/wolfssl/tls13.c diff --git a/src/wolfssl/src/wolfio.c b/src/ssl/wolfssl/wolfio.c similarity index 100% rename from src/wolfssl/src/wolfio.c rename to src/ssl/wolfssl/wolfio.c diff --git a/src/wolfssl/wolfssl/openssl/ssl23.h b/src/wolfssl/wolfssl/openssl/ssl23.h deleted file mode 100644 index fc3ddfb5f..000000000 --- a/src/wolfssl/wolfssl/openssl/ssl23.h +++ /dev/null @@ -1 +0,0 @@ -/* ssl23.h for openssl */ diff --git a/src/wolfssl/wolfssl/openssl/ui.h b/src/wolfssl/wolfssl/openssl/ui.h deleted file mode 100644 index a25393031..000000000 --- a/src/wolfssl/wolfssl/openssl/ui.h +++ /dev/null @@ -1,2 +0,0 @@ -/* ui.h for openssl */ - diff --git a/src/wolfssl/wolfssl/wolfcrypt/user_settings.h b/src/wolfssl/wolfssl/wolfcrypt/user_settings.h deleted file mode 100644 index 50e94e5df..000000000 --- a/src/wolfssl/wolfssl/wolfcrypt/user_settings.h +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Copyright (c) 2011-2025 libbitcoin developers (see AUTHORS) - * - * This file is part of libbitcoin. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ -#ifndef LIBBITCOIN_NETWORK_WOLFSSL_USER_SETINGS_HPP -#define LIBBITCOIN_NETWORK_WOLFSSL_USER_SETINGS_HPP - -////#include - -// Suppress warnings on unnecessary file inclusions. -#define WOLFSSL_IGNORE_FILE_WARN - -// Prevent errors due to some define of min/max macros (not from windows.h). -#define WOLFSSL_HAVE_MIN -#define WOLFSSL_HAVE_MAX - -// These compile but are not required. -#define NO_FILESYSTEM -#define WC_NO_HASHDRBG -#define NO_OLD_TLS -#define NO_AESGCM -#define NO_DES3 -#define NO_OCSP -#define NO_PSK -#define NO_AES -#define NO_SHA - -// TLS is required, not just cryptographic functions. -// These are not required to compile but features are required. -////#define WOLFCRYPT_ONLY -#define HAVE_TLS_EXTENSIONS -#define HAVE_FFDHE_2048 -#define WOLFSSL_TLS13 -#define HAVE_POLY1305 -#define HAVE_CHACHA - -// These require bigint. -#define OPENSSL_EXTRA -#define NO_PWDBASED -#define NO_DSA -#define NO_DH -#define NO_RSA -////#define NO_ASN - -// TODO: implement HKDF template natively. -// TODO: use own HKDF, HMAC, SHA256 in callback. -// Callback requires at least one element of union to be defined. -#define WOLF_CRYPTO_CB -#define WOLFSSL_KEY_GEN -#define WC_NO_HARDEN -////#define WC_NO_RNG -////#define HAVE_HKDF -////#define NO_SHA256 -////#define NO_HMAC - -// At least one encryption method is required (but bigint is required). -#define HAVE_CURVE25519 -#define HAVE_ECC -#define NO_ECC - -// This is requried for bigint on vc++. -// C99 variable-length arrays (VLAs) are not supported by MSVC. -#if defined(_MSC_VER) -#define WOLFSSL_SP_NO_DYN_STACK -#endif - -#endif diff --git a/test/messages/rpc/dispatcher.cpp b/test/messages/rpc/dispatcher.cpp index ad15701d1..e251b70fe 100644 --- a/test/messages/rpc/dispatcher.cpp +++ b/test/messages/rpc/dispatcher.cpp @@ -20,6 +20,11 @@ BOOST_AUTO_TEST_SUITE(dispatcher_tests) +// boolean_t defined in global namespace by: +// Applications/Xcode_16.4.app/Contents/Developer/Platforms/MacOSX.platform/ +// Developer/SDKs/MacOSX.sdk/usr/include/mach/arm/boolean.h:70:25 +using boolean_type = bc::network::rpc::boolean_t; + using namespace rpc; // uses unsubscriber<> (bool handler returns). @@ -179,7 +184,7 @@ BOOST_AUTO_TEST_CASE(dispatcher__notify__multiple_decayable_subscribers__invokes request_t request{}; request.method = "all_required"; - request.params = params_t{ array_t{ boolean_t{ true }, number_t{ 24.0 }, string_t{ "42" } } }; + request.params = params_t{ array_t{ boolean_type{ true }, number_t{ 24.0 }, string_t{ "42" } } }; BOOST_REQUIRE(!instance.notify(request)); BOOST_CHECK_EQUAL(first_result_a, true); BOOST_CHECK_EQUAL(second_result_a, true); @@ -268,25 +273,25 @@ BOOST_AUTO_TEST_CASE(dispatcher__notify__all_required_positional_params__expecte const auto ec1 = instance.notify( { .method = "all_required", - .params = { array_t{ boolean_t{ true }, value_t{ 24.0 } } } + .params = { array_t{ boolean_type{ true }, value_t{ 24.0 } } } }); const auto ec2 = instance.notify( { .method = "all_required", - .params = { array_t{ string_t{ "42" }, number_t{ 24.0 }, boolean_t{ true } } } + .params = { array_t{ string_t{ "42" }, number_t{ 24.0 }, boolean_type{ true } } } }); const auto ec3 = instance.notify( { .method = "all_required", - .params = { array_t{ boolean_t{ true }, number_t{ 24.0 }, string_t{ "42" }, string_t{ "42" } } } + .params = { array_t{ boolean_type{ true }, number_t{ 24.0 }, string_t{ "42" }, string_t{ "42" } } } }); const auto ec4 = instance.notify( { .method = "all_required", - .params = { array_t{ boolean_t{ true }, number_t{ 24.0 }, string_t{ "42" } } } + .params = { array_t{ boolean_type{ true }, number_t{ 24.0 }, string_t{ "42" } } } }); BOOST_REQUIRE_EQUAL(ec1, error::missing_parameter); @@ -322,14 +327,14 @@ BOOST_AUTO_TEST_CASE(dispatcher__notify__all_required_named_params__expected) { // missing_parameter (absent) .method = "all_required", - .params = { object_t{ { "a", boolean_t{ true } }, { "b", number_t{ 24.0 } } } } + .params = { object_t{ { "a", boolean_type{ true } }, { "b", number_t{ 24.0 } } } } }); const auto ec2 = instance.notify( { // missing_parameter (misnamed/absent) .method = "all_required", - .params = { object_t{ { "fu", boolean_t{ true } }, { "ga", number_t{ 24.0 } }, { "zi", string_t{ "42" } } } } + .params = { object_t{ { "fu", boolean_type{ true } }, { "ga", number_t{ 24.0 } }, { "zi", string_t{ "42" } } } } }); const auto ec3 = instance.notify( @@ -343,7 +348,7 @@ BOOST_AUTO_TEST_CASE(dispatcher__notify__all_required_named_params__expected) { // extra_named .method = "all_required", - .params = { object_t{ { "a", boolean_t{ true } }, { "b", number_t{ 24.0 } }, { "c", string_t{ "42" } }, { "d", string_t{ "42" } } } } + .params = { object_t{ { "a", boolean_type{ true } }, { "b", number_t{ 24.0 } }, { "c", string_t{ "42" } }, { "d", string_t{ "42" } } } } }); const auto ec5 = instance.notify( @@ -353,21 +358,21 @@ BOOST_AUTO_TEST_CASE(dispatcher__notify__all_required_named_params__expected) // before object_t conversion occurs, so map never sees duplicates. // Test construction uses initializer_list -> first-writer-wins. .method = "all_required", - .params = { object_t{ { "a", boolean_t{ false } }, { "b", number_t{ 42.0 } }, { "c", string_t{ "24" } }, { "c", string_t{ "42" } } } } + .params = { object_t{ { "a", boolean_type{ false } }, { "b", number_t{ 42.0 } }, { "c", string_t{ "24" } }, { "c", string_t{ "42" } } } } }); const auto ec6 = instance.notify( { // success, in order .method = "all_required", - .params = { object_t{ { "a", boolean_t{ true } }, { "b", number_t{ 24.0 } }, { "c", string_t{ "42" } } } } + .params = { object_t{ { "a", boolean_type{ true } }, { "b", number_t{ 24.0 } }, { "c", string_t{ "42" } } } } }); const auto ec7 = instance.notify( { // success, out of order .method = "all_required", - .params = { object_t{ { "b", number_t{ 24.0 } }, { "c", string_t{ "24" } }, { "a", boolean_t{ false } } } } + .params = { object_t{ { "b", number_t{ 24.0 } }, { "c", string_t{ "24" } }, { "a", boolean_type{ false } } } } }); BOOST_REQUIRE_EQUAL(ec1, error::missing_parameter); @@ -389,7 +394,7 @@ BOOST_AUTO_TEST_CASE(dispatcher__notify__with_options_positional_params__expecte bool called{}; string_t result_a{}; number_t result_b{}; - boolean_t result_c{}; + boolean_type result_c{}; instance.subscribe( [&](const code&, mock_interface::with_options, std::string a, double b, bool c) @@ -423,7 +428,7 @@ BOOST_AUTO_TEST_CASE(dispatcher__notify__with_options_positional_params__expecte const auto ec4 = instance.notify( { .method = "with_options", - .params = { array_t{ string_t{ "42" }, number_t{ 42.0 }, boolean_t{ false } } } + .params = { array_t{ string_t{ "42" }, number_t{ 42.0 }, boolean_type{ false } } } }); BOOST_REQUIRE_EQUAL(ec1, error::missing_parameter); @@ -442,7 +447,7 @@ BOOST_AUTO_TEST_CASE(dispatcher__notify__with_options_named_params__expected) bool called{}; string_t result_a{}; number_t result_b{}; - boolean_t result_c{}; + boolean_type result_c{}; instance.subscribe( [&](const code&, mock_interface::with_options, std::string a, double b, bool c) @@ -476,7 +481,7 @@ BOOST_AUTO_TEST_CASE(dispatcher__notify__with_options_named_params__expected) const auto ec4 = instance.notify( { .method = "with_options", - .params = { object_t{ { "a", string_t{ "42" } }, { "b", number_t{ 42.0 } }, { "c", boolean_t{ false } } } } + .params = { object_t{ { "a", string_t{ "42" } }, { "b", number_t{ 42.0 } }, { "c", boolean_type{ false } } } } }); BOOST_REQUIRE_EQUAL(ec1, error::missing_parameter); @@ -495,7 +500,7 @@ BOOST_AUTO_TEST_CASE(dispatcher__notify__with_nullify_positional_params__expecte bool called{}; string_t result_a{}; number_t result_b{}; - boolean_t result_c{}; + boolean_type result_c{}; instance.subscribe( [&](const code&, mock_interface::with_nullify, std::string a, std::optional b, std::optional c) @@ -523,7 +528,7 @@ BOOST_AUTO_TEST_CASE(dispatcher__notify__with_nullify_positional_params__expecte const auto ec3 = instance.notify( { .method = "with_nullify", - .params = { array_t{ string_t{ "42" }, null_t{}, boolean_t{ false } } } + .params = { array_t{ string_t{ "42" }, null_t{}, boolean_type{ false } } } }); const auto ec4 = instance.notify( @@ -548,7 +553,7 @@ BOOST_AUTO_TEST_CASE(dispatcher__notify__with_nullify_named_params__expected) bool called{}; string_t result_a{}; number_t result_b{}; - boolean_t result_c{}; + boolean_type result_c{}; instance.subscribe( [&](const code&, mock_interface::with_nullify, std::string a, std::optional b, std::optional c) @@ -576,7 +581,7 @@ BOOST_AUTO_TEST_CASE(dispatcher__notify__with_nullify_named_params__expected) const auto ec3 = instance.notify( { .method = "with_nullify", - .params = { object_t{ { "a", string_t{ "42" } }, { "b", null_t{} }, { "c", boolean_t{ false } } } } + .params = { object_t{ { "a", string_t{ "42" } }, { "b", null_t{} }, { "c", boolean_type{ false } } } } }); const auto ec4 = instance.notify( @@ -600,7 +605,7 @@ BOOST_AUTO_TEST_CASE(dispatcher__notify__with_combine_positional_params__expecte distributor_mock instance{}; bool called{}; string_t result_a{}; - boolean_t result_b{}; + boolean_type result_b{}; number_t result_c{}; instance.subscribe( @@ -635,7 +640,7 @@ BOOST_AUTO_TEST_CASE(dispatcher__notify__with_combine_positional_params__expecte const auto ec4 = instance.notify( { .method = "with_combine", - .params = { array_t{ string_t{ "42" }, boolean_t{ false }, number_t{ 42.0 } } } + .params = { array_t{ string_t{ "42" }, boolean_type{ false }, number_t{ 42.0 } } } }); BOOST_REQUIRE_EQUAL(ec1, error::missing_parameter); @@ -653,7 +658,7 @@ BOOST_AUTO_TEST_CASE(dispatcher__notify__with_combine_named_params__expected) distributor_mock instance{}; bool called{}; string_t result_a{}; - boolean_t result_b{}; + boolean_type result_b{}; number_t result_c{}; instance.subscribe( @@ -688,7 +693,7 @@ BOOST_AUTO_TEST_CASE(dispatcher__notify__with_combine_named_params__expected) const auto ec4 = instance.notify( { .method = "with_combine", - .params = { object_t{ { "a", string_t{ "42" } }, { "b", boolean_t{ false } }, { "c", number_t{ 42.0 } } } } + .params = { object_t{ { "a", string_t{ "42" } }, { "b", boolean_type{ false } }, { "c", number_t{ 42.0 } } } } }); BOOST_REQUIRE_EQUAL(ec1, error::missing_parameter); @@ -705,7 +710,7 @@ BOOST_AUTO_TEST_CASE(dispatcher__notify__not_required_positional_params__expecte { distributor_mock instance{}; bool called{}; - boolean_t result_a{}; + boolean_type result_a{}; number_t result_b{}; instance.subscribe( @@ -733,13 +738,13 @@ BOOST_AUTO_TEST_CASE(dispatcher__notify__not_required_positional_params__expecte const auto ec3 = instance.notify( { .method = "not_required", - .params = { array_t{ boolean_t{ false } } } + .params = { array_t{ boolean_type{ false } } } }); const auto ec4 = instance.notify( { .method = "not_required", - .params = { array_t{ boolean_t{ false }, number_t{ 42.0 } } } + .params = { array_t{ boolean_type{ false }, number_t{ 42.0 } } } }); BOOST_REQUIRE_EQUAL(ec1, error::missing_parameter); @@ -755,7 +760,7 @@ BOOST_AUTO_TEST_CASE(dispatcher__notify__not_required_named_params__expected) { distributor_mock instance{}; bool called{}; - boolean_t result_a{}; + boolean_type result_a{}; number_t result_b{}; instance.subscribe( @@ -783,13 +788,13 @@ BOOST_AUTO_TEST_CASE(dispatcher__notify__not_required_named_params__expected) const auto ec3 = instance.notify( { .method = "not_required", - .params = { object_t{ { "a", boolean_t{ false } } } } + .params = { object_t{ { "a", boolean_type{ false } } } } }); const auto ec4 = instance.notify( { .method = "not_required", - .params = { object_t{ { "a", boolean_t{ false } }, { "b", number_t{ 42.0 } } } } + .params = { object_t{ { "a", boolean_type{ false } }, { "b", number_t{ 42.0 } } } } }); BOOST_REQUIRE_EQUAL(ec1, error::missing_parameter); diff --git a/test/messages/rpc/types.cpp b/test/messages/rpc/types.cpp index 5a6c11921..c1accf8b7 100644 --- a/test/messages/rpc/types.cpp +++ b/test/messages/rpc/types.cpp @@ -18,6 +18,11 @@ */ #include "../../test.hpp" +// boolean_t defined in global namespace by: +// Applications/Xcode_16.4.app/Contents/Developer/Platforms/MacOSX.platform/ +// Developer/SDKs/MacOSX.sdk/usr/include/mach/arm/boolean.h:70:25 +using boolean_type = bc::network::rpc::boolean_t; + using namespace rpc; // optional @@ -46,9 +51,9 @@ static_assert(is_same_type{}.default_value()), st // optional static_assert(is_optional>); -static_assert(is_same_type::type, boolean_t>); +static_assert(is_same_type::type, boolean_type>); static_assert(is_same_type::tag, optional_tag>); -static_assert(is_same_type{}.default_value()), boolean_t>); +static_assert(is_same_type{}.default_value()), boolean_type>); static_assert(optional{}.default_value() == true); // optional<42_i8> @@ -128,30 +133,30 @@ static_assert(!is_optional); static_assert(!is_optional); static_assert(!is_optional); static_assert(!is_optional); -static_assert(!is_optional); +static_assert(!is_optional); // nullable // ---------------------------------------------------------------------------- -static_assert(is_same_type::type, boolean_t>); +static_assert(is_same_type::type, boolean_type>); static_assert(is_same_type::type, number_t>); static_assert(is_same_type::type, string_t>); static_assert(is_same_type::type, object_t>); static_assert(is_same_type::type, array_t>); -static_assert(is_same_type::tag, nullable_tag>); +static_assert(is_same_type::tag, nullable_tag>); static_assert(is_same_type::tag, nullable_tag>); static_assert(is_same_type::tag, nullable_tag>); static_assert(is_same_type::tag, nullable_tag>); static_assert(is_same_type::tag, nullable_tag>); -static_assert(is_nullable>); -static_assert(is_nullable>); -static_assert(is_nullable>); -static_assert(is_nullable>); -static_assert(is_nullable>); +static_assert(is_nullable>); +static_assert(is_nullable>); +static_assert(is_nullable>); +static_assert(is_nullable>); +static_assert(is_nullable>); -static_assert(!is_nullable); +static_assert(!is_nullable); static_assert(!is_nullable); static_assert(!is_nullable); static_assert(!is_nullable); @@ -172,19 +177,19 @@ static_assert(is_required); static_assert(is_required); static_assert(is_required); static_assert(is_required); -static_assert(is_required); +static_assert(is_required); static_assert(!is_required>); static_assert(!is_required>); static_assert(!is_required>); static_assert(!is_required>); -static_assert(!is_required>); +static_assert(!is_required>); static_assert(is_required); static_assert(is_required); static_assert(is_required); static_assert(is_required); -static_assert(is_required); +static_assert(is_required); // internal_t // ---------------------------------------------------------------------------- @@ -205,9 +210,9 @@ static_assert(is_same_type, string_t>); static_assert(is_same_type>, string_t>); static_assert(is_same_type>, string_t>); -static_assert(is_same_type, boolean_t>); -static_assert(is_same_type>, boolean_t>); -static_assert(is_same_type>, boolean_t>); +static_assert(is_same_type, boolean_type>); +static_assert(is_same_type>, boolean_type>); +static_assert(is_same_type>, boolean_type>); // external_t // ---------------------------------------------------------------------------- @@ -228,9 +233,9 @@ static_assert(is_same_type, string_t>); static_assert(is_same_type>, std::optional>); static_assert(is_same_type>, string_t>); -static_assert(is_same_type, boolean_t>); -static_assert(is_same_type>, std::optional>); -static_assert(is_same_type>, boolean_t>); +static_assert(is_same_type, boolean_type>); +static_assert(is_same_type>, std::optional>); +static_assert(is_same_type>, boolean_type>); // externals_t // ----------------------------------------------------------------------------