mirror of
https://github.com/boostorg/mqtt5.git
synced 2025-08-03 22:44:44 +02:00
fix tls examples in docs
Summary: related to T12804 Reviewers: iljazovic Reviewed By: iljazovic Subscribers: miljen Differential Revision: https://repo.mireo.local/D26736
This commit is contained in:
@@ -30,6 +30,12 @@ void tcp_setup() {
|
||||
// External customization point.
|
||||
namespace async_mqtt5 {
|
||||
|
||||
template <typename StreamBase>
|
||||
struct tls_handshake_type<asio::ssl::stream<StreamBase>> {
|
||||
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 <typename StreamBase>
|
||||
@@ -132,6 +138,12 @@ void async_teardown(
|
||||
|
||||
namespace async_mqtt5 {
|
||||
|
||||
template <typename StreamBase>
|
||||
struct tls_handshake_type<asio::ssl::stream<StreamBase>> {
|
||||
static constexpr auto client = asio::ssl::stream_base::client;
|
||||
static constexpr auto server = asio::ssl::stream_base::server;
|
||||
};
|
||||
|
||||
template <typename streambase>
|
||||
void assign_tls_sni(
|
||||
const authority_path& ap,
|
||||
|
Reference in New Issue
Block a user