mqtt_cpp
tls.hpp
Go to the documentation of this file.
1 // Copyright Takatoshi Kondo 2020
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(MQTT_TLS_HPP)
8 #define MQTT_TLS_HPP
9 
10 #if defined(MQTT_USE_TLS)
11 
12 #if !defined(MQTT_TLS_INCLUDE)
13 #define MQTT_TLS_INCLUDE <boost/asio/ssl.hpp>
14 #endif // !defined(MQTT_TLS_INCLUDE)
15 
16 #include MQTT_TLS_INCLUDE
17 
18 #if !defined(MQTT_TLS_NS)
19 #define MQTT_TLS_NS boost::asio::ssl
20 #endif // !defined(MQTT_TLS_NS)
21 
22 #include <mqtt/namespace.hpp>
23 
24 namespace MQTT_NS {
25 namespace tls = MQTT_TLS_NS;
26 } // namespace MQTT_NS
27 
28 
29 #if defined(MQTT_USE_WS)
30 
31 #if !defined(MQTT_TLS_WS_INCLUDE)
32 #define MQTT_TLS_WS_INCLUDE <boost/beast/websocket/ssl.hpp>
33 #endif // !defined(MQTT_TLS_WS_INCLUDE)
34 
35 #include MQTT_TLS_WS_INCLUDE
36 
37 #endif // defined(MQTT_USE_WS)
38 
39 #endif // defined(MQTT_USE_TLS)
40 
41 
42 #endif // MQTT_TLS_HPP
Definition: any.hpp:27