tcp_ssl.hpp 866 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // Copyright (c) 2019-2025 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. /**
  15. * \brief (Legacy) A connection to MySQL over a TCP socket using TLS.
  16. *
  17. * \par Legacy
  18. * New code should use \ref any_connection instead of
  19. * \ref connection and its helper typedefs, as it's simpler to use
  20. * and provides the same level of performance.
  21. */
  22. using tcp_ssl_connection = connection<boost::asio::ssl::stream<boost::asio::ip::tcp::socket>>;
  23. } // namespace mysql
  24. } // namespace boost
  25. #endif