const void* io_transport_provider(const char* fqdn, int port) { const IO_INTERFACE_DESCRIPTION* io_interface_description; #ifdef _WIN32 TLSIO_CONFIG tls_io_config = { fqdn, port }; io_interface_description = tlsio_schannel_get_interface_description(); #else #ifdef MBED_BUILD_TIMESTAMP TLSIO_CONFIG tls_io_config = { fqdn, port }; io_interface_description = tlsio_wolfssl_get_interface_description(); #else TLSIO_CONFIG tls_io_config = { fqdn, port }; io_interface_description = tlsio_openssl_get_interface_description(); #endif #endif return (void*)xio_create(io_interface_description, &tls_io_config, NULL); }
const IO_INTERFACE_DESCRIPTION* platform_get_default_tlsio(void) { return tlsio_wolfssl_get_interface_description(); }