Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:29:02

0001 //
0002 // ssl/verify_mode.hpp
0003 // ~~~~~~~~~~~~~~~~~~~
0004 //
0005 // Copyright (c) 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com)
0006 //
0007 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0008 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0009 //
0010 
0011 #ifndef BOOST_ASIO_SSL_VERIFY_MODE_HPP
0012 #define BOOST_ASIO_SSL_VERIFY_MODE_HPP
0013 
0014 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
0015 # pragma once
0016 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
0017 
0018 #include <boost/asio/detail/config.hpp>
0019 #include <boost/asio/ssl/detail/openssl_types.hpp>
0020 
0021 #include <boost/asio/detail/push_options.hpp>
0022 
0023 namespace boost {
0024 namespace asio {
0025 namespace ssl {
0026 
0027 /// Bitmask type for peer verification.
0028 /**
0029  * Possible values are:
0030  *
0031  * @li @ref verify_none
0032  * @li @ref verify_peer
0033  * @li @ref verify_fail_if_no_peer_cert
0034  * @li @ref verify_client_once
0035  */
0036 typedef int verify_mode;
0037 
0038 #if defined(GENERATING_DOCUMENTATION)
0039 /// No verification.
0040 const int verify_none = implementation_defined;
0041 
0042 /// Verify the peer.
0043 const int verify_peer = implementation_defined;
0044 
0045 /// Fail verification if the peer has no certificate. Ignored unless
0046 /// @ref verify_peer is set.
0047 const int verify_fail_if_no_peer_cert = implementation_defined;
0048 
0049 /// Do not request client certificate on renegotiation. Ignored unless
0050 /// @ref verify_peer is set.
0051 const int verify_client_once = implementation_defined;
0052 #else
0053 const int verify_none = SSL_VERIFY_NONE;
0054 const int verify_peer = SSL_VERIFY_PEER;
0055 const int verify_fail_if_no_peer_cert = SSL_VERIFY_FAIL_IF_NO_PEER_CERT;
0056 const int verify_client_once = SSL_VERIFY_CLIENT_ONCE;
0057 #endif
0058 
0059 } // namespace ssl
0060 } // namespace asio
0061 } // namespace boost
0062 
0063 #include <boost/asio/detail/pop_options.hpp>
0064 
0065 #endif // BOOST_ASIO_SSL_VERIFY_MODE_HPP