context.hpp 874 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // context.hpp
  3. // ~~~~~~~~~~~
  4. //
  5. // Copyright (c) 2005 Voipster / Indrek dot Juhani at voipster dot com
  6. // Copyright (c) 2005-2010 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 ASIO_SSL_CONTEXT_HPP
  12. #define 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 "asio/detail/push_options.hpp"
  17. #include "asio/ssl/basic_context.hpp"
  18. #include "asio/ssl/context_service.hpp"
  19. namespace asio {
  20. namespace ssl {
  21. /// Typedef for the typical usage of context.
  22. typedef basic_context<context_service> context;
  23. } // namespace ssl
  24. } // namespace asio
  25. #include "asio/detail/pop_options.hpp"
  26. #endif // ASIO_SSL_CONTEXT_HPP