tcp_ssl.hpp 657 B

12345678910111213141516171819202122232425
  1. //
  2. // Copyright (c) 2019-2024 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
  3. //
  4. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. //
  7. #ifndef BOOST_MYSQL_TCP_SSL_HPP
  8. #define BOOST_MYSQL_TCP_SSL_HPP
  9. #include <boost/mysql/connection.hpp>
  10. #include <boost/asio/ip/tcp.hpp>
  11. #include <boost/asio/ssl/stream.hpp>
  12. namespace boost {
  13. namespace mysql {
  14. /// A connection to MySQL over a TCP socket using TLS.
  15. using tcp_ssl_connection = connection<boost::asio::ssl::stream<boost::asio::ip::tcp::socket>>;
  16. } // namespace mysql
  17. } // namespace boost
  18. #endif