2 // ssl/verify_context.hpp
3 // ~~~~~~~~~~~~~~~~~~~~~~
5 // Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff dot com)
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)
11 #ifndef BOOST_ASIO_SSL_VERIFY_CONTEXT_HPP
12 #define BOOST_ASIO_SSL_VERIFY_CONTEXT_HPP
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
18 #include <boost/asio/detail/config.hpp>
20 #include <boost/asio/detail/noncopyable.hpp>
21 #include <boost/asio/ssl/detail/openssl_types.hpp>
23 #include <boost/asio/detail/push_options.hpp>
29 /// A simple wrapper around the X509_STORE_CTX type, used during verification of
30 /// a peer certificate.
32 * @note The verify_context does not own the underlying X509_STORE_CTX object.
38 /// The native handle type of the verification context.
39 typedef X509_STORE_CTX* native_handle_type;
42 explicit verify_context(native_handle_type handle)
47 /// Get the underlying implementation in the native type.
49 * This function may be used to obtain the underlying implementation of the
50 * context. This is intended to allow access to context functionality that is
51 * not otherwise provided.
53 native_handle_type native_handle()
59 // The underlying native implementation.
60 native_handle_type handle_;
67 #include <boost/asio/detail/pop_options.hpp>
69 #endif // BOOST_ASIO_SSL_VERIFY_CONTEXT_HPP