Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/asio/ssl/error.hpp @ 16:2665513ce2d3
Add boost headers
author | Chris Cannam |
---|---|
date | Tue, 05 Aug 2014 11:11:38 +0100 |
parents | |
children | c530137014c0 |
comparison
equal
deleted
inserted
replaced
15:663ca0da4350 | 16:2665513ce2d3 |
---|---|
1 // | |
2 // ssl/error.hpp | |
3 // ~~~~~~~~~~~~~ | |
4 // | |
5 // Copyright (c) 2003-2013 Christopher M. Kohlhoff (chris at kohlhoff dot com) | |
6 // | |
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) | |
9 // | |
10 | |
11 #ifndef BOOST_ASIO_SSL_ERROR_HPP | |
12 #define BOOST_ASIO_SSL_ERROR_HPP | |
13 | |
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200) | |
15 # pragma once | |
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) | |
17 | |
18 #include <boost/asio/detail/config.hpp> | |
19 #include <boost/system/error_code.hpp> | |
20 | |
21 #include <boost/asio/detail/push_options.hpp> | |
22 | |
23 namespace boost { | |
24 namespace asio { | |
25 namespace error { | |
26 | |
27 enum ssl_errors | |
28 { | |
29 }; | |
30 | |
31 extern BOOST_ASIO_DECL | |
32 const boost::system::error_category& get_ssl_category(); | |
33 | |
34 static const boost::system::error_category& ssl_category | |
35 = boost::asio::error::get_ssl_category(); | |
36 | |
37 } // namespace error | |
38 } // namespace asio | |
39 } // namespace boost | |
40 | |
41 namespace boost { | |
42 namespace system { | |
43 | |
44 template<> struct is_error_code_enum<boost::asio::error::ssl_errors> | |
45 { | |
46 static const bool value = true; | |
47 }; | |
48 | |
49 } // namespace system | |
50 } // namespace boost | |
51 | |
52 namespace boost { | |
53 namespace asio { | |
54 namespace error { | |
55 | |
56 inline boost::system::error_code make_error_code(ssl_errors e) | |
57 { | |
58 return boost::system::error_code( | |
59 static_cast<int>(e), get_ssl_category()); | |
60 } | |
61 | |
62 } // namespace error | |
63 } // namespace asio | |
64 } // namespace boost | |
65 | |
66 #include <boost/asio/detail/pop_options.hpp> | |
67 | |
68 #if defined(BOOST_ASIO_HEADER_ONLY) | |
69 # include <boost/asio/ssl/impl/error.ipp> | |
70 #endif // defined(BOOST_ASIO_HEADER_ONLY) | |
71 | |
72 #endif // BOOST_ASIO_SSL_ERROR_HPP |