@annadata/capacitor-mqtt-quic 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AnnadataCapacitorMqttQuic.podspec +36 -0
- package/README.md +121 -12
- package/android/NGTCP2_BUILD_INSTRUCTIONS.md +65 -44
- package/android/build-openssl.sh +1 -1
- package/android/install/nghttp3-android/arm64-v8a/include/nghttp3/nghttp3.h +3295 -0
- package/android/install/nghttp3-android/arm64-v8a/include/nghttp3/version.h +46 -0
- package/android/install/nghttp3-android/arm64-v8a/lib/cmake/nghttp3/nghttp3Config.cmake +3 -0
- package/android/install/nghttp3-android/arm64-v8a/lib/cmake/nghttp3/nghttp3ConfigVersion.cmake +65 -0
- package/android/install/nghttp3-android/arm64-v8a/lib/cmake/nghttp3/nghttp3Targets-release.cmake +29 -0
- package/android/install/nghttp3-android/arm64-v8a/lib/cmake/nghttp3/nghttp3Targets.cmake +114 -0
- package/android/install/nghttp3-android/arm64-v8a/lib/libnghttp3.a +0 -0
- package/android/install/nghttp3-android/arm64-v8a/lib/libnghttp3.so +0 -0
- package/android/install/nghttp3-android/arm64-v8a/lib/pkgconfig/libnghttp3.pc +34 -0
- package/android/install/nghttp3-android/arm64-v8a/share/doc/nghttp3/README.rst +75 -0
- package/android/install/nghttp3-android/armeabi-v7a/include/nghttp3/nghttp3.h +3295 -0
- package/android/install/nghttp3-android/armeabi-v7a/include/nghttp3/version.h +46 -0
- package/android/install/nghttp3-android/armeabi-v7a/lib/cmake/nghttp3/nghttp3Config.cmake +3 -0
- package/android/install/nghttp3-android/armeabi-v7a/lib/cmake/nghttp3/nghttp3ConfigVersion.cmake +65 -0
- package/android/install/nghttp3-android/armeabi-v7a/lib/cmake/nghttp3/nghttp3Targets-release.cmake +29 -0
- package/android/install/nghttp3-android/armeabi-v7a/lib/cmake/nghttp3/nghttp3Targets.cmake +114 -0
- package/android/install/nghttp3-android/armeabi-v7a/lib/libnghttp3.a +0 -0
- package/android/install/nghttp3-android/armeabi-v7a/lib/libnghttp3.so +0 -0
- package/android/install/nghttp3-android/armeabi-v7a/lib/pkgconfig/libnghttp3.pc +34 -0
- package/android/install/nghttp3-android/armeabi-v7a/share/doc/nghttp3/README.rst +75 -0
- package/android/install/nghttp3-android/x86_64/include/nghttp3/nghttp3.h +3295 -0
- package/android/install/nghttp3-android/x86_64/include/nghttp3/version.h +46 -0
- package/android/install/nghttp3-android/x86_64/lib/cmake/nghttp3/nghttp3Config.cmake +3 -0
- package/android/install/nghttp3-android/x86_64/lib/cmake/nghttp3/nghttp3ConfigVersion.cmake +65 -0
- package/android/install/nghttp3-android/x86_64/lib/cmake/nghttp3/nghttp3Targets-release.cmake +29 -0
- package/android/install/nghttp3-android/x86_64/lib/cmake/nghttp3/nghttp3Targets.cmake +114 -0
- package/android/install/nghttp3-android/x86_64/lib/libnghttp3.a +0 -0
- package/android/install/nghttp3-android/x86_64/lib/libnghttp3.so +0 -0
- package/android/install/nghttp3-android/x86_64/lib/pkgconfig/libnghttp3.pc +34 -0
- package/android/install/nghttp3-android/x86_64/share/doc/nghttp3/README.rst +75 -0
- package/android/install/ngtcp2-android/arm64-v8a/include/ngtcp2/ngtcp2.h +6254 -0
- package/android/install/ngtcp2-android/arm64-v8a/include/ngtcp2/ngtcp2_crypto.h +1037 -0
- package/android/install/ngtcp2-android/arm64-v8a/include/ngtcp2/ngtcp2_crypto_wolfssl.h +106 -0
- package/android/install/ngtcp2-android/arm64-v8a/include/ngtcp2/version.h +51 -0
- package/android/install/ngtcp2-android/arm64-v8a/lib/cmake/ngtcp2/ngtcp2Config.cmake +6 -0
- package/android/install/ngtcp2-android/arm64-v8a/lib/cmake/ngtcp2/ngtcp2ConfigVersion.cmake +65 -0
- package/android/install/ngtcp2-android/arm64-v8a/lib/cmake/ngtcp2/ngtcp2Targets-release.cmake +29 -0
- package/android/install/ngtcp2-android/arm64-v8a/lib/cmake/ngtcp2/ngtcp2Targets.cmake +114 -0
- package/android/install/ngtcp2-android/arm64-v8a/lib/libngtcp2.a +0 -0
- package/android/install/ngtcp2-android/arm64-v8a/lib/libngtcp2.so +0 -0
- package/android/install/ngtcp2-android/arm64-v8a/lib/libngtcp2_crypto_wolfssl.a +0 -0
- package/android/install/ngtcp2-android/arm64-v8a/lib/libngtcp2_crypto_wolfssl.so +0 -0
- package/android/install/ngtcp2-android/arm64-v8a/lib/pkgconfig/libngtcp2.pc +33 -0
- package/android/install/ngtcp2-android/arm64-v8a/lib/pkgconfig/libngtcp2_crypto_wolfssl.pc +34 -0
- package/android/install/ngtcp2-android/arm64-v8a/share/doc/ngtcp2/README.rst +385 -0
- package/android/install/ngtcp2-android/armeabi-v7a/include/ngtcp2/ngtcp2.h +6254 -0
- package/android/install/ngtcp2-android/armeabi-v7a/include/ngtcp2/ngtcp2_crypto.h +1037 -0
- package/android/install/ngtcp2-android/armeabi-v7a/include/ngtcp2/ngtcp2_crypto_wolfssl.h +106 -0
- package/android/install/ngtcp2-android/armeabi-v7a/include/ngtcp2/version.h +51 -0
- package/android/install/ngtcp2-android/armeabi-v7a/lib/cmake/ngtcp2/ngtcp2Config.cmake +6 -0
- package/android/install/ngtcp2-android/armeabi-v7a/lib/cmake/ngtcp2/ngtcp2ConfigVersion.cmake +65 -0
- package/android/install/ngtcp2-android/armeabi-v7a/lib/cmake/ngtcp2/ngtcp2Targets-release.cmake +29 -0
- package/android/install/ngtcp2-android/armeabi-v7a/lib/cmake/ngtcp2/ngtcp2Targets.cmake +114 -0
- package/android/install/ngtcp2-android/armeabi-v7a/lib/libngtcp2.a +0 -0
- package/android/install/ngtcp2-android/armeabi-v7a/lib/libngtcp2.so +0 -0
- package/android/install/ngtcp2-android/armeabi-v7a/lib/libngtcp2_crypto_wolfssl.a +0 -0
- package/android/install/ngtcp2-android/armeabi-v7a/lib/libngtcp2_crypto_wolfssl.so +0 -0
- package/android/install/ngtcp2-android/armeabi-v7a/lib/pkgconfig/libngtcp2.pc +33 -0
- package/android/install/ngtcp2-android/armeabi-v7a/lib/pkgconfig/libngtcp2_crypto_wolfssl.pc +34 -0
- package/android/install/ngtcp2-android/armeabi-v7a/share/doc/ngtcp2/README.rst +385 -0
- package/android/install/ngtcp2-android/x86_64/include/ngtcp2/ngtcp2.h +6254 -0
- package/android/install/ngtcp2-android/x86_64/include/ngtcp2/ngtcp2_crypto.h +1037 -0
- package/android/install/ngtcp2-android/x86_64/include/ngtcp2/ngtcp2_crypto_wolfssl.h +106 -0
- package/android/install/ngtcp2-android/x86_64/include/ngtcp2/version.h +51 -0
- package/android/install/ngtcp2-android/x86_64/lib/cmake/ngtcp2/ngtcp2Config.cmake +6 -0
- package/android/install/ngtcp2-android/x86_64/lib/cmake/ngtcp2/ngtcp2ConfigVersion.cmake +65 -0
- package/android/install/ngtcp2-android/x86_64/lib/cmake/ngtcp2/ngtcp2Targets-release.cmake +29 -0
- package/android/install/ngtcp2-android/x86_64/lib/cmake/ngtcp2/ngtcp2Targets.cmake +114 -0
- package/android/install/ngtcp2-android/x86_64/lib/libngtcp2.a +0 -0
- package/android/install/ngtcp2-android/x86_64/lib/libngtcp2.so +0 -0
- package/android/install/ngtcp2-android/x86_64/lib/libngtcp2_crypto_wolfssl.a +0 -0
- package/android/install/ngtcp2-android/x86_64/lib/libngtcp2_crypto_wolfssl.so +0 -0
- package/android/install/ngtcp2-android/x86_64/lib/pkgconfig/libngtcp2.pc +33 -0
- package/android/install/ngtcp2-android/x86_64/lib/pkgconfig/libngtcp2_crypto_wolfssl.pc +34 -0
- package/android/install/ngtcp2-android/x86_64/share/doc/ngtcp2/README.rst +385 -0
- package/android/install/wolfssl-android/arm64-v8a/bin/wolfssl-config +117 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/callbacks.h +93 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/certs_test.h +7073 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/certs_test_sm.h +2913 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/crl.h +58 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/error-ssl.h +280 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/ocsp.h +191 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/aes.h +117 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/asn1.h +315 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/asn1t.h +30 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/bio.h +237 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/bn.h +332 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/buffer.h +57 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/camellia.h +27 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/cmac.h +66 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/cms.h +26 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/compat_types.h +70 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/conf.h +117 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/crypto.h +171 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/des.h +124 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/dh.h +144 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/dsa.h +164 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ec.h +525 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ec25519.h +46 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ec448.h +46 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ecdh.h +49 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ecdsa.h +87 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ed25519.h +49 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ed448.h +49 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/engine.h +9 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/err.h +84 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/evp.h +1540 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/fips_rand.h +125 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/hmac.h +98 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/kdf.h +45 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/lhash.h +64 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/md4.h +66 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/md5.h +108 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/modes.h +45 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/obj_mac.h +92 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/objects.h +86 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ocsp.h +108 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/opensslconf.h +8 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/opensslv.h +78 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ossl_typ.h +32 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/pem.h +301 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/pkcs12.h +57 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/pkcs7.h +110 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/rand.h +38 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/rc4.h +64 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ripemd.h +58 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/rsa.h +291 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/safestack.h +40 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/sha.h +331 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/sha3.h +158 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/srp.h +33 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ssl.h +1923 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ssl23.h +1 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/stack.h +61 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/tls1.h +64 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/txt_db.h +60 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ui.h +2 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/x509.h +227 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/x509_vfy.h +50 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/x509v3.h +237 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/options.h +273 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/quic.h +310 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/sniffer.h +359 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/sniffer_error.h +151 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/ssl.h +6300 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/test.h +4989 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/version.h +40 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/aes.h +1074 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/arc4.h +69 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/ascon.h +109 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/asn.h +2855 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/asn_public.h +1009 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/blake2-impl.h +155 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/blake2-int.h +174 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/blake2.h +108 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/camellia.h +116 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/chacha.h +133 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/chacha20_poly1305.h +157 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/cmac.h +168 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/coding.h +107 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/compress.h +60 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/cpuid.h +153 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/cryptocb.h +770 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/curve25519.h +225 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/curve448.h +151 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/des3.h +167 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/dh.h +210 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/dilithium.h +1051 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/dsa.h +121 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/ecc.h +1074 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/eccsi.h +176 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/ed25519.h +239 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/ed448.h +214 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/error-crypt.h +368 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/ext_lms.h +62 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/ext_mlkem.h +74 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/ext_xmss.h +53 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/falcon.h +180 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/fe_448.h +122 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/fe_operations.h +189 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/fips_test.h +131 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/ge_448.h +84 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/ge_operations.h +134 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/hash.h +296 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/hmac.h +231 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/hpke.h +145 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/integer.h +449 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/kdf.h +199 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/lms.h +202 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/logging.h +588 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/md2.h +83 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/md4.h +77 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/md5.h +141 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/mem_track.h +968 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/memory.h +545 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/misc.h +214 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/mlkem.h +377 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/mpi_class.h +1021 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/mpi_superclass.h +96 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/oid_sum.h +1907 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/pkcs12.h +79 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/pkcs7.h +578 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/poly1305.h +207 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/pwdbased.h +81 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/random.h +300 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/rc2.h +68 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/ripemd.h +67 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/rsa.h +494 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/sakke.h +228 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/settings.h +4762 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/sha.h +237 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/sha256.h +360 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/sha3.h +274 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/sha512.h +372 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/signature.h +87 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/siphash.h +101 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/sm2.h +27 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/sm3.h +27 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/sm4.h +27 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/sp_int.h +1396 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/sphincs.h +167 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/srp.h +313 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/tfm.h +941 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/types.h +2383 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/visibility.h +97 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/wc_encrypt.h +126 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/wc_lms.h +506 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/wc_mlkem.h +370 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/wc_port.h +1764 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/wc_xmss.h +285 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/wolfevent.h +120 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/wolfmath.h +175 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/xmss.h +203 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfio.h +1035 -0
- package/android/install/wolfssl-android/arm64-v8a/lib/libwolfssl.a +0 -0
- package/android/install/wolfssl-android/arm64-v8a/lib/libwolfssl.la +41 -0
- package/android/install/wolfssl-android/arm64-v8a/lib/pkgconfig/wolfssl.pc +11 -0
- package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/QUIC.md +117 -0
- package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/README.txt +8 -0
- package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/async_client.c +245 -0
- package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/async_server.c +331 -0
- package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/client.c +4885 -0
- package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/echoclient.c +341 -0
- package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/echoserver.c +498 -0
- package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/sctp-client-dtls.c +135 -0
- package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/sctp-client.c +78 -0
- package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/sctp-server-dtls.c +134 -0
- package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/sctp-server.c +83 -0
- package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/server.c +4124 -0
- package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/tls_bench.c +2357 -0
- package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/taoCert.txt +176 -0
- package/android/install/wolfssl-android/armeabi-v7a/bin/wolfssl-config +117 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/callbacks.h +93 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/certs_test.h +7073 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/certs_test_sm.h +2913 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/crl.h +58 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/error-ssl.h +280 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/ocsp.h +191 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/aes.h +117 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/asn1.h +315 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/asn1t.h +30 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/bio.h +237 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/bn.h +332 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/buffer.h +57 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/camellia.h +27 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/cmac.h +66 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/cms.h +26 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/compat_types.h +70 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/conf.h +117 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/crypto.h +171 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/des.h +124 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/dh.h +144 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/dsa.h +164 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ec.h +525 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ec25519.h +46 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ec448.h +46 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ecdh.h +49 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ecdsa.h +87 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ed25519.h +49 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ed448.h +49 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/engine.h +9 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/err.h +84 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/evp.h +1540 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/fips_rand.h +125 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/hmac.h +98 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/kdf.h +45 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/lhash.h +64 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/md4.h +66 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/md5.h +108 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/modes.h +45 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/obj_mac.h +92 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/objects.h +86 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ocsp.h +108 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/opensslconf.h +8 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/opensslv.h +78 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ossl_typ.h +32 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/pem.h +301 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/pkcs12.h +57 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/pkcs7.h +110 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/rand.h +38 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/rc4.h +64 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ripemd.h +58 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/rsa.h +291 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/safestack.h +40 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/sha.h +331 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/sha3.h +158 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/srp.h +33 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ssl.h +1923 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ssl23.h +1 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/stack.h +61 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/tls1.h +64 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/txt_db.h +60 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ui.h +2 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/x509.h +227 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/x509_vfy.h +50 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/x509v3.h +237 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/options.h +261 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/quic.h +310 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/sniffer.h +359 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/sniffer_error.h +151 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/ssl.h +6300 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/test.h +4989 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/version.h +40 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/aes.h +1074 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/arc4.h +69 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/ascon.h +109 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/asn.h +2855 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/asn_public.h +1009 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/blake2-impl.h +155 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/blake2-int.h +174 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/blake2.h +108 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/camellia.h +116 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/chacha.h +133 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/chacha20_poly1305.h +157 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/cmac.h +168 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/coding.h +107 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/compress.h +60 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/cpuid.h +153 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/cryptocb.h +770 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/curve25519.h +225 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/curve448.h +151 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/des3.h +167 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/dh.h +210 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/dilithium.h +1051 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/dsa.h +121 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/ecc.h +1074 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/eccsi.h +176 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/ed25519.h +239 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/ed448.h +214 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/error-crypt.h +368 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/ext_lms.h +62 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/ext_mlkem.h +74 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/ext_xmss.h +53 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/falcon.h +180 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/fe_448.h +122 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/fe_operations.h +189 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/fips_test.h +131 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/ge_448.h +84 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/ge_operations.h +134 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/hash.h +296 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/hmac.h +231 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/hpke.h +145 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/integer.h +449 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/kdf.h +199 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/lms.h +202 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/logging.h +588 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/md2.h +83 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/md4.h +77 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/md5.h +141 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/mem_track.h +968 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/memory.h +545 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/misc.h +214 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/mlkem.h +377 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/mpi_class.h +1021 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/mpi_superclass.h +96 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/oid_sum.h +1907 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/pkcs12.h +79 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/pkcs7.h +578 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/poly1305.h +207 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/pwdbased.h +81 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/random.h +300 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/rc2.h +68 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/ripemd.h +67 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/rsa.h +494 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/sakke.h +228 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/settings.h +4762 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/sha.h +237 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/sha256.h +360 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/sha3.h +274 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/sha512.h +372 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/signature.h +87 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/siphash.h +101 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/sm2.h +27 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/sm3.h +27 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/sm4.h +27 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/sp_int.h +1396 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/sphincs.h +167 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/srp.h +313 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/tfm.h +941 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/types.h +2383 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/visibility.h +97 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/wc_encrypt.h +126 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/wc_lms.h +506 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/wc_mlkem.h +370 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/wc_port.h +1764 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/wc_xmss.h +285 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/wolfevent.h +120 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/wolfmath.h +175 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/xmss.h +203 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfio.h +1035 -0
- package/android/install/wolfssl-android/armeabi-v7a/lib/libwolfssl.a +0 -0
- package/android/install/wolfssl-android/armeabi-v7a/lib/libwolfssl.la +41 -0
- package/android/install/wolfssl-android/armeabi-v7a/lib/pkgconfig/wolfssl.pc +11 -0
- package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/QUIC.md +117 -0
- package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/README.txt +8 -0
- package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/async_client.c +245 -0
- package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/async_server.c +331 -0
- package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/client.c +4885 -0
- package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/echoclient.c +341 -0
- package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/echoserver.c +498 -0
- package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/sctp-client-dtls.c +135 -0
- package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/sctp-client.c +78 -0
- package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/sctp-server-dtls.c +134 -0
- package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/sctp-server.c +83 -0
- package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/server.c +4124 -0
- package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/tls_bench.c +2357 -0
- package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/taoCert.txt +176 -0
- package/android/install/wolfssl-android/x86_64/bin/wolfssl-config +117 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/callbacks.h +93 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/certs_test.h +7073 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/certs_test_sm.h +2913 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/crl.h +58 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/error-ssl.h +280 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/ocsp.h +191 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/aes.h +117 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/asn1.h +315 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/asn1t.h +30 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/bio.h +237 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/bn.h +332 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/buffer.h +57 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/camellia.h +27 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/cmac.h +66 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/cms.h +26 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/compat_types.h +70 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/conf.h +117 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/crypto.h +171 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/des.h +124 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/dh.h +144 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/dsa.h +164 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ec.h +525 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ec25519.h +46 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ec448.h +46 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ecdh.h +49 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ecdsa.h +87 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ed25519.h +49 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ed448.h +49 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/engine.h +9 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/err.h +84 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/evp.h +1540 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/fips_rand.h +125 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/hmac.h +98 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/kdf.h +45 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/lhash.h +64 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/md4.h +66 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/md5.h +108 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/modes.h +45 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/obj_mac.h +92 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/objects.h +86 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ocsp.h +108 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/opensslconf.h +8 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/opensslv.h +78 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ossl_typ.h +32 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/pem.h +301 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/pkcs12.h +57 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/pkcs7.h +110 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/rand.h +38 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/rc4.h +64 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ripemd.h +58 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/rsa.h +291 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/safestack.h +40 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/sha.h +331 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/sha3.h +158 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/srp.h +33 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ssl.h +1923 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ssl23.h +1 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/stack.h +61 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/tls1.h +64 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/txt_db.h +60 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ui.h +2 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/x509.h +227 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/x509_vfy.h +50 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/x509v3.h +237 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/options.h +273 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/quic.h +310 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/sniffer.h +359 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/sniffer_error.h +151 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/ssl.h +6300 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/test.h +4989 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/version.h +40 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/aes.h +1074 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/arc4.h +69 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/ascon.h +109 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/asn.h +2855 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/asn_public.h +1009 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/blake2-impl.h +155 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/blake2-int.h +174 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/blake2.h +108 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/camellia.h +116 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/chacha.h +133 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/chacha20_poly1305.h +157 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/cmac.h +168 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/coding.h +107 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/compress.h +60 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/cpuid.h +153 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/cryptocb.h +770 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/curve25519.h +225 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/curve448.h +151 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/des3.h +167 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/dh.h +210 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/dilithium.h +1051 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/dsa.h +121 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/ecc.h +1074 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/eccsi.h +176 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/ed25519.h +239 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/ed448.h +214 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/error-crypt.h +368 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/ext_lms.h +62 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/ext_mlkem.h +74 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/ext_xmss.h +53 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/falcon.h +180 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/fe_448.h +122 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/fe_operations.h +189 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/fips_test.h +131 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/ge_448.h +84 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/ge_operations.h +134 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/hash.h +296 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/hmac.h +231 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/hpke.h +145 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/integer.h +449 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/kdf.h +199 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/lms.h +202 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/logging.h +588 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/md2.h +83 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/md4.h +77 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/md5.h +141 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/mem_track.h +968 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/memory.h +545 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/misc.h +214 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/mlkem.h +377 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/mpi_class.h +1021 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/mpi_superclass.h +96 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/oid_sum.h +1907 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/pkcs12.h +79 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/pkcs7.h +578 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/poly1305.h +207 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/pwdbased.h +81 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/random.h +300 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/rc2.h +68 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/ripemd.h +67 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/rsa.h +494 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/sakke.h +228 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/settings.h +4762 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/sha.h +237 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/sha256.h +360 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/sha3.h +274 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/sha512.h +372 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/signature.h +87 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/siphash.h +101 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/sm2.h +27 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/sm3.h +27 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/sm4.h +27 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/sp_int.h +1396 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/sphincs.h +167 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/srp.h +313 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/tfm.h +941 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/types.h +2383 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/visibility.h +97 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/wc_encrypt.h +126 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/wc_lms.h +506 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/wc_mlkem.h +370 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/wc_port.h +1764 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/wc_xmss.h +285 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/wolfevent.h +120 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/wolfmath.h +175 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/xmss.h +203 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfio.h +1035 -0
- package/android/install/wolfssl-android/x86_64/lib/libwolfssl.a +0 -0
- package/android/install/wolfssl-android/x86_64/lib/libwolfssl.la +41 -0
- package/android/install/wolfssl-android/x86_64/lib/pkgconfig/wolfssl.pc +11 -0
- package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/QUIC.md +117 -0
- package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/README.txt +8 -0
- package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/async_client.c +245 -0
- package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/async_server.c +331 -0
- package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/client.c +4885 -0
- package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/echoclient.c +341 -0
- package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/echoserver.c +498 -0
- package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/sctp-client-dtls.c +135 -0
- package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/sctp-client.c +78 -0
- package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/sctp-server-dtls.c +134 -0
- package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/sctp-server.c +83 -0
- package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/server.c +4124 -0
- package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/tls_bench.c +2357 -0
- package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/taoCert.txt +176 -0
- package/android/src/main/cpp/CMakeLists.txt +19 -27
- package/android/src/main/cpp/ngtcp2_jni.cpp +30 -36
- package/android/src/main/kotlin/ai/annadata/mqttquic/MqttQuicPlugin.kt +15 -0
- package/android/src/main/kotlin/ai/annadata/mqttquic/client/MQTTClient.kt +6 -2
- package/build-native.sh +397 -0
- package/deps-versions.sh +25 -0
- package/dist/esm/definitions.d.ts +20 -0
- package/dist/esm/definitions.d.ts.map +1 -1
- package/dist/esm/web.d.ts +26 -3
- package/dist/esm/web.d.ts.map +1 -1
- package/dist/esm/web.js +230 -10
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +11363 -13
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +11364 -14
- package/dist/plugin.js.map +1 -1
- package/docs/ARCHITECTURAL_ANALYSIS.md +710 -0
- package/docs/CAPACITOR_MQTT_QUIC_PRODUCTION_PLUGIN.md +190 -0
- package/docs/CAPACITOR_VERSION_SUPPORT.md +65 -0
- package/docs/IMPLEMENTATION_SUMMARY.md +246 -0
- package/docs/MQTT5_CLIENT_COMPLIANCE.md +48 -0
- package/docs/MQTT5_IMPLEMENTATION_COMPLETE.md +178 -0
- package/docs/MQTT_VERSION_ANALYSIS.md +233 -0
- package/docs/NGTCP2_IMPLEMENTATION_STATUS.md +214 -0
- package/docs/NGTCP2_INTEGRATION_PLAN.md +597 -0
- package/docs/P0_P1_CHANGELOG.md +79 -0
- package/docs/PRODUCTION_PUBLISH_STEPS.md +161 -0
- package/docs/PROJECT_OVERVIEW.md +193 -0
- package/ios/.swiftpm/xcode/xcuserdata/annadata.xcuserdatad/xcschemes/xcschememanagement.plist +1 -1
- package/ios/NGTCP2_BUILD_INSTRUCTIONS.md +12 -0
- package/ios/Sources/MqttQuicPlugin/MqttQuicPlugin.swift +6 -0
- package/ios/Sources/MqttQuicPlugin/QUIC/NGTCP2Bridge.mm +6 -0
- package/ios/build-openssl.sh +1 -1
- package/ios/libs/MqttQuicLibs.xcframework/ios-arm64/libmqttquic_native_device.a +0 -0
- package/ios/libs/MqttQuicLibs.xcframework/ios-arm64_x86_64-simulator/libmqttquic_native_simulator.a +0 -0
- package/ios/libs/libnghttp3.a +0 -0
- package/ios/libs/libngtcp2.a +0 -0
- package/ios/libs/libngtcp2_crypto_wolfssl.a +0 -0
- package/ios/libs/libwolfssl.a +0 -0
- package/ios/libs-simulator/libnghttp3.a +0 -0
- package/ios/libs-simulator/libngtcp2.a +0 -0
- package/ios/libs-simulator/libngtcp2_crypto_wolfssl.a +0 -0
- package/ios/libs-simulator/libwolfssl.a +0 -0
- package/ios/libs-simulator-x86_64/libnghttp3.a +0 -0
- package/ios/libs-simulator-x86_64/libngtcp2.a +0 -0
- package/ios/libs-simulator-x86_64/libngtcp2_crypto_wolfssl.a +0 -0
- package/ios/libs-simulator-x86_64/libwolfssl.a +0 -0
- package/package.json +22 -8
- package/ios/include/ngtcp2/ngtcp2_crypto_quictls.h +0 -147
- package/ios/include/openssl/aes.h +0 -111
- package/ios/include/openssl/asn1.h +0 -1131
- package/ios/include/openssl/asn1_mac.h +0 -10
- package/ios/include/openssl/asn1err.h +0 -140
- package/ios/include/openssl/asn1t.h +0 -946
- package/ios/include/openssl/async.h +0 -96
- package/ios/include/openssl/asyncerr.h +0 -29
- package/ios/include/openssl/bio.h +0 -887
- package/ios/include/openssl/bioerr.h +0 -65
- package/ios/include/openssl/blowfish.h +0 -78
- package/ios/include/openssl/bn.h +0 -584
- package/ios/include/openssl/bnerr.h +0 -47
- package/ios/include/openssl/buffer.h +0 -62
- package/ios/include/openssl/buffererr.h +0 -25
- package/ios/include/openssl/camellia.h +0 -117
- package/ios/include/openssl/cast.h +0 -71
- package/ios/include/openssl/cmac.h +0 -52
- package/ios/include/openssl/cmp.h +0 -597
- package/ios/include/openssl/cmp_util.h +0 -56
- package/ios/include/openssl/cmperr.h +0 -116
- package/ios/include/openssl/cms.h +0 -493
- package/ios/include/openssl/cmserr.h +0 -124
- package/ios/include/openssl/comp.h +0 -59
- package/ios/include/openssl/comperr.h +0 -31
- package/ios/include/openssl/conf.h +0 -214
- package/ios/include/openssl/conf_api.h +0 -46
- package/ios/include/openssl/conferr.h +0 -52
- package/ios/include/openssl/configuration.h +0 -149
- package/ios/include/openssl/conftypes.h +0 -44
- package/ios/include/openssl/core.h +0 -233
- package/ios/include/openssl/core_dispatch.h +0 -960
- package/ios/include/openssl/core_names.h +0 -561
- package/ios/include/openssl/core_object.h +0 -41
- package/ios/include/openssl/crmf.h +0 -227
- package/ios/include/openssl/crmferr.h +0 -50
- package/ios/include/openssl/crypto.h +0 -558
- package/ios/include/openssl/cryptoerr.h +0 -55
- package/ios/include/openssl/cryptoerr_legacy.h +0 -1466
- package/ios/include/openssl/ct.h +0 -573
- package/ios/include/openssl/cterr.h +0 -45
- package/ios/include/openssl/decoder.h +0 -133
- package/ios/include/openssl/decodererr.h +0 -28
- package/ios/include/openssl/des.h +0 -211
- package/ios/include/openssl/dh.h +0 -335
- package/ios/include/openssl/dherr.h +0 -58
- package/ios/include/openssl/dsa.h +0 -280
- package/ios/include/openssl/dsaerr.h +0 -44
- package/ios/include/openssl/dtls1.h +0 -57
- package/ios/include/openssl/e_os2.h +0 -308
- package/ios/include/openssl/ebcdic.h +0 -39
- package/ios/include/openssl/ec.h +0 -1572
- package/ios/include/openssl/ecdh.h +0 -10
- package/ios/include/openssl/ecdsa.h +0 -10
- package/ios/include/openssl/ecerr.h +0 -104
- package/ios/include/openssl/encoder.h +0 -124
- package/ios/include/openssl/encodererr.h +0 -28
- package/ios/include/openssl/engine.h +0 -833
- package/ios/include/openssl/engineerr.h +0 -63
- package/ios/include/openssl/err.h +0 -504
- package/ios/include/openssl/ess.h +0 -128
- package/ios/include/openssl/esserr.h +0 -32
- package/ios/include/openssl/evp.h +0 -2175
- package/ios/include/openssl/evperr.h +0 -134
- package/ios/include/openssl/fips_names.h +0 -77
- package/ios/include/openssl/fipskey.h +0 -36
- package/ios/include/openssl/hmac.h +0 -62
- package/ios/include/openssl/http.h +0 -109
- package/ios/include/openssl/httperr.h +0 -55
- package/ios/include/openssl/idea.h +0 -82
- package/ios/include/openssl/kdf.h +0 -138
- package/ios/include/openssl/kdferr.h +0 -16
- package/ios/include/openssl/lhash.h +0 -331
- package/ios/include/openssl/macros.h +0 -325
- package/ios/include/openssl/md2.h +0 -56
- package/ios/include/openssl/md4.h +0 -63
- package/ios/include/openssl/md5.h +0 -62
- package/ios/include/openssl/mdc2.h +0 -55
- package/ios/include/openssl/modes.h +0 -219
- package/ios/include/openssl/obj_mac.h +0 -5481
- package/ios/include/openssl/objects.h +0 -183
- package/ios/include/openssl/objectserr.h +0 -28
- package/ios/include/openssl/ocsp.h +0 -483
- package/ios/include/openssl/ocsperr.h +0 -53
- package/ios/include/openssl/opensslconf.h +0 -17
- package/ios/include/openssl/opensslv.h +0 -114
- package/ios/include/openssl/ossl_typ.h +0 -16
- package/ios/include/openssl/param_build.h +0 -63
- package/ios/include/openssl/params.h +0 -160
- package/ios/include/openssl/pem.h +0 -541
- package/ios/include/openssl/pem2.h +0 -19
- package/ios/include/openssl/pemerr.h +0 -58
- package/ios/include/openssl/pkcs12.h +0 -353
- package/ios/include/openssl/pkcs12err.h +0 -45
- package/ios/include/openssl/pkcs7.h +0 -430
- package/ios/include/openssl/pkcs7err.h +0 -63
- package/ios/include/openssl/prov_ssl.h +0 -34
- package/ios/include/openssl/proverr.h +0 -149
- package/ios/include/openssl/provider.h +0 -60
- package/ios/include/openssl/quic.h +0 -19
- package/ios/include/openssl/rand.h +0 -125
- package/ios/include/openssl/randerr.h +0 -69
- package/ios/include/openssl/rc2.h +0 -68
- package/ios/include/openssl/rc4.h +0 -47
- package/ios/include/openssl/rc5.h +0 -79
- package/ios/include/openssl/ripemd.h +0 -59
- package/ios/include/openssl/rsa.h +0 -610
- package/ios/include/openssl/rsaerr.h +0 -107
- package/ios/include/openssl/safestack.h +0 -297
- package/ios/include/openssl/seed.h +0 -113
- package/ios/include/openssl/self_test.h +0 -94
- package/ios/include/openssl/sha.h +0 -138
- package/ios/include/openssl/srp.h +0 -285
- package/ios/include/openssl/srtp.h +0 -56
- package/ios/include/openssl/ssl.h +0 -2671
- package/ios/include/openssl/ssl2.h +0 -30
- package/ios/include/openssl/ssl3.h +0 -347
- package/ios/include/openssl/sslerr.h +0 -348
- package/ios/include/openssl/sslerr_legacy.h +0 -468
- package/ios/include/openssl/stack.h +0 -90
- package/ios/include/openssl/store.h +0 -369
- package/ios/include/openssl/storeerr.h +0 -49
- package/ios/include/openssl/symhacks.h +0 -39
- package/ios/include/openssl/tls1.h +0 -1186
- package/ios/include/openssl/trace.h +0 -312
- package/ios/include/openssl/ts.h +0 -505
- package/ios/include/openssl/tserr.h +0 -67
- package/ios/include/openssl/txt_db.h +0 -63
- package/ios/include/openssl/types.h +0 -239
- package/ios/include/openssl/ui.h +0 -407
- package/ios/include/openssl/uierr.h +0 -38
- package/ios/include/openssl/whrlpool.h +0 -62
- package/ios/include/openssl/x509.h +0 -1279
- package/ios/include/openssl/x509_vfy.h +0 -894
- package/ios/include/openssl/x509err.h +0 -69
- package/ios/include/openssl/x509v3.h +0 -1453
- package/ios/include/openssl/x509v3err.h +0 -93
- package/ios/libs/libcrypto.a +0 -0
- package/ios/libs/libngtcp2_crypto_quictls.a +0 -0
- package/ios/libs/libssl.a +0 -0
|
@@ -0,0 +1,1035 @@
|
|
|
1
|
+
/* io.h
|
|
2
|
+
*
|
|
3
|
+
* Copyright (C) 2006-2025 wolfSSL Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is part of wolfSSL.
|
|
6
|
+
*
|
|
7
|
+
* wolfSSL is free software; you can redistribute it and/or modify
|
|
8
|
+
* it under the terms of the GNU General Public License as published by
|
|
9
|
+
* the Free Software Foundation; either version 3 of the License, or
|
|
10
|
+
* (at your option) any later version.
|
|
11
|
+
*
|
|
12
|
+
* wolfSSL is distributed in the hope that it will be useful,
|
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
+
* GNU General Public License for more details.
|
|
16
|
+
*
|
|
17
|
+
* You should have received a copy of the GNU General Public License
|
|
18
|
+
* along with this program; if not, write to the Free Software
|
|
19
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/*!
|
|
23
|
+
\file wolfssl/wolfio.h
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
#ifndef WOLFSSL_IO_H
|
|
27
|
+
#define WOLFSSL_IO_H
|
|
28
|
+
|
|
29
|
+
#include <wolfssl/ssl.h>
|
|
30
|
+
|
|
31
|
+
#ifdef __cplusplus
|
|
32
|
+
extern "C" {
|
|
33
|
+
#endif
|
|
34
|
+
|
|
35
|
+
/* Micrium uses NetSock I/O callbacks in wolfio.c */
|
|
36
|
+
#if !defined(WOLFSSL_USER_IO)
|
|
37
|
+
/* OCSP and CRL_IO require HTTP client */
|
|
38
|
+
#if defined(HAVE_OCSP) || defined(HAVE_CRL_IO)
|
|
39
|
+
#ifndef HAVE_HTTP_CLIENT
|
|
40
|
+
#define HAVE_HTTP_CLIENT
|
|
41
|
+
#endif
|
|
42
|
+
#endif
|
|
43
|
+
#endif
|
|
44
|
+
|
|
45
|
+
#if !defined(WOLFSSL_USER_IO)
|
|
46
|
+
/* Micrium uses NetSock I/O callbacks in wolfio.c */
|
|
47
|
+
#if !defined(USE_WOLFSSL_IO) && !defined(MICRIUM) && \
|
|
48
|
+
!defined(WOLFSSL_CONTIKI) && !defined(WOLFSSL_NO_SOCK)
|
|
49
|
+
#define USE_WOLFSSL_IO
|
|
50
|
+
#endif
|
|
51
|
+
#endif
|
|
52
|
+
|
|
53
|
+
#if defined(USE_WOLFSSL_IO) || defined(WOLFSSL_USER_IO) || \
|
|
54
|
+
defined(HAVE_HTTP_CLIENT)
|
|
55
|
+
#ifdef HAVE_LIBZ
|
|
56
|
+
#include "zlib.h"
|
|
57
|
+
#endif
|
|
58
|
+
|
|
59
|
+
#if defined(__WATCOMC__)
|
|
60
|
+
#if defined(__NT__)
|
|
61
|
+
#elif defined(__OS2__)
|
|
62
|
+
#include <errno.h>
|
|
63
|
+
#include <os2.h>
|
|
64
|
+
#include <sys/types.h>
|
|
65
|
+
#include <os2/types.h>
|
|
66
|
+
#include <sys/socket.h>
|
|
67
|
+
#include <arpa/inet.h>
|
|
68
|
+
#include <netinet/in.h>
|
|
69
|
+
#include <nerrno.h>
|
|
70
|
+
#include <sys/ioctl.h>
|
|
71
|
+
|
|
72
|
+
typedef int socklen_t;
|
|
73
|
+
#elif defined(__LINUX__)
|
|
74
|
+
#include <sys/types.h>
|
|
75
|
+
#include <errno.h>
|
|
76
|
+
#include <unistd.h>
|
|
77
|
+
#include <fcntl.h>
|
|
78
|
+
#define XFCNTL(fd, flag, block) fcntl((fd), (flag), (block))
|
|
79
|
+
#include <sys/socket.h>
|
|
80
|
+
#include <arpa/inet.h>
|
|
81
|
+
#include <netinet/in.h>
|
|
82
|
+
#endif
|
|
83
|
+
#elif defined(USE_WINDOWS_API)
|
|
84
|
+
#include <winsock2.h>
|
|
85
|
+
#include <ws2tcpip.h>
|
|
86
|
+
#else
|
|
87
|
+
#if defined(WOLFSSL_LWIP) && !defined(WOLFSSL_APACHE_MYNEWT)
|
|
88
|
+
/* lwIP needs to be configured to use sockets API in this mode */
|
|
89
|
+
/* LWIP_SOCKET 1 in lwip/opt.h or in build */
|
|
90
|
+
#include "lwip/sockets.h"
|
|
91
|
+
#ifndef LWIP_PROVIDE_ERRNO
|
|
92
|
+
#include <errno.h>
|
|
93
|
+
#define LWIP_PROVIDE_ERRNO 1
|
|
94
|
+
#endif
|
|
95
|
+
#elif defined(ARDUINO)
|
|
96
|
+
/* board-specific */
|
|
97
|
+
#if defined(__AVR__)
|
|
98
|
+
/* No AVR specifics at this time */
|
|
99
|
+
#elif defined(__arm__)
|
|
100
|
+
/* No ARM specifics at this time */
|
|
101
|
+
#elif defined(ESP8266)
|
|
102
|
+
#define WOLFSSL_NO_SOCK
|
|
103
|
+
#define WOLFSSL_USER_IO
|
|
104
|
+
#define NO_WRITEV
|
|
105
|
+
/* No Sockets on ESP8266, thus no DTLS */
|
|
106
|
+
#elif defined(ESP32)
|
|
107
|
+
#if defined(WOLFSSL_DTLS) || defined(WOLFSSL_DTLS13)
|
|
108
|
+
#include <sys/socket.h>
|
|
109
|
+
#include <netinet/in.h>
|
|
110
|
+
#include <arpa/inet.h>
|
|
111
|
+
#endif
|
|
112
|
+
#else
|
|
113
|
+
/* Add new boards here */
|
|
114
|
+
#endif
|
|
115
|
+
#elif defined(FREESCALE_MQX)
|
|
116
|
+
#include <posix.h>
|
|
117
|
+
#include <rtcs.h>
|
|
118
|
+
#elif defined(FREESCALE_KSDK_MQX)
|
|
119
|
+
#include <rtcs.h>
|
|
120
|
+
#elif (defined(WOLFSSL_MDK_ARM) || defined(WOLFSSL_KEIL_TCP_NET))
|
|
121
|
+
#include "rl_net.h"
|
|
122
|
+
#include "errno.h"
|
|
123
|
+
#elif defined(WOLFSSL_CMSIS_RTOS)
|
|
124
|
+
#include "cmsis_os.h"
|
|
125
|
+
#elif defined(WOLFSSL_CMSIS_RTOSv2)
|
|
126
|
+
#include "cmsis_os2.h"
|
|
127
|
+
#elif defined(WOLFSSL_TIRTOS)
|
|
128
|
+
#include <sys/socket.h>
|
|
129
|
+
#elif defined(FREERTOS_TCP)
|
|
130
|
+
#include "FreeRTOS_Sockets.h"
|
|
131
|
+
#elif defined(WOLFSSL_IAR_ARM)
|
|
132
|
+
/* nothing */
|
|
133
|
+
#elif defined(HAVE_NETX_BSD)
|
|
134
|
+
#ifdef NETX_DUO
|
|
135
|
+
#include "nxd_bsd.h"
|
|
136
|
+
#else
|
|
137
|
+
#include "nx_bsd.h"
|
|
138
|
+
#endif
|
|
139
|
+
#elif defined(WOLFSSL_VXWORKS)
|
|
140
|
+
#include <sockLib.h>
|
|
141
|
+
#include <errno.h>
|
|
142
|
+
#elif defined(WOLFSSL_NUCLEUS_1_2)
|
|
143
|
+
#include <externs.h>
|
|
144
|
+
#include <errno.h>
|
|
145
|
+
#elif defined(WOLFSSL_LINUXKM)
|
|
146
|
+
/* the requisite linux/net.h is included in wc_port.h,
|
|
147
|
+
* with incompatible warnings masked out. */
|
|
148
|
+
#elif defined(WOLFSSL_BSDKM)
|
|
149
|
+
/* definitions are in bsdkm/bsdkm_wc_port.h */
|
|
150
|
+
#elif defined(WOLFSSL_ATMEL)
|
|
151
|
+
#include "socket/include/socket.h"
|
|
152
|
+
#elif defined(INTIME_RTOS)
|
|
153
|
+
#undef MIN
|
|
154
|
+
#undef MAX
|
|
155
|
+
#include <rt.h>
|
|
156
|
+
#include <sys/types.h>
|
|
157
|
+
#include <sys/socket.h>
|
|
158
|
+
#include <netdb.h>
|
|
159
|
+
#include <netinet/in.h>
|
|
160
|
+
#include <io.h>
|
|
161
|
+
/* <sys/socket.h> defines these, to avoid conflict, do undef */
|
|
162
|
+
#undef SOCKADDR
|
|
163
|
+
#undef SOCKADDR_IN
|
|
164
|
+
#elif defined(WOLFSSL_PRCONNECT_PRO)
|
|
165
|
+
#include <prconnect_pro/prconnect_pro.h>
|
|
166
|
+
#include <sys/types.h>
|
|
167
|
+
#include <errno.h>
|
|
168
|
+
#include <unistd.h>
|
|
169
|
+
#include <fcntl.h>
|
|
170
|
+
#elif defined(WOLFSSL_SGX)
|
|
171
|
+
#include <errno.h>
|
|
172
|
+
#elif defined(WOLFSSL_APACHE_MYNEWT) && !defined(WOLFSSL_LWIP)
|
|
173
|
+
#include <mn_socket/mn_socket.h>
|
|
174
|
+
#elif defined(WOLFSSL_DEOS)
|
|
175
|
+
#include <socketapi.h>
|
|
176
|
+
#include <lwip-socket.h>
|
|
177
|
+
#include <errno.h>
|
|
178
|
+
#elif defined(WOLFSSL_ZEPHYR)
|
|
179
|
+
#include <version.h>
|
|
180
|
+
#if KERNEL_VERSION_NUMBER >= 0x30100
|
|
181
|
+
#include <zephyr/net/socket.h>
|
|
182
|
+
#ifdef CONFIG_POSIX_API
|
|
183
|
+
#include <zephyr/posix/sys/socket.h>
|
|
184
|
+
#endif
|
|
185
|
+
#else
|
|
186
|
+
#include <net/socket.h>
|
|
187
|
+
#ifdef CONFIG_POSIX_API
|
|
188
|
+
#include <posix/sys/socket.h>
|
|
189
|
+
#endif
|
|
190
|
+
#endif
|
|
191
|
+
#elif defined(MICROCHIP_PIC32)
|
|
192
|
+
#include <sys/errno.h>
|
|
193
|
+
#elif defined(HAVE_NETX)
|
|
194
|
+
#include "nx_api.h"
|
|
195
|
+
#include "errno.h"
|
|
196
|
+
#elif defined(FUSION_RTOS)
|
|
197
|
+
#include <sys/fcltypes.h>
|
|
198
|
+
#include <fclerrno.h>
|
|
199
|
+
#include <fclfcntl.h>
|
|
200
|
+
#elif defined(WOLFSSL_EMNET)
|
|
201
|
+
#include <IP/IP.h>
|
|
202
|
+
#elif !defined(WOLFSSL_NO_SOCK)
|
|
203
|
+
#include <sys/types.h>
|
|
204
|
+
#include <errno.h>
|
|
205
|
+
#ifndef EBSNET
|
|
206
|
+
#include <unistd.h>
|
|
207
|
+
#endif
|
|
208
|
+
#include <fcntl.h>
|
|
209
|
+
#define XFCNTL(fd, flag, block) fcntl((fd), (flag), (block))
|
|
210
|
+
|
|
211
|
+
#if defined(HAVE_RTP_SYS)
|
|
212
|
+
#include <socket.h>
|
|
213
|
+
#elif defined(EBSNET)
|
|
214
|
+
#include "rtipapi.h" /* errno */
|
|
215
|
+
#include "socket.h"
|
|
216
|
+
#elif defined(NETOS)
|
|
217
|
+
#include <sockapi.h>
|
|
218
|
+
#elif defined(NUCLEUS_PLUS_2_3)
|
|
219
|
+
#define SO_TYPE 17 /* Socket type */
|
|
220
|
+
#define SO_RCVTIMEO 13 /* Recv Timeout */
|
|
221
|
+
#elif !defined(DEVKITPRO) && !defined(WOLFSSL_PICOTCP) \
|
|
222
|
+
&& !defined(WOLFSSL_CONTIKI) && !defined(WOLFSSL_WICED) \
|
|
223
|
+
&& !defined(WOLFSSL_GNRC) && !defined(WOLFSSL_RIOT_OS)
|
|
224
|
+
#include <sys/socket.h>
|
|
225
|
+
#include <arpa/inet.h>
|
|
226
|
+
#include <netinet/in.h>
|
|
227
|
+
#ifdef __PPU
|
|
228
|
+
#include <netex/errno.h>
|
|
229
|
+
#else
|
|
230
|
+
#endif
|
|
231
|
+
#endif
|
|
232
|
+
#endif
|
|
233
|
+
|
|
234
|
+
#if defined(WOLFSSL_RENESAS_RA6M3G) || defined(WOLFSSL_RENESAS_RA6M3) ||\
|
|
235
|
+
defined(WOLFSSL_RENESAS_RA6M4) || \
|
|
236
|
+
defined(WOLFSSL_RENESAS_RZN2L)
|
|
237
|
+
/* Uses FREERTOS_TCP */
|
|
238
|
+
#include <errno.h>
|
|
239
|
+
#endif
|
|
240
|
+
|
|
241
|
+
#if defined(WOLFSSL_EMBOS)
|
|
242
|
+
#include <errno.h>
|
|
243
|
+
#endif
|
|
244
|
+
#endif /* USE_WINDOWS_API */
|
|
245
|
+
|
|
246
|
+
#ifdef __sun
|
|
247
|
+
#include <sys/filio.h>
|
|
248
|
+
#endif
|
|
249
|
+
|
|
250
|
+
#define SOCKET_RECEIVING 1
|
|
251
|
+
#define SOCKET_SENDING 2
|
|
252
|
+
|
|
253
|
+
#ifdef __WATCOMC__
|
|
254
|
+
#if defined(__NT__)
|
|
255
|
+
/* no epipe yet */
|
|
256
|
+
#ifndef WSAEPIPE
|
|
257
|
+
#define WSAEPIPE -12345
|
|
258
|
+
#endif
|
|
259
|
+
#define SOCKET_EWOULDBLOCK WSAEWOULDBLOCK
|
|
260
|
+
#define SOCKET_EAGAIN WSAETIMEDOUT
|
|
261
|
+
#define SOCKET_ETIMEDOUT WSAETIMEDOUT
|
|
262
|
+
#define SOCKET_ECONNRESET WSAECONNRESET
|
|
263
|
+
#define SOCKET_EINTR WSAEINTR
|
|
264
|
+
#define SOCKET_EPIPE WSAEPIPE
|
|
265
|
+
#define SOCKET_ECONNREFUSED WSAENOTCONN
|
|
266
|
+
#define SOCKET_ECONNABORTED WSAECONNABORTED
|
|
267
|
+
#elif defined(__OS2__)
|
|
268
|
+
#define SOCKET_EWOULDBLOCK SOCEWOULDBLOCK
|
|
269
|
+
#define SOCKET_EAGAIN SOCEAGAIN
|
|
270
|
+
#define SOCKET_ETIMEDOUT SOCETIMEDOUT
|
|
271
|
+
#define SOCKET_ECONNRESET SOCECONNRESET
|
|
272
|
+
#define SOCKET_EINTR SOCEINTR
|
|
273
|
+
#define SOCKET_EPIPE SOCEPIPE
|
|
274
|
+
#define SOCKET_ECONNREFUSED SOCECONNREFUSED
|
|
275
|
+
#define SOCKET_ECONNABORTED SOCECONNABORTED
|
|
276
|
+
#elif defined(__UNIX__)
|
|
277
|
+
#define SOCKET_EWOULDBLOCK EWOULDBLOCK
|
|
278
|
+
#define SOCKET_EAGAIN EAGAIN
|
|
279
|
+
#define SOCKET_ETIMEDOUT ETIMEDOUT
|
|
280
|
+
#define SOCKET_ECONNRESET ECONNRESET
|
|
281
|
+
#define SOCKET_EINTR EINTR
|
|
282
|
+
#define SOCKET_EPIPE EPIPE
|
|
283
|
+
#define SOCKET_ECONNREFUSED ECONNREFUSED
|
|
284
|
+
#define SOCKET_ECONNABORTED ECONNABORTED
|
|
285
|
+
#endif
|
|
286
|
+
#elif defined(ARDUINO)
|
|
287
|
+
#if defined(WOLFSSL_DTLS) || defined(WOLFSSL_DTLS13)
|
|
288
|
+
#define SOCKADDR_S struct sockaddr_storage
|
|
289
|
+
#define SOCKADDR struct sockaddr
|
|
290
|
+
#define SOCKADDR_IN struct sockaddr_in
|
|
291
|
+
#endif
|
|
292
|
+
#define SOCKET_EWOULDBLOCK EWOULDBLOCK
|
|
293
|
+
#define SOCKET_EAGAIN EAGAIN
|
|
294
|
+
#define SOCKET_ETIMEDOUT ETIMEDOUT
|
|
295
|
+
#define SOCKET_ECONNRESET ECONNRESET
|
|
296
|
+
#define SOCKET_EINTR EINTR
|
|
297
|
+
#define SOCKET_EPIPE EPIPE
|
|
298
|
+
#define SOCKET_ECONNREFUSED ECONNREFUSED
|
|
299
|
+
#define SOCKET_ECONNABORTED ECONNABORTED
|
|
300
|
+
#elif defined(USE_WINDOWS_API)
|
|
301
|
+
/* no epipe yet */
|
|
302
|
+
#ifndef WSAEPIPE
|
|
303
|
+
#define WSAEPIPE -12345
|
|
304
|
+
#endif
|
|
305
|
+
#define SOCKET_EWOULDBLOCK WSAEWOULDBLOCK
|
|
306
|
+
#define SOCKET_EAGAIN WSAETIMEDOUT
|
|
307
|
+
#define SOCKET_ETIMEDOUT WSAETIMEDOUT
|
|
308
|
+
#define SOCKET_ECONNRESET WSAECONNRESET
|
|
309
|
+
#define SOCKET_EINTR WSAEINTR
|
|
310
|
+
#define SOCKET_EPIPE WSAEPIPE
|
|
311
|
+
#define SOCKET_ECONNREFUSED WSAENOTCONN
|
|
312
|
+
#define SOCKET_ECONNABORTED WSAECONNABORTED
|
|
313
|
+
#elif defined(__PPU)
|
|
314
|
+
#define SOCKET_EWOULDBLOCK SYS_NET_EWOULDBLOCK
|
|
315
|
+
#define SOCKET_EAGAIN SYS_NET_EAGAIN
|
|
316
|
+
#define SOCKET_ECONNRESET SYS_NET_ECONNRESET
|
|
317
|
+
#define SOCKET_EINTR SYS_NET_EINTR
|
|
318
|
+
#define SOCKET_EPIPE SYS_NET_EPIPE
|
|
319
|
+
#define SOCKET_ECONNREFUSED SYS_NET_ECONNREFUSED
|
|
320
|
+
#define SOCKET_ECONNABORTED SYS_NET_ECONNABORTED
|
|
321
|
+
#elif defined(FREESCALE_MQX) || defined(FREESCALE_KSDK_MQX)
|
|
322
|
+
#if (defined(MQX_USE_IO_OLD) && MQX_USE_IO_OLD) || \
|
|
323
|
+
defined(FREESCALE_MQX_5_0)
|
|
324
|
+
/* RTCS old I/O doesn't have an EWOULDBLOCK */
|
|
325
|
+
#define SOCKET_EWOULDBLOCK EAGAIN
|
|
326
|
+
#define SOCKET_EAGAIN EAGAIN
|
|
327
|
+
#define SOCKET_ETIMEDOUT RTCSERR_TCP_TIMED_OUT
|
|
328
|
+
#define SOCKET_ECONNRESET RTCSERR_TCP_CONN_RESET
|
|
329
|
+
#define SOCKET_EINTR EINTR
|
|
330
|
+
#define SOCKET_EPIPE EPIPE
|
|
331
|
+
#define SOCKET_ECONNREFUSED RTCSERR_TCP_CONN_REFUSED
|
|
332
|
+
#define SOCKET_ECONNABORTED RTCSERR_TCP_CONN_ABORTED
|
|
333
|
+
#else
|
|
334
|
+
#define SOCKET_EWOULDBLOCK NIO_EWOULDBLOCK
|
|
335
|
+
#define SOCKET_EAGAIN NIO_EAGAIN
|
|
336
|
+
#define SOCKET_ETIMEDOUT NIO_ETIMEDOUT
|
|
337
|
+
#define SOCKET_ECONNRESET NIO_ECONNRESET
|
|
338
|
+
#define SOCKET_EINTR NIO_EINTR
|
|
339
|
+
#define SOCKET_EPIPE NIO_EPIPE
|
|
340
|
+
#define SOCKET_ECONNREFUSED NIO_ECONNREFUSED
|
|
341
|
+
#define SOCKET_ECONNABORTED NIO_ECONNABORTED
|
|
342
|
+
#endif
|
|
343
|
+
#elif defined(WOLFSSL_MDK_ARM)|| defined(WOLFSSL_KEIL_TCP_NET)
|
|
344
|
+
#define SOCKET_EWOULDBLOCK BSD_ERROR_WOULDBLOCK
|
|
345
|
+
#define SOCKET_EAGAIN BSD_ERROR_LOCKED
|
|
346
|
+
#define SOCKET_ECONNRESET BSD_ERROR_CLOSED
|
|
347
|
+
#define SOCKET_EINTR BSD_ERROR
|
|
348
|
+
#define SOCKET_EPIPE BSD_ERROR
|
|
349
|
+
#define SOCKET_ECONNREFUSED BSD_ERROR
|
|
350
|
+
#define SOCKET_ECONNABORTED BSD_ERROR
|
|
351
|
+
#elif defined(WOLFSSL_PICOTCP)
|
|
352
|
+
#define SOCKET_EWOULDBLOCK PICO_ERR_EAGAIN
|
|
353
|
+
#define SOCKET_EAGAIN PICO_ERR_EAGAIN
|
|
354
|
+
#define SOCKET_ETIMEDOUT PICO_ERR_ETIMEDOUT
|
|
355
|
+
#define SOCKET_ECONNRESET PICO_ERR_ECONNRESET
|
|
356
|
+
#define SOCKET_EINTR PICO_ERR_EINTR
|
|
357
|
+
#define SOCKET_EPIPE PICO_ERR_EIO
|
|
358
|
+
#define SOCKET_ECONNREFUSED PICO_ERR_ECONNREFUSED
|
|
359
|
+
#define SOCKET_ECONNABORTED PICO_ERR_ESHUTDOWN
|
|
360
|
+
#elif defined(FREERTOS_TCP)
|
|
361
|
+
#define SOCKET_EWOULDBLOCK FREERTOS_EWOULDBLOCK
|
|
362
|
+
#define SOCKET_EAGAIN FREERTOS_EWOULDBLOCK
|
|
363
|
+
#define SOCKET_ETIMEDOUT (-pdFREERTOS_ERRNO_ETIMEDOUT)
|
|
364
|
+
#define SOCKET_ECONNRESET FREERTOS_SOCKET_ERROR
|
|
365
|
+
#define SOCKET_EINTR FREERTOS_SOCKET_ERROR
|
|
366
|
+
#define SOCKET_EPIPE FREERTOS_SOCKET_ERROR
|
|
367
|
+
#define SOCKET_ECONNREFUSED FREERTOS_SOCKET_ERROR
|
|
368
|
+
#define SOCKET_ECONNABORTED FREERTOS_SOCKET_ERROR
|
|
369
|
+
#elif defined(WOLFSSL_NUCLEUS_1_2)
|
|
370
|
+
#define SOCKET_EWOULDBLOCK NU_WOULD_BLOCK
|
|
371
|
+
#define SOCKET_EAGAIN NU_WOULD_BLOCK
|
|
372
|
+
#define SOCKET_ECONNRESET NU_NOT_CONNECTED
|
|
373
|
+
#define SOCKET_EINTR NU_NOT_CONNECTED
|
|
374
|
+
#define SOCKET_EPIPE NU_NOT_CONNECTED
|
|
375
|
+
#define SOCKET_ECONNREFUSED NU_CONNECTION_REFUSED
|
|
376
|
+
#define SOCKET_ECONNABORTED NU_NOT_CONNECTED
|
|
377
|
+
#elif defined(NUCLEUS_PLUS_2_3)
|
|
378
|
+
#define SOCKET_EWOULDBLOCK NU_WOULD_BLOCK
|
|
379
|
+
#define SOCKET_EAGAIN NU_NO_DATA
|
|
380
|
+
#define SOCKET_ECONNRESET NU_RESET
|
|
381
|
+
#define SOCKET_EINTR 0
|
|
382
|
+
#define SOCKET_EPIPE 0
|
|
383
|
+
#define SOCKET_ECONNREFUSED NU_CONNECTION_REFUSED
|
|
384
|
+
#define SOCKET_ECONNABORTED NU_CONNECTION_REFUSED
|
|
385
|
+
#elif defined(WOLFSSL_DEOS)
|
|
386
|
+
/* `sockaddr_storage` is not defined in DEOS. This workaround will
|
|
387
|
+
* work for IPV4, but not IPV6
|
|
388
|
+
*/
|
|
389
|
+
#define sockaddr_storage sockaddr_in
|
|
390
|
+
#define SOCKET_EWOULDBLOCK EAGAIN
|
|
391
|
+
#define SOCKET_EAGAIN EAGAIN
|
|
392
|
+
#define SOCKET_ECONNRESET EINTR
|
|
393
|
+
#define SOCKET_EINTR EINTR
|
|
394
|
+
#define SOCKET_EPIPE EPIPE
|
|
395
|
+
#define SOCKET_ECONNREFUSED SOCKET_ERROR
|
|
396
|
+
#define SOCKET_ECONNABORTED SOCKET_ERROR
|
|
397
|
+
#elif defined(HAVE_NETX)
|
|
398
|
+
#define SOCKET_EWOULDBLOCK NX_NOT_CONNECTED
|
|
399
|
+
#define SOCKET_EAGAIN NX_NOT_CONNECTED
|
|
400
|
+
#define SOCKET_ECONNRESET NX_NOT_CONNECTED
|
|
401
|
+
#define SOCKET_EINTR NX_NOT_CONNECTED
|
|
402
|
+
#define SOCKET_EPIPE NX_NOT_CONNECTED
|
|
403
|
+
#define SOCKET_ECONNREFUSED NX_NOT_CONNECTED
|
|
404
|
+
#define SOCKET_ECONNABORTED NX_NOT_CONNECTED
|
|
405
|
+
#elif defined(FUSION_RTOS)
|
|
406
|
+
#define SOCKET_EWOULDBLOCK FCL_EWOULDBLOCK
|
|
407
|
+
#define SOCKET_EAGAIN FCL_EAGAIN
|
|
408
|
+
#define SOCKET_ECONNRESET FNS_ECONNRESET
|
|
409
|
+
#define SOCKET_EINTR FCL_EINTR
|
|
410
|
+
#define SOCKET_EPIPE FCL_EPIPE
|
|
411
|
+
#define SOCKET_ECONNREFUSED FCL_ECONNREFUSED
|
|
412
|
+
#define SOCKET_ECONNABORTED FNS_ECONNABORTED
|
|
413
|
+
#elif defined(WOLFSSL_LWIP_NATIVE)
|
|
414
|
+
#define SOCKET_EWOULDBLOCK ERR_WOULDBLOCK
|
|
415
|
+
#define SOCKET_EAGAIN ERR_WOULDBLOCK
|
|
416
|
+
#define SOCKET_TIMEDOUT ERR_TIMEOUT
|
|
417
|
+
#define SOCKET_ECONNRESET ERR_RST
|
|
418
|
+
#define SOCKET_EINTR ERR_CLSD
|
|
419
|
+
#define SOCKET_EPIPE ERR_CLSD
|
|
420
|
+
#define SOCKET_ECONNREFUSED ERR_CONN
|
|
421
|
+
#define SOCKET_ECONNABORTED ERR_ABRT
|
|
422
|
+
#elif defined(WOLFSSL_EMNET)
|
|
423
|
+
#define XSOCKLENT int
|
|
424
|
+
#define SOCKET_EWOULDBLOCK IP_ERR_WOULD_BLOCK
|
|
425
|
+
#define SOCKET_EAGAIN IP_ERR_WOULD_BLOCK
|
|
426
|
+
#define SOCKET_ECONNRESET IP_ERR_CONN_RESET
|
|
427
|
+
#define SOCKET_EINTR IP_ERR_FAULT
|
|
428
|
+
#define SOCKET_EPIPE IP_ERR_PIPE
|
|
429
|
+
#define SOCKET_ECONNREFUSED IP_ERR_CONN_REFUSED
|
|
430
|
+
#define SOCKET_ECONNABORTED IP_ERR_CONN_ABORTED
|
|
431
|
+
#else
|
|
432
|
+
#define SOCKET_EWOULDBLOCK EWOULDBLOCK
|
|
433
|
+
#define SOCKET_EAGAIN EAGAIN
|
|
434
|
+
#define SOCKET_ETIMEDOUT ETIMEDOUT
|
|
435
|
+
#define SOCKET_ECONNRESET ECONNRESET
|
|
436
|
+
#define SOCKET_EINTR EINTR
|
|
437
|
+
#define SOCKET_EPIPE EPIPE
|
|
438
|
+
#define SOCKET_ECONNREFUSED ECONNREFUSED
|
|
439
|
+
#define SOCKET_ECONNABORTED ECONNABORTED
|
|
440
|
+
#endif /* __WATCOMC__ || ARDUINO || USE_WINDOWS_API || __PPU || .. etc */
|
|
441
|
+
|
|
442
|
+
#ifdef DEVKITPRO
|
|
443
|
+
/* from network.h */
|
|
444
|
+
#include <network.h>
|
|
445
|
+
#define SEND_FUNCTION net_send
|
|
446
|
+
#define RECV_FUNCTION net_recv
|
|
447
|
+
#elif defined(WOLFSSL_ESPIDF)
|
|
448
|
+
#define SEND_FUNCTION send
|
|
449
|
+
#define RECV_FUNCTION recv
|
|
450
|
+
#if !defined(HAVE_SOCKADDR) && !defined(WOLFSSL_NO_SOCK)
|
|
451
|
+
#define HAVE_SOCKADDR
|
|
452
|
+
#endif
|
|
453
|
+
#elif defined(WOLFSSL_LWIP) && !defined(WOLFSSL_APACHE_MYNEWT)
|
|
454
|
+
#define SEND_FUNCTION lwip_send
|
|
455
|
+
#define RECV_FUNCTION lwip_recv
|
|
456
|
+
#elif defined(WOLFSSL_PICOTCP)
|
|
457
|
+
#define SEND_FUNCTION pico_send
|
|
458
|
+
#define RECV_FUNCTION pico_recv
|
|
459
|
+
#elif defined(FREERTOS_TCP)
|
|
460
|
+
#define RECV_FUNCTION(a,b,c,d) FreeRTOS_recv((Socket_t)(a),(void*)(b), (size_t)(c), (BaseType_t)(d))
|
|
461
|
+
#define SEND_FUNCTION(a,b,c,d) FreeRTOS_send((Socket_t)(a),(void*)(b), (size_t)(c), (BaseType_t)(d))
|
|
462
|
+
#elif defined(WOLFSSL_VXWORKS)
|
|
463
|
+
/*socket.h already has "typedef struct sockaddr SOCKADDR;"
|
|
464
|
+
so don't redefine it in wolfSSL */
|
|
465
|
+
#define HAVE_SOCKADDR_DEFINED
|
|
466
|
+
#define SEND_FUNCTION send
|
|
467
|
+
#define RECV_FUNCTION recv
|
|
468
|
+
#elif defined(WOLFSSL_NUCLEUS_1_2)
|
|
469
|
+
#define SEND_FUNCTION NU_Send
|
|
470
|
+
#define RECV_FUNCTION NU_Recv
|
|
471
|
+
#elif defined(NUCLEUS_PLUS_2_3)
|
|
472
|
+
#define SEND_FUNCTION nucyassl_send
|
|
473
|
+
#define RECV_FUNCTION nucyassl_recv
|
|
474
|
+
#define DTLS_RECVFROM_FUNCTION nucyassl_recvfrom
|
|
475
|
+
#define DTLS_SENDTO_FUNCTION nucyassl_sendto
|
|
476
|
+
#elif defined(FUSION_RTOS)
|
|
477
|
+
#define SEND_FUNCTION FNS_SEND
|
|
478
|
+
#define RECV_FUNCTION FNS_RECV
|
|
479
|
+
#elif defined(WOLFSSL_ZEPHYR)
|
|
480
|
+
#ifndef WOLFSSL_MAX_SEND_SZ
|
|
481
|
+
#define WOLFSSL_MAX_SEND_SZ 256
|
|
482
|
+
#endif
|
|
483
|
+
|
|
484
|
+
#define SEND_FUNCTION send
|
|
485
|
+
#define RECV_FUNCTION recv
|
|
486
|
+
#elif defined(WOLFSSL_LINUXKM)
|
|
487
|
+
#define SEND_FUNCTION linuxkm_send
|
|
488
|
+
#define RECV_FUNCTION linuxkm_recv
|
|
489
|
+
#elif defined(WOLFSSL_SGX)
|
|
490
|
+
#define SEND_FUNCTION send
|
|
491
|
+
#define RECV_FUNCTION recv
|
|
492
|
+
#else
|
|
493
|
+
#define SEND_FUNCTION send
|
|
494
|
+
#define RECV_FUNCTION recv
|
|
495
|
+
#if !defined(HAVE_SOCKADDR) && !defined(WOLFSSL_NO_SOCK)
|
|
496
|
+
#define HAVE_SOCKADDR
|
|
497
|
+
#endif
|
|
498
|
+
#endif
|
|
499
|
+
|
|
500
|
+
#ifndef WOLFSSL_NO_SOCK
|
|
501
|
+
#ifndef XSOCKLENT
|
|
502
|
+
#ifdef USE_WINDOWS_API
|
|
503
|
+
#define XSOCKLENT int
|
|
504
|
+
#elif defined(NUCLEUS_PLUS_2_3)
|
|
505
|
+
typedef int socklen_t;
|
|
506
|
+
#define XSOCKLENT socklen_t
|
|
507
|
+
#else
|
|
508
|
+
#define XSOCKLENT socklen_t
|
|
509
|
+
#endif
|
|
510
|
+
#endif
|
|
511
|
+
#ifndef XSOCKOPT_TYPE_OPTVAL_TYPE
|
|
512
|
+
#ifndef USE_WINDOWS_API
|
|
513
|
+
#define XSOCKOPT_TYPE_OPTVAL_TYPE void*
|
|
514
|
+
#else
|
|
515
|
+
#define XSOCKOPT_TYPE_OPTVAL_TYPE char*
|
|
516
|
+
#endif
|
|
517
|
+
#endif
|
|
518
|
+
|
|
519
|
+
/* Socket Addr Support */
|
|
520
|
+
#ifdef HAVE_SOCKADDR
|
|
521
|
+
#ifndef HAVE_SOCKADDR_DEFINED
|
|
522
|
+
typedef struct sockaddr SOCKADDR;
|
|
523
|
+
#endif
|
|
524
|
+
typedef struct sockaddr_storage SOCKADDR_S;
|
|
525
|
+
typedef struct sockaddr_in SOCKADDR_IN;
|
|
526
|
+
#ifdef WOLFSSL_IPV6
|
|
527
|
+
typedef struct sockaddr_in6 SOCKADDR_IN6;
|
|
528
|
+
#endif
|
|
529
|
+
#if defined(HAVE_SYS_UN_H) && !defined(WOLFSSL_NO_SOCKADDR_UN)
|
|
530
|
+
#include <sys/un.h>
|
|
531
|
+
typedef struct sockaddr_un SOCKADDR_UN;
|
|
532
|
+
#endif
|
|
533
|
+
typedef struct hostent HOSTENT;
|
|
534
|
+
#endif /* HAVE_SOCKADDR */
|
|
535
|
+
|
|
536
|
+
#if defined(HAVE_GETADDRINFO)
|
|
537
|
+
typedef struct addrinfo ADDRINFO;
|
|
538
|
+
#endif
|
|
539
|
+
#endif /* WOLFSSL_NO_SOCK */
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
/* IO API's */
|
|
543
|
+
#ifdef HAVE_IO_TIMEOUT
|
|
544
|
+
WOLFSSL_API int wolfIO_SetBlockingMode(SOCKET_T sockfd, int non_blocking);
|
|
545
|
+
WOLFSSL_API void wolfIO_SetTimeout(int to_sec);
|
|
546
|
+
WOLFSSL_API int wolfIO_Select(SOCKET_T sockfd, int to_sec);
|
|
547
|
+
#endif
|
|
548
|
+
WOLFSSL_API int wolfIO_TcpConnect(SOCKET_T* sockfd, const char* ip,
|
|
549
|
+
unsigned short port, int to_sec);
|
|
550
|
+
#ifdef HAVE_SOCKADDR
|
|
551
|
+
WOLFSSL_API int wolfIO_TcpAccept(SOCKET_T sockfd, SOCKADDR* peer_addr, XSOCKLENT* peer_len);
|
|
552
|
+
#endif
|
|
553
|
+
WOLFSSL_API int wolfIO_TcpBind(SOCKET_T* sockfd, word16 port);
|
|
554
|
+
WOLFSSL_API int wolfIO_Send(SOCKET_T sd, char *buf, int sz, int wrFlags);
|
|
555
|
+
WOLFSSL_API int wolfIO_Recv(SOCKET_T sd, char *buf, int sz, int rdFlags);
|
|
556
|
+
|
|
557
|
+
#ifdef WOLFSSL_HAVE_BIO_ADDR
|
|
558
|
+
|
|
559
|
+
#ifdef WOLFSSL_NO_SOCK
|
|
560
|
+
#error WOLFSSL_HAVE_BIO_ADDR and WOLFSSL_NO_SOCK are mutually incompatible.
|
|
561
|
+
#endif
|
|
562
|
+
|
|
563
|
+
union WOLFSSL_BIO_ADDR {
|
|
564
|
+
SOCKADDR sa;
|
|
565
|
+
SOCKADDR_IN sa_in;
|
|
566
|
+
#ifdef WOLFSSL_IPV6
|
|
567
|
+
SOCKADDR_IN6 sa_in6;
|
|
568
|
+
#endif
|
|
569
|
+
#if defined(HAVE_SYS_UN_H) && !defined(WOLFSSL_NO_SOCKADDR_UN)
|
|
570
|
+
SOCKADDR_UN sa_un;
|
|
571
|
+
#endif
|
|
572
|
+
};
|
|
573
|
+
|
|
574
|
+
typedef union WOLFSSL_BIO_ADDR WOLFSSL_BIO_ADDR;
|
|
575
|
+
|
|
576
|
+
#if defined(WOLFSSL_DTLS) && defined(OPENSSL_EXTRA)
|
|
577
|
+
WOLFSSL_API int wolfIO_SendTo(SOCKET_T sd, WOLFSSL_BIO_ADDR *addr, char *buf, int sz, int wrFlags);
|
|
578
|
+
WOLFSSL_API int wolfIO_RecvFrom(SOCKET_T sd, WOLFSSL_BIO_ADDR *addr, char *buf, int sz, int rdFlags);
|
|
579
|
+
#endif
|
|
580
|
+
|
|
581
|
+
#endif /* WOLFSSL_HAVE_BIO_ADDR */
|
|
582
|
+
|
|
583
|
+
#endif /* USE_WOLFSSL_IO || HAVE_HTTP_CLIENT */
|
|
584
|
+
|
|
585
|
+
#ifndef WOLFSSL_NO_SOCK
|
|
586
|
+
#ifdef USE_WINDOWS_API
|
|
587
|
+
#ifndef CloseSocket
|
|
588
|
+
#define CloseSocket(s) closesocket(s)
|
|
589
|
+
#endif
|
|
590
|
+
#define StartTCP() { WSADATA wsd; WSAStartup(0x0002, &wsd); }
|
|
591
|
+
#elif defined(WOLFSSL_MDK_ARM) || defined(WOLFSSL_KEIL_TCP_NET)
|
|
592
|
+
#ifndef CloseSocket
|
|
593
|
+
extern int closesocket(int);
|
|
594
|
+
#define CloseSocket(s) closesocket(s)
|
|
595
|
+
#endif
|
|
596
|
+
#define StartTCP() WC_DO_NOTHING
|
|
597
|
+
#elif defined(FUSION_RTOS)
|
|
598
|
+
#ifndef CloseSocket
|
|
599
|
+
#define CloseSocket(s) do { \
|
|
600
|
+
int err; \
|
|
601
|
+
FNS_CLOSE(s, &err); \
|
|
602
|
+
} while(0)
|
|
603
|
+
#endif
|
|
604
|
+
#define StartTCP() WC_DO_NOTHING
|
|
605
|
+
#else
|
|
606
|
+
#ifndef CloseSocket
|
|
607
|
+
#define CloseSocket(s) close(s)
|
|
608
|
+
#endif
|
|
609
|
+
#define StartTCP() WC_DO_NOTHING
|
|
610
|
+
#ifdef FREERTOS_TCP_WINSIM
|
|
611
|
+
extern int close(int);
|
|
612
|
+
#endif
|
|
613
|
+
#endif
|
|
614
|
+
#endif /* WOLFSSL_NO_SOCK */
|
|
615
|
+
|
|
616
|
+
WOLFSSL_API int wolfSSL_BioSend(WOLFSSL* ssl, char *buf, int sz, void *ctx);
|
|
617
|
+
WOLFSSL_API int wolfSSL_BioReceive(WOLFSSL* ssl, char* buf, int sz, void* ctx);
|
|
618
|
+
#ifndef OPENSSL_COEXIST
|
|
619
|
+
/* Preserve API previously exposed */
|
|
620
|
+
#define BioSend wolfSSL_BioSend
|
|
621
|
+
#define BioReceive wolfSSL_BioReceive
|
|
622
|
+
#endif
|
|
623
|
+
|
|
624
|
+
WOLFSSL_LOCAL int SslBioSend(WOLFSSL* ssl, char *buf, int sz, void *ctx);
|
|
625
|
+
#if defined(OPENSSL_EXTRA) || defined(OPENSSL_EXTRA_X509_SMALL)
|
|
626
|
+
WOLFSSL_LOCAL int BioReceiveInternal(WOLFSSL_BIO* biord, WOLFSSL_BIO* biowr,
|
|
627
|
+
char* buf, int sz);
|
|
628
|
+
#endif
|
|
629
|
+
WOLFSSL_LOCAL int SslBioReceive(WOLFSSL* ssl, char* buf, int sz, void* ctx);
|
|
630
|
+
|
|
631
|
+
#ifdef WOLFSSL_DTLS
|
|
632
|
+
typedef ssize_t (*WolfSSLRecvFrom)(int sockfd, void* buf, size_t len, int flags,
|
|
633
|
+
void* src_addr, void* addrlen);
|
|
634
|
+
typedef ssize_t (*WolfSSLSento)(int sockfd, const void* buf, size_t len, int flags,
|
|
635
|
+
const void* dest_addr, word32 addrlen);
|
|
636
|
+
WOLFSSL_API void wolfSSL_SetRecvFrom(WOLFSSL* ssl, WolfSSLRecvFrom recvFrom);
|
|
637
|
+
WOLFSSL_API void wolfSSL_SetSendTo(WOLFSSL* ssl, WolfSSLSento sendTo);
|
|
638
|
+
#endif
|
|
639
|
+
#if defined(USE_WOLFSSL_IO)
|
|
640
|
+
/* default IO callbacks */
|
|
641
|
+
|
|
642
|
+
#ifdef WOLFSSL_API_PREFIX_MAP
|
|
643
|
+
#define EmbedReceive wolfSSL_EmbedReceive
|
|
644
|
+
#define EmbedSend wolfSSL_EmbedSend
|
|
645
|
+
#ifdef WOLFSSL_DTLS
|
|
646
|
+
#define EmbedReceiveFrom wolfSSL_EmbedReceiveFrom
|
|
647
|
+
#define EmbedSendTo wolfSSL_EmbedSendTo
|
|
648
|
+
#define EmbedGenerateCookie wolfSSL_EmbedGenerateCookie
|
|
649
|
+
#ifdef WOLFSSL_MULTICAST
|
|
650
|
+
#define EmbedReceiveFromMcast wolfSSL_EmbedReceiveFromMcast
|
|
651
|
+
#endif /* WOLFSSL_MULTICAST */
|
|
652
|
+
#endif /* WOLFSSL_DTLS */
|
|
653
|
+
#endif /* WOLFSSL_API_PREFIX_MAP */
|
|
654
|
+
|
|
655
|
+
WOLFSSL_API int EmbedReceive(WOLFSSL* ssl, char* buf, int sz, void* ctx);
|
|
656
|
+
WOLFSSL_API int EmbedSend(WOLFSSL* ssl, char* buf, int sz, void* ctx);
|
|
657
|
+
|
|
658
|
+
#ifdef WOLFSSL_DTLS
|
|
659
|
+
#ifdef NUCLEUS_PLUS_2_3
|
|
660
|
+
#define SELECT_FUNCTION nucyassl_select
|
|
661
|
+
WOLFSSL_LOCAL int nucyassl_select(INT sd, UINT32 timeout);
|
|
662
|
+
#endif
|
|
663
|
+
WOLFSSL_API int EmbedReceiveFrom(WOLFSSL *ssl, char *buf, int sz,
|
|
664
|
+
void *ctx);
|
|
665
|
+
WOLFSSL_API int EmbedSendTo(WOLFSSL* ssl, char *buf, int sz, void *ctx);
|
|
666
|
+
WOLFSSL_API int EmbedGenerateCookie(WOLFSSL* ssl, byte *buf, int sz,
|
|
667
|
+
void *ctx);
|
|
668
|
+
#ifdef WOLFSSL_MULTICAST
|
|
669
|
+
WOLFSSL_API int EmbedReceiveFromMcast(WOLFSSL *ssl, char *buf,
|
|
670
|
+
int sz, void *ctx);
|
|
671
|
+
#endif /* WOLFSSL_MULTICAST */
|
|
672
|
+
#endif /* WOLFSSL_DTLS */
|
|
673
|
+
#endif /* USE_WOLFSSL_IO */
|
|
674
|
+
|
|
675
|
+
|
|
676
|
+
typedef int (*WolfSSLGenericIORecvCb)(char *buf, int sz, void *ctx);
|
|
677
|
+
#ifdef HAVE_OCSP
|
|
678
|
+
WOLFSSL_API int wolfIO_HttpBuildRequestOcsp(const char* domainName,
|
|
679
|
+
const char* path, int ocspReqSz, unsigned char* buf, int bufSize);
|
|
680
|
+
WOLFSSL_API int wolfIO_HttpProcessResponseOcspGenericIO(
|
|
681
|
+
WolfSSLGenericIORecvCb ioCb, void* ioCbCtx, unsigned char** respBuf,
|
|
682
|
+
unsigned char* httpBuf, int httpBufSz, void* heap);
|
|
683
|
+
WOLFSSL_API int wolfIO_HttpProcessResponseOcsp(int sfd,
|
|
684
|
+
unsigned char** respBuf, unsigned char* httpBuf, int httpBufSz,
|
|
685
|
+
void* heap);
|
|
686
|
+
|
|
687
|
+
#ifdef WOLFSSL_API_PREFIX_MAP
|
|
688
|
+
#define EmbedOcspLookup wolfSSL_EmbedOcspLookup
|
|
689
|
+
#define EmbedOcspRespFree wolfSSL_EmbedOcspRespFree
|
|
690
|
+
#endif
|
|
691
|
+
WOLFSSL_API int EmbedOcspLookup(void* ctx, const char* url, int urlSz,
|
|
692
|
+
byte* ocspReqBuf, int ocspReqSz, byte** ocspRespBuf);
|
|
693
|
+
WOLFSSL_API void EmbedOcspRespFree(void* ctx, byte *resp);
|
|
694
|
+
#endif
|
|
695
|
+
|
|
696
|
+
#ifdef HAVE_CRL_IO
|
|
697
|
+
WOLFSSL_API int wolfIO_HttpBuildRequestCrl(const char* url, int urlSz,
|
|
698
|
+
const char* domainName, unsigned char* buf, int bufSize);
|
|
699
|
+
WOLFSSL_API int wolfIO_HttpProcessResponseCrl(WOLFSSL_CRL* crl, int sfd,
|
|
700
|
+
unsigned char* httpBuf, int httpBufSz);
|
|
701
|
+
|
|
702
|
+
#ifdef WOLFSSL_API_PREFIX_MAP
|
|
703
|
+
#define EmbedCrlLookup wolfSSL_EmbedCrlLookup
|
|
704
|
+
#endif
|
|
705
|
+
WOLFSSL_API int EmbedCrlLookup(WOLFSSL_CRL* crl, const char* url,
|
|
706
|
+
int urlSz);
|
|
707
|
+
#endif
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
#if defined(HAVE_HTTP_CLIENT)
|
|
711
|
+
WOLFSSL_API int wolfIO_DecodeUrl(const char* url, int urlSz, char* outName,
|
|
712
|
+
char* outPath, unsigned short* outPort);
|
|
713
|
+
|
|
714
|
+
WOLFSSL_API int wolfIO_HttpBuildRequest(const char* reqType,
|
|
715
|
+
const char* domainName, const char* path, int pathLen, int reqSz,
|
|
716
|
+
const char* contentType, unsigned char* buf, int bufSize);
|
|
717
|
+
WOLFSSL_LOCAL int wolfIO_HttpBuildRequest_ex(const char* reqType,
|
|
718
|
+
const char* domainName, const char* path, int pathLen, int reqSz,
|
|
719
|
+
const char* contentType, const char *exHdrs, unsigned char* buf, int bufSize);
|
|
720
|
+
WOLFSSL_API int wolfIO_HttpProcessResponseGenericIO(
|
|
721
|
+
WolfSSLGenericIORecvCb ioCb, void* ioCbCtx, const char** appStrList,
|
|
722
|
+
unsigned char** respBuf, unsigned char* httpBuf, int httpBufSz,
|
|
723
|
+
int dynType, void* heap);
|
|
724
|
+
WOLFSSL_API int wolfIO_HttpProcessResponse(int sfd, const char** appStrList,
|
|
725
|
+
unsigned char** respBuf, unsigned char* httpBuf, int httpBufSz,
|
|
726
|
+
int dynType, void* heap);
|
|
727
|
+
#endif /* HAVE_HTTP_CLIENT */
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
/* I/O callbacks */
|
|
731
|
+
typedef int (*CallbackIORecv)(WOLFSSL *ssl, char *buf, int sz, void *ctx);
|
|
732
|
+
typedef int (*CallbackIOSend)(WOLFSSL *ssl, char *buf, int sz, void *ctx);
|
|
733
|
+
WOLFSSL_API void wolfSSL_CTX_SetIORecv(WOLFSSL_CTX *ctx, CallbackIORecv CBIORecv);
|
|
734
|
+
WOLFSSL_API void wolfSSL_CTX_SetIOSend(WOLFSSL_CTX *ctx, CallbackIOSend CBIOSend);
|
|
735
|
+
WOLFSSL_API void wolfSSL_SSLSetIORecv(WOLFSSL *ssl, CallbackIORecv CBIORecv);
|
|
736
|
+
WOLFSSL_API void wolfSSL_SSLSetIOSend(WOLFSSL *ssl, CallbackIOSend CBIOSend);
|
|
737
|
+
WOLFSSL_API void wolfSSL_SSLDisableRead(WOLFSSL *ssl);
|
|
738
|
+
WOLFSSL_API void wolfSSL_SSLEnableRead(WOLFSSL *ssl);
|
|
739
|
+
/* deprecated old name */
|
|
740
|
+
#define wolfSSL_SetIORecv wolfSSL_CTX_SetIORecv
|
|
741
|
+
#define wolfSSL_SetIOSend wolfSSL_CTX_SetIOSend
|
|
742
|
+
|
|
743
|
+
WOLFSSL_API void wolfSSL_SetIOReadCtx( WOLFSSL* ssl, void *ctx);
|
|
744
|
+
WOLFSSL_API void wolfSSL_SetIOWriteCtx(WOLFSSL* ssl, void *ctx);
|
|
745
|
+
|
|
746
|
+
WOLFSSL_API void* wolfSSL_GetIOReadCtx( WOLFSSL* ssl);
|
|
747
|
+
WOLFSSL_API void* wolfSSL_GetIOWriteCtx(WOLFSSL* ssl);
|
|
748
|
+
|
|
749
|
+
WOLFSSL_API void wolfSSL_SetIOReadFlags( WOLFSSL* ssl, int flags);
|
|
750
|
+
WOLFSSL_API void wolfSSL_SetIOWriteFlags(WOLFSSL* ssl, int flags);
|
|
751
|
+
|
|
752
|
+
#ifdef HAVE_NETX
|
|
753
|
+
WOLFSSL_LOCAL int NetX_Receive(WOLFSSL *ssl, char *buf, int sz, void *ctx);
|
|
754
|
+
WOLFSSL_LOCAL int NetX_Send(WOLFSSL *ssl, char *buf, int sz, void *ctx);
|
|
755
|
+
|
|
756
|
+
WOLFSSL_API void wolfSSL_SetIO_NetX(WOLFSSL* ssl, NX_TCP_SOCKET* nxsocket,
|
|
757
|
+
ULONG waitoption);
|
|
758
|
+
#endif /* HAVE_NETX */
|
|
759
|
+
|
|
760
|
+
#ifdef MICRIUM
|
|
761
|
+
WOLFSSL_LOCAL int MicriumSend(WOLFSSL* ssl, char* buf, int sz, void* ctx);
|
|
762
|
+
WOLFSSL_LOCAL int MicriumReceive(WOLFSSL* ssl, char* buf, int sz,
|
|
763
|
+
void* ctx);
|
|
764
|
+
WOLFSSL_LOCAL int MicriumReceiveFrom(WOLFSSL* ssl, char* buf, int sz,
|
|
765
|
+
void* ctx);
|
|
766
|
+
WOLFSSL_LOCAL int MicriumSendTo(WOLFSSL* ssl, char* buf, int sz, void* ctx);
|
|
767
|
+
#endif /* MICRIUM */
|
|
768
|
+
|
|
769
|
+
#if defined(WOLFSSL_APACHE_MYNEWT) && !defined(WOLFSSL_LWIP)
|
|
770
|
+
WOLFSSL_LOCAL int Mynewt_Receive(WOLFSSL *ssl, char *buf, int sz, void *ctx);
|
|
771
|
+
WOLFSSL_LOCAL int Mynewt_Send(WOLFSSL* ssl, char *buf, int sz, void *ctx);
|
|
772
|
+
WOLFSSL_API void wolfSSL_SetIO_Mynewt(WOLFSSL* ssl, struct mn_socket* mnSocket,
|
|
773
|
+
struct mn_sockaddr_in* mnSockAddrIn);
|
|
774
|
+
#endif /* defined(WOLFSSL_APACHE_MYNEWT) && !defined(WOLFSSL_LWIP) */
|
|
775
|
+
|
|
776
|
+
#ifdef WOLFSSL_UIP
|
|
777
|
+
|
|
778
|
+
struct uip_wolfssl_ctx {
|
|
779
|
+
union socket_connector {
|
|
780
|
+
struct tcp_socket tcp;
|
|
781
|
+
struct udp_socket udp;
|
|
782
|
+
} conn;
|
|
783
|
+
WOLFSSL_CTX *ctx;
|
|
784
|
+
WOLFSSL *ssl;
|
|
785
|
+
byte *input_databuf;
|
|
786
|
+
byte *output_databuf;
|
|
787
|
+
byte *ssl_rx_databuf;
|
|
788
|
+
int ssl_rb_len;
|
|
789
|
+
int ssl_rb_off;
|
|
790
|
+
struct process *process;
|
|
791
|
+
tcp_socket_data_callback_t input_callback;
|
|
792
|
+
tcp_socket_event_callback_t event_callback;
|
|
793
|
+
int closing;
|
|
794
|
+
uip_ipaddr_t peer_addr;
|
|
795
|
+
word16 peer_port;
|
|
796
|
+
};
|
|
797
|
+
|
|
798
|
+
typedef struct uip_wolfssl_ctx uip_wolfssl_ctx;
|
|
799
|
+
|
|
800
|
+
WOLFSSL_LOCAL int uIPSend(WOLFSSL* ssl, char* buf, int sz, void* ctx);
|
|
801
|
+
WOLFSSL_LOCAL int uIPReceive(WOLFSSL* ssl, char* buf, int sz,
|
|
802
|
+
void* ctx);
|
|
803
|
+
WOLFSSL_LOCAL int uIPReceiveFrom(WOLFSSL* ssl, char* buf, int sz,
|
|
804
|
+
void* ctx);
|
|
805
|
+
WOLFSSL_LOCAL int uIPSendTo(WOLFSSL* ssl, char* buf, int sz, void* ctx);
|
|
806
|
+
|
|
807
|
+
#endif
|
|
808
|
+
|
|
809
|
+
#ifdef WOLFSSL_GNRC
|
|
810
|
+
#include <sock_types.h>
|
|
811
|
+
#include <net/gnrc.h>
|
|
812
|
+
#include <net/af.h>
|
|
813
|
+
#include <net/sock.h>
|
|
814
|
+
#include <net/gnrc/tcp.h>
|
|
815
|
+
#include <net/gnrc/udp.h>
|
|
816
|
+
|
|
817
|
+
struct gnrc_wolfssl_ctx {
|
|
818
|
+
union socket_connector {
|
|
819
|
+
#ifdef MODULE_SOCK_TCP
|
|
820
|
+
sock_tcp_t tcp;
|
|
821
|
+
#endif
|
|
822
|
+
sock_udp_t udp;
|
|
823
|
+
} conn;
|
|
824
|
+
WOLFSSL_CTX *ctx;
|
|
825
|
+
WOLFSSL *ssl;
|
|
826
|
+
|
|
827
|
+
int closing;
|
|
828
|
+
struct _sock_tl_ep peer_addr;
|
|
829
|
+
};
|
|
830
|
+
|
|
831
|
+
typedef struct gnrc_wolfssl_ctx sock_tls_t;
|
|
832
|
+
|
|
833
|
+
WOLFSSL_LOCAL int GNRC_ReceiveFrom(WOLFSSL* ssl, char* buf, int sz,
|
|
834
|
+
void* ctx);
|
|
835
|
+
WOLFSSL_LOCAL int GNRC_SendTo(WOLFSSL* ssl, char* buf, int sz, void* ctx);
|
|
836
|
+
|
|
837
|
+
#endif
|
|
838
|
+
|
|
839
|
+
#ifdef WOLFSSL_LWIP_NATIVE
|
|
840
|
+
#include "lwip/tcp.h"
|
|
841
|
+
#include "lwip/sockets.h"
|
|
842
|
+
|
|
843
|
+
typedef struct WOLFSSL_LWIP_NATIVE_STATE {
|
|
844
|
+
struct tcp_pcb * pcb;
|
|
845
|
+
tcp_recv_fn recv_fn;
|
|
846
|
+
tcp_sent_fn sent_fn;
|
|
847
|
+
int pulled;
|
|
848
|
+
struct pbuf *pbuf;
|
|
849
|
+
int wait;
|
|
850
|
+
void * arg; /* arg for application */
|
|
851
|
+
int idle_count;
|
|
852
|
+
} WOLFSSL_LWIP_NATIVE_STATE;
|
|
853
|
+
|
|
854
|
+
WOLFSSL_LOCAL int LwIPNativeSend(WOLFSSL* ssl, char* buf, int sz, void* ctx);
|
|
855
|
+
WOLFSSL_LOCAL int LwIPNativeReceive(WOLFSSL* ssl, char* buf, int sz,
|
|
856
|
+
void* ctx);
|
|
857
|
+
WOLFSSL_API int wolfSSL_SetIO_LwIP(WOLFSSL* ssl, void *pcb,
|
|
858
|
+
tcp_recv_fn recv, tcp_sent_fn sent, void *arg);
|
|
859
|
+
#endif
|
|
860
|
+
#ifdef WOLFSSL_ISOTP
|
|
861
|
+
#define ISOTP_DEFAULT_TIMEOUT 100
|
|
862
|
+
#define ISOTP_DEFAULT_WAIT_COUNT 3
|
|
863
|
+
#define ISOTP_FIRST_FRAME_DATA_SIZE 6
|
|
864
|
+
#define ISOTP_SINGLE_FRAME_DATA_SIZE 7
|
|
865
|
+
#define ISOTP_MAX_CONSECUTIVE_FRAME_DATA_SIZE 7
|
|
866
|
+
#define ISOTP_MAX_MS_FRAME_DELAY 0x7f
|
|
867
|
+
#define ISOTP_CAN_BUS_PAYLOAD_SIZE 8
|
|
868
|
+
#define ISOTP_MAX_DATA_SIZE 4095
|
|
869
|
+
/* Packets will never be larger than the ISO-TP max data size */
|
|
870
|
+
#define ISOTP_DEFAULT_BUFFER_SIZE ISOTP_MAX_DATA_SIZE
|
|
871
|
+
#define ISOTP_FLOW_CONTROL_PACKET_SIZE 3
|
|
872
|
+
#define ISOTP_FLOW_CONTROL_FRAMES 0 /* infinite */
|
|
873
|
+
#define ISOTP_MAX_SEQUENCE_COUNTER 15
|
|
874
|
+
|
|
875
|
+
enum isotp_frame_type {
|
|
876
|
+
ISOTP_FRAME_TYPE_SINGLE = 0,
|
|
877
|
+
ISOTP_FRAME_TYPE_FIRST = 1,
|
|
878
|
+
ISOTP_FRAME_TYPE_CONSECUTIVE = 2,
|
|
879
|
+
ISOTP_FRAME_TYPE_CONTROL = 3
|
|
880
|
+
};
|
|
881
|
+
|
|
882
|
+
enum isotp_flow_control {
|
|
883
|
+
ISOTP_FLOW_CONTROL_CTS = 0,
|
|
884
|
+
ISOTP_FLOW_CONTROL_WAIT = 1,
|
|
885
|
+
ISOTP_FLOW_CONTROL_ABORT = 2
|
|
886
|
+
};
|
|
887
|
+
|
|
888
|
+
enum isotp_connection_state {
|
|
889
|
+
ISOTP_CONN_STATE_IDLE,
|
|
890
|
+
ISOTP_CONN_STATE_SENDING,
|
|
891
|
+
ISOTP_CONN_STATE_RECEIVING
|
|
892
|
+
};
|
|
893
|
+
|
|
894
|
+
typedef struct isotp_can_data {
|
|
895
|
+
byte data[ISOTP_CAN_BUS_PAYLOAD_SIZE];
|
|
896
|
+
byte length;
|
|
897
|
+
} isotp_can_data;
|
|
898
|
+
|
|
899
|
+
/* User supplied functions for sending/receiving CAN bus messages of up to
|
|
900
|
+
* 8 bytes, as well as a function to add an artificial delay when a
|
|
901
|
+
* receiver requests one. */
|
|
902
|
+
typedef int (*can_recv_fn)(struct isotp_can_data *data, void *arg,
|
|
903
|
+
int timeout);
|
|
904
|
+
typedef int (*can_send_fn)(struct isotp_can_data *data, void *arg);
|
|
905
|
+
typedef void (*can_delay_fn)(int microseconds);
|
|
906
|
+
|
|
907
|
+
typedef struct isotp_wolfssl_ctx {
|
|
908
|
+
struct isotp_can_data frame;
|
|
909
|
+
char *buf_ptr;
|
|
910
|
+
char *receive_buffer;
|
|
911
|
+
char *receive_buffer_ptr;
|
|
912
|
+
can_recv_fn recv_fn;
|
|
913
|
+
can_send_fn send_fn;
|
|
914
|
+
can_delay_fn delay_fn;
|
|
915
|
+
void *arg;
|
|
916
|
+
int receive_buffer_len;
|
|
917
|
+
int receive_buffer_size;
|
|
918
|
+
enum isotp_connection_state state;
|
|
919
|
+
word16 buf_length;
|
|
920
|
+
byte sequence;
|
|
921
|
+
byte flow_packets;
|
|
922
|
+
byte flow_counter;
|
|
923
|
+
byte frame_delay;
|
|
924
|
+
byte wait_counter;
|
|
925
|
+
byte receive_delay;
|
|
926
|
+
} isotp_wolfssl_ctx;
|
|
927
|
+
|
|
928
|
+
WOLFSSL_LOCAL int ISOTP_Receive(WOLFSSL* ssl, char* buf, int sz, void* ctx);
|
|
929
|
+
WOLFSSL_LOCAL int ISOTP_Send(WOLFSSL* ssl, char* buf, int sz, void* ctx);
|
|
930
|
+
WOLFSSL_API int wolfSSL_SetIO_ISOTP(WOLFSSL *ssl, isotp_wolfssl_ctx *ctx,
|
|
931
|
+
can_recv_fn recv_fn, can_send_fn send_fn, can_delay_fn delay_fn,
|
|
932
|
+
word32 receive_delay, char *receive_buffer,
|
|
933
|
+
int receive_buffer_size, void *arg);
|
|
934
|
+
|
|
935
|
+
#endif
|
|
936
|
+
#ifdef WOLFSSL_DTLS
|
|
937
|
+
typedef int (*CallbackGenCookie)(WOLFSSL* ssl, unsigned char* buf, int sz,
|
|
938
|
+
void* ctx);
|
|
939
|
+
WOLFSSL_API void wolfSSL_CTX_SetGenCookie(WOLFSSL_CTX* ctx,
|
|
940
|
+
CallbackGenCookie cb);
|
|
941
|
+
WOLFSSL_API void wolfSSL_SetCookieCtx(WOLFSSL* ssl, void *ctx);
|
|
942
|
+
WOLFSSL_API void* wolfSSL_GetCookieCtx(WOLFSSL* ssl);
|
|
943
|
+
|
|
944
|
+
#endif
|
|
945
|
+
#ifdef WOLFSSL_SESSION_EXPORT
|
|
946
|
+
typedef int (*CallbackGetPeer)(WOLFSSL* ssl, char* ip, int* ipSz,
|
|
947
|
+
unsigned short* port, int* fam);
|
|
948
|
+
typedef int (*CallbackSetPeer)(WOLFSSL* ssl, char* ip, int ipSz,
|
|
949
|
+
unsigned short port, int fam);
|
|
950
|
+
|
|
951
|
+
WOLFSSL_API void wolfSSL_CTX_SetIOGetPeer(WOLFSSL_CTX*, CallbackGetPeer);
|
|
952
|
+
WOLFSSL_API void wolfSSL_CTX_SetIOSetPeer(WOLFSSL_CTX*, CallbackSetPeer);
|
|
953
|
+
WOLFSSL_API int EmbedGetPeer(WOLFSSL* ssl, char* ip, int* ipSz,
|
|
954
|
+
unsigned short* port, int* fam);
|
|
955
|
+
WOLFSSL_API int EmbedSetPeer(WOLFSSL* ssl, char* ip, int ipSz,
|
|
956
|
+
unsigned short port, int fam);
|
|
957
|
+
#endif /* WOLFSSL_SESSION_EXPORT */
|
|
958
|
+
|
|
959
|
+
|
|
960
|
+
|
|
961
|
+
#ifndef XINET_NTOP
|
|
962
|
+
#if defined(__WATCOMC__)
|
|
963
|
+
#if (defined(__OS2__) || defined(__NT__)) && \
|
|
964
|
+
(NTDDI_VERSION >= NTDDI_VISTA)
|
|
965
|
+
#define XINET_NTOP(a,b,c,d) inet_ntop((a),(b),(c),(d))
|
|
966
|
+
#else
|
|
967
|
+
#define XINET_NTOP(a,b,c,d) \
|
|
968
|
+
strncpy((c),inet_ntoa(*(unsigned *)(b)),(d))
|
|
969
|
+
#endif
|
|
970
|
+
#elif defined(USE_WINDOWS_API) /* Windows-friendly definition */
|
|
971
|
+
#define XINET_NTOP(a,b,c,d) InetNtop((a),(b),(c),(d))
|
|
972
|
+
#else
|
|
973
|
+
#define XINET_NTOP(a,b,c,d) inet_ntop((a),(b),(c),(d))
|
|
974
|
+
#endif
|
|
975
|
+
#endif
|
|
976
|
+
#ifndef XINET_PTON
|
|
977
|
+
#if defined(__WATCOMC__)
|
|
978
|
+
#if (defined(__OS2__) || defined(__NT__)) && \
|
|
979
|
+
(NTDDI_VERSION >= NTDDI_VISTA)
|
|
980
|
+
#define XINET_PTON(a,b,c) inet_pton((a),(b),(c))
|
|
981
|
+
#else
|
|
982
|
+
#define XINET_PTON(a,b,c) *(unsigned *)(c) = inet_addr((b))
|
|
983
|
+
#endif
|
|
984
|
+
#elif defined(USE_WINDOWS_API) /* Windows-friendly definition */
|
|
985
|
+
#if defined(__MINGW64__) && !defined(UNICODE)
|
|
986
|
+
#define XINET_PTON(a,b,c) InetPton((a),(b),(c))
|
|
987
|
+
#else
|
|
988
|
+
#define XINET_PTON(a,b,c) InetPton((a),(PCWSTR)(b),(c))
|
|
989
|
+
#endif
|
|
990
|
+
#else
|
|
991
|
+
#define XINET_PTON(a,b,c) inet_pton((a),(b),(c))
|
|
992
|
+
#endif
|
|
993
|
+
#endif
|
|
994
|
+
|
|
995
|
+
#ifndef XHTONS
|
|
996
|
+
#if !defined(WOLFSSL_NO_SOCK) && (defined(USE_WOLFSSL_IO) || defined(HAVE_HTTP_CLIENT))
|
|
997
|
+
#define XHTONS(a) htons((a))
|
|
998
|
+
#else
|
|
999
|
+
/* we don't have sockets, so define our own htons and ntohs */
|
|
1000
|
+
#ifdef BIG_ENDIAN_ORDER
|
|
1001
|
+
#define XHTONS(a) (a)
|
|
1002
|
+
#else
|
|
1003
|
+
#define XHTONS(a) ((((a) >> 8) & 0xff) | (((a) & 0xff) << 8))
|
|
1004
|
+
#endif
|
|
1005
|
+
#endif
|
|
1006
|
+
#endif
|
|
1007
|
+
#ifndef XNTOHS
|
|
1008
|
+
#if !defined(WOLFSSL_NO_SOCK) && (defined(USE_WOLFSSL_IO) || defined(HAVE_HTTP_CLIENT))
|
|
1009
|
+
#define XNTOHS(a) ntohs((a))
|
|
1010
|
+
#else
|
|
1011
|
+
/* we don't have sockets, so define our own htons and ntohs */
|
|
1012
|
+
#ifdef BIG_ENDIAN_ORDER
|
|
1013
|
+
#define XNTOHS(a) (a)
|
|
1014
|
+
#else
|
|
1015
|
+
#define XNTOHS(a) ((((a) >> 8) & 0xff) | (((a) & 0xff) << 8))
|
|
1016
|
+
#endif
|
|
1017
|
+
#endif
|
|
1018
|
+
#endif
|
|
1019
|
+
|
|
1020
|
+
#ifndef WOLFSSL_IP4
|
|
1021
|
+
#define WOLFSSL_IP4 AF_INET
|
|
1022
|
+
#endif
|
|
1023
|
+
#ifndef WOLFSSL_IP6
|
|
1024
|
+
#define WOLFSSL_IP6 AF_INET6
|
|
1025
|
+
#endif
|
|
1026
|
+
|
|
1027
|
+
#ifndef WOLFSSL_SOCKADDR_IN6
|
|
1028
|
+
#define WOLFSSL_SOCKADDR_IN6 struct sockaddr_in6
|
|
1029
|
+
#endif
|
|
1030
|
+
|
|
1031
|
+
#ifdef __cplusplus
|
|
1032
|
+
} /* extern "C" */
|
|
1033
|
+
#endif
|
|
1034
|
+
|
|
1035
|
+
#endif /* WOLFSSL_IO_H */
|