Realistic 3D camera system
3D camera system components
verify_context.hpp
Go to the documentation of this file.
1 //
2 // ssl/verify_context.hpp
3 // ~~~~~~~~~~~~~~~~~~~~~~
4 //
5 // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
6 //
7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9 //
10 
11 #ifndef ASIO_SSL_VERIFY_CONTEXT_HPP
12 #define ASIO_SSL_VERIFY_CONTEXT_HPP
13 
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
15 # pragma once
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17 
18 #include "asio/detail/config.hpp"
19 
20 #if !defined(ASIO_ENABLE_OLD_SSL)
23 #endif // !defined(ASIO_ENABLE_OLD_SSL)
24 
26 
27 namespace asio {
28 namespace ssl {
29 
30 #if !defined(ASIO_ENABLE_OLD_SSL)
31 
34 
38  : private noncopyable
39 {
40 public:
42  typedef X509_STORE_CTX* native_handle_type;
43 
45  explicit verify_context(native_handle_type handle)
46  : handle_(handle)
47  {
48  }
49 
51 
56  native_handle_type native_handle()
57  {
58  return handle_;
59  }
60 
61 private:
62  // The underlying native implementation.
63  native_handle_type handle_;
64 };
65 
66 #endif // defined(ASIO_ENABLE_OLD_SSL)
67 
68 } // namespace ssl
69 } // namespace asio
70 
72 
73 #endif // ASIO_SSL_VERIFY_CONTEXT_HPP
native_handle_type native_handle()
Get the underlying implementation in the native type.
verify_context(native_handle_type handle)
Constructor.
X509_STORE_CTX * native_handle_type
The native handle type of the verification context.