unix_ssl.hpp 930 B

1234567891011121314151617181920212223242526272829303132333435
  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_UNIX_SSL_HPP
  8. #define BOOST_MYSQL_UNIX_SSL_HPP
  9. #include <boost/mysql/connection.hpp>
  10. #include <boost/asio/local/stream_protocol.hpp>
  11. #include <boost/asio/ssl/stream.hpp>
  12. namespace boost {
  13. namespace mysql {
  14. #if defined(BOOST_ASIO_HAS_LOCAL_SOCKETS) || defined(BOOST_MYSQL_DOXYGEN)
  15. /**
  16. * \brief (Legacy) A connection to MySQL over a UNIX domain socket over TLS.
  17. *
  18. * \par Legacy
  19. * New code should not use this class. When using UNIX sockets, we recommend
  20. * using plaintext connections.
  21. */
  22. using unix_ssl_connection = connection<boost::asio::ssl::stream<boost::asio::local::stream_protocol::socket>>;
  23. #endif
  24. } // namespace mysql
  25. } // namespace boost
  26. #endif