forked from boostorg/mqtt5
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.
|
// External customization point.
|
||||||
namespace async_mqtt5 {
|
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
|
// This client uses this funcction to indicate which hostname it is
|
||||||
// attempting to connect to at the start of the handshaking process.
|
// attempting to connect to at the start of the handshaking process.
|
||||||
template <typename StreamBase>
|
template <typename StreamBase>
|
||||||
@@ -132,6 +138,12 @@ void async_teardown(
|
|||||||
|
|
||||||
namespace async_mqtt5 {
|
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>
|
template <typename streambase>
|
||||||
void assign_tls_sni(
|
void assign_tls_sni(
|
||||||
const authority_path& ap,
|
const authority_path& ap,
|
||||||
|
Reference in New Issue
Block a user