context.hpp 955 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // context.hpp
  3. // ~~~~~~~~~~~
  4. //
  5. // Copyright (c) 2005 Voipster / Indrek dot Juhani at voipster dot com
  6. // Copyright (c) 2005-2008 Christopher M. Kohlhoff (chris at kohlhoff dot com)
  7. //
  8. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  9. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  10. //
  11. #ifndef BOOST_ASIO_SSL_CONTEXT_HPP
  12. #define BOOST_ASIO_SSL_CONTEXT_HPP
  13. #if defined(_MSC_VER) && (_MSC_VER >= 1200)
  14. # pragma once
  15. #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
  16. #include <boost/asio/detail/push_options.hpp>
  17. #include <boost/asio/ssl/basic_context.hpp>
  18. #include <boost/asio/ssl/context_service.hpp>
  19. namespace boost {
  20. namespace asio {
  21. namespace ssl {
  22. /// Typedef for the typical usage of context.
  23. typedef basic_context<context_service> context;
  24. } // namespace ssl
  25. } // namespace asio
  26. } // namespace boost
  27. #include <boost/asio/detail/pop_options.hpp>
  28. #endif // BOOST_ASIO_SSL_CONTEXT_HPP