diff --git a/example/network_connection.cpp b/example/network_connection.cpp index 09928d4..6a930cc 100644 --- a/example/network_connection.cpp +++ b/example/network_connection.cpp @@ -30,6 +30,12 @@ void tcp_setup() { // External customization point. namespace async_mqtt5 { +template +struct tls_handshake_type> { + static constexpr auto client = asio::ssl::stream_base::client; + static constexpr auto server = asio::ssl::stream_base::server; +}; + // This client uses this funcction to indicate which hostname it is // attempting to connect to at the start of the handshaking process. template @@ -132,6 +138,12 @@ void async_teardown( namespace async_mqtt5 { +template +struct tls_handshake_type> { + static constexpr auto client = asio::ssl::stream_base::client; + static constexpr auto server = asio::ssl::stream_base::server; +}; + template void assign_tls_sni( const authority_path& ap,