annotate DEPENDENCIES/generic/include/boost/asio/ssl/verify_mode.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents c530137014c0
children
rev   line source
Chris@16 1 //
Chris@16 2 // ssl/verify_mode.hpp
Chris@16 3 // ~~~~~~~~~~~~~~~~~~~
Chris@16 4 //
Chris@101 5 // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
Chris@16 6 //
Chris@16 7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
Chris@16 8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 9 //
Chris@16 10
Chris@16 11 #ifndef BOOST_ASIO_SSL_VERIFY_MODE_HPP
Chris@16 12 #define BOOST_ASIO_SSL_VERIFY_MODE_HPP
Chris@16 13
Chris@16 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
Chris@16 15 # pragma once
Chris@16 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
Chris@16 17
Chris@16 18 #include <boost/asio/detail/config.hpp>
Chris@16 19 #include <boost/asio/ssl/detail/openssl_types.hpp>
Chris@16 20
Chris@16 21 #include <boost/asio/detail/push_options.hpp>
Chris@16 22
Chris@16 23 namespace boost {
Chris@16 24 namespace asio {
Chris@16 25 namespace ssl {
Chris@16 26
Chris@16 27 /// Bitmask type for peer verification.
Chris@16 28 /**
Chris@16 29 * Possible values are:
Chris@16 30 *
Chris@16 31 * @li @ref verify_none
Chris@16 32 * @li @ref verify_peer
Chris@16 33 * @li @ref verify_fail_if_no_peer_cert
Chris@16 34 * @li @ref verify_client_once
Chris@16 35 */
Chris@16 36 typedef int verify_mode;
Chris@16 37
Chris@16 38 #if defined(GENERATING_DOCUMENTATION)
Chris@16 39 /// No verification.
Chris@16 40 const int verify_none = implementation_defined;
Chris@16 41
Chris@16 42 /// Verify the peer.
Chris@16 43 const int verify_peer = implementation_defined;
Chris@16 44
Chris@16 45 /// Fail verification if the peer has no certificate. Ignored unless
Chris@16 46 /// @ref verify_peer is set.
Chris@16 47 const int verify_fail_if_no_peer_cert = implementation_defined;
Chris@16 48
Chris@16 49 /// Do not request client certificate on renegotiation. Ignored unless
Chris@16 50 /// @ref verify_peer is set.
Chris@16 51 const int verify_client_once = implementation_defined;
Chris@16 52 #else
Chris@16 53 const int verify_none = SSL_VERIFY_NONE;
Chris@16 54 const int verify_peer = SSL_VERIFY_PEER;
Chris@16 55 const int verify_fail_if_no_peer_cert = SSL_VERIFY_FAIL_IF_NO_PEER_CERT;
Chris@16 56 const int verify_client_once = SSL_VERIFY_CLIENT_ONCE;
Chris@16 57 #endif
Chris@16 58
Chris@16 59 } // namespace ssl
Chris@16 60 } // namespace asio
Chris@16 61 } // namespace boost
Chris@16 62
Chris@16 63 #include <boost/asio/detail/pop_options.hpp>
Chris@16 64
Chris@16 65 #endif // BOOST_ASIO_SSL_VERIFY_MODE_HPP