Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/asio/ssl/error.hpp @ 125:34e428693f5d vext
Vext -> Repoint
author | Chris Cannam |
---|---|
date | Thu, 14 Jun 2018 11:15:39 +0100 |
parents | c530137014c0 |
children |
rev | line source |
---|---|
Chris@16 | 1 // |
Chris@16 | 2 // ssl/error.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_ERROR_HPP |
Chris@16 | 12 #define BOOST_ASIO_SSL_ERROR_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/system/error_code.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 error { |
Chris@16 | 26 |
Chris@16 | 27 enum ssl_errors |
Chris@16 | 28 { |
Chris@16 | 29 }; |
Chris@16 | 30 |
Chris@16 | 31 extern BOOST_ASIO_DECL |
Chris@16 | 32 const boost::system::error_category& get_ssl_category(); |
Chris@16 | 33 |
Chris@16 | 34 static const boost::system::error_category& ssl_category |
Chris@16 | 35 = boost::asio::error::get_ssl_category(); |
Chris@16 | 36 |
Chris@16 | 37 } // namespace error |
Chris@16 | 38 } // namespace asio |
Chris@16 | 39 } // namespace boost |
Chris@16 | 40 |
Chris@16 | 41 namespace boost { |
Chris@16 | 42 namespace system { |
Chris@16 | 43 |
Chris@16 | 44 template<> struct is_error_code_enum<boost::asio::error::ssl_errors> |
Chris@16 | 45 { |
Chris@16 | 46 static const bool value = true; |
Chris@16 | 47 }; |
Chris@16 | 48 |
Chris@16 | 49 } // namespace system |
Chris@16 | 50 } // namespace boost |
Chris@16 | 51 |
Chris@16 | 52 namespace boost { |
Chris@16 | 53 namespace asio { |
Chris@16 | 54 namespace error { |
Chris@16 | 55 |
Chris@16 | 56 inline boost::system::error_code make_error_code(ssl_errors e) |
Chris@16 | 57 { |
Chris@16 | 58 return boost::system::error_code( |
Chris@16 | 59 static_cast<int>(e), get_ssl_category()); |
Chris@16 | 60 } |
Chris@16 | 61 |
Chris@16 | 62 } // namespace error |
Chris@16 | 63 } // namespace asio |
Chris@16 | 64 } // namespace boost |
Chris@16 | 65 |
Chris@16 | 66 #include <boost/asio/detail/pop_options.hpp> |
Chris@16 | 67 |
Chris@16 | 68 #if defined(BOOST_ASIO_HEADER_ONLY) |
Chris@16 | 69 # include <boost/asio/ssl/impl/error.ipp> |
Chris@16 | 70 #endif // defined(BOOST_ASIO_HEADER_ONLY) |
Chris@16 | 71 |
Chris@16 | 72 #endif // BOOST_ASIO_SSL_ERROR_HPP |