From 93dc1064a2897bfb1967767530102e50d57dc922 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Korina=20=C5=A0imi=C4=8Devi=C4=87?= Date: Tue, 28 Nov 2023 13:06:29 +0100 Subject: [PATCH] fix tls examples in docs Summary: related to T12804 Reviewers: iljazovic Reviewed By: iljazovic Subscribers: miljen Differential Revision: https://repo.mireo.local/D26736 --- example/network_connection.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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,