123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #ifndef BOOST_ASIO_SSL_VERIFY_CONTEXT_HPP
- #define BOOST_ASIO_SSL_VERIFY_CONTEXT_HPP
- #if defined(_MSC_VER) && (_MSC_VER >= 1200)
- # pragma once
- #endif
- #include <boost/asio/detail/config.hpp>
- #include <boost/asio/detail/noncopyable.hpp>
- #include <boost/asio/ssl/detail/openssl_types.hpp>
- #include <boost/asio/detail/push_options.hpp>
- namespace boost {
- namespace asio {
- namespace ssl {
- class verify_context
- : private noncopyable
- {
- public:
-
- typedef X509_STORE_CTX* native_handle_type;
-
- explicit verify_context(native_handle_type handle)
- : handle_(handle)
- {
- }
-
-
- native_handle_type native_handle()
- {
- return handle_;
- }
- private:
-
- native_handle_type handle_;
- };
- }
- }
- }
- #include <boost/asio/detail/pop_options.hpp>
- #endif
|