unix_ssl.hpp 747 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // Copyright (c) 2019-2023 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 BHO_MYSQL_UNIX_SSL_HPP
  8. #define BHO_MYSQL_UNIX_SSL_HPP
  9. #include <asio2/bho/mysql/connection.hpp>
  10. #include <asio/local/stream_protocol.hpp>
  11. #include <asio/ssl/stream.hpp>
  12. namespace bho {
  13. namespace mysql {
  14. #if defined(BHO_ASIO_HAS_LOCAL_SOCKETS) || defined(BHO_MYSQL_DOXYGEN)
  15. /// A connection to MySQL over a UNIX domain socket over TLS.
  16. using unix_ssl_connection = connection<asio::ssl::stream<asio::local::stream_protocol::socket>>;
  17. #endif
  18. } // namespace mysql
  19. } // namespace bho
  20. #endif