async_mqtt 5.0.0
Loading...
Searching...
No Matches
tls.hpp
1// Copyright Takatoshi Kondo 2023
2//
3// Distributed under the Boost Software License, Version 1.0.
4// (See accompanying file LICENSE_1_0.txt or copy at
5// http://www.boost.org/LICENSE_1_0.txt)
6
7#if !defined(ASYNC_MQTT_TLS_HPP)
8#define ASYNC_MQTT_TLS_HPP
9
10#if defined(ASYNC_MQTT_USE_TLS)
11
12#if !defined(ASYNC_MQTT_TLS_INCLUDE)
13#define ASYNC_MQTT_TLS_INCLUDE <boost/asio/ssl.hpp>
14#endif // !defined(ASYNC_MQTT_TLS_INCLUDE)
15
16#include ASYNC_MQTT_TLS_INCLUDE
17
18#if !defined(ASYNC_MQTT_TLS_NS)
19#define ASYNC_MQTT_TLS_NS boost::asio::ssl
20#endif // !defined(ASYNC_MQTT_TLS_NS)
21
22namespace async_mqtt {
23namespace tls = ASYNC_MQTT_TLS_NS;
24} // namespace async_mqtt
25
26
27#if defined(ASYNC_MQTT_USE_WS)
28
29#if !defined(ASYNC_MQTT_TLS_WS_INCLUDE)
30#define ASYNC_MQTT_TLS_WS_INCLUDE <boost/beast/websocket/ssl.hpp>
31#endif // !defined(ASYNC_MQTT_TLS_WS_INCLUDE)
32
33#include ASYNC_MQTT_TLS_WS_INCLUDE
34
35#endif // defined(ASYNC_MQTT_USE_WS)
36
37#endif // defined(ASYNC_MQTT_USE_TLS)
38
39
40#endif // ASYNC_MQTT_TLS_HPP