Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/asio/ssl/context_base.hpp @ 101:c530137014c0
Update Boost headers (1.58.0)
author | Chris Cannam |
---|---|
date | Mon, 07 Sep 2015 11:12:49 +0100 |
parents | 2665513ce2d3 |
children |
comparison
equal
deleted
inserted
replaced
100:793467b5e61c | 101:c530137014c0 |
---|---|
1 // | 1 // |
2 // ssl/context_base.hpp | 2 // ssl/context_base.hpp |
3 // ~~~~~~~~~~~~~~~~~~~~ | 3 // ~~~~~~~~~~~~~~~~~~~~ |
4 // | 4 // |
5 // Copyright (c) 2003-2013 Christopher M. Kohlhoff (chris at kohlhoff dot com) | 5 // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) |
6 // | 6 // |
7 // Distributed under the Boost Software License, Version 1.0. (See accompanying | 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) | 8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
9 // | 9 // |
10 | 10 |
104 static const long no_sslv3 = implementation_defined; | 104 static const long no_sslv3 = implementation_defined; |
105 | 105 |
106 /// Disable TLS v1. | 106 /// Disable TLS v1. |
107 static const long no_tlsv1 = implementation_defined; | 107 static const long no_tlsv1 = implementation_defined; |
108 | 108 |
109 /// Disable TLS v1.1. | |
110 static const long no_tlsv1_1 = implementation_defined; | |
111 | |
112 /// Disable TLS v1.2. | |
113 static const long no_tlsv1_2 = implementation_defined; | |
114 | |
109 /// Disable compression. Compression is disabled by default. | 115 /// Disable compression. Compression is disabled by default. |
110 static const long no_compression = implementation_defined; | 116 static const long no_compression = implementation_defined; |
111 #else | 117 #else |
112 BOOST_ASIO_STATIC_CONSTANT(long, default_workarounds = SSL_OP_ALL); | 118 BOOST_ASIO_STATIC_CONSTANT(long, default_workarounds = SSL_OP_ALL); |
113 BOOST_ASIO_STATIC_CONSTANT(long, single_dh_use = SSL_OP_SINGLE_DH_USE); | 119 BOOST_ASIO_STATIC_CONSTANT(long, single_dh_use = SSL_OP_SINGLE_DH_USE); |
114 BOOST_ASIO_STATIC_CONSTANT(long, no_sslv2 = SSL_OP_NO_SSLv2); | 120 BOOST_ASIO_STATIC_CONSTANT(long, no_sslv2 = SSL_OP_NO_SSLv2); |
115 BOOST_ASIO_STATIC_CONSTANT(long, no_sslv3 = SSL_OP_NO_SSLv3); | 121 BOOST_ASIO_STATIC_CONSTANT(long, no_sslv3 = SSL_OP_NO_SSLv3); |
116 BOOST_ASIO_STATIC_CONSTANT(long, no_tlsv1 = SSL_OP_NO_TLSv1); | 122 BOOST_ASIO_STATIC_CONSTANT(long, no_tlsv1 = SSL_OP_NO_TLSv1); |
123 # if defined(SSL_OP_NO_TLSv1_1) | |
124 BOOST_ASIO_STATIC_CONSTANT(long, no_tlsv1_1 = SSL_OP_NO_TLSv1_1); | |
125 # else // defined(SSL_OP_NO_TLSv1_1) | |
126 BOOST_ASIO_STATIC_CONSTANT(long, no_tlsv1_1 = 0x10000000L); | |
127 # endif // defined(SSL_OP_NO_TLSv1_1) | |
128 # if defined(SSL_OP_NO_TLSv1_2) | |
129 BOOST_ASIO_STATIC_CONSTANT(long, no_tlsv1_2 = SSL_OP_NO_TLSv1_2); | |
130 # else // defined(SSL_OP_NO_TLSv1_2) | |
131 BOOST_ASIO_STATIC_CONSTANT(long, no_tlsv1_2 = 0x08000000L); | |
132 # endif // defined(SSL_OP_NO_TLSv1_2) | |
117 # if defined(SSL_OP_NO_COMPRESSION) | 133 # if defined(SSL_OP_NO_COMPRESSION) |
118 BOOST_ASIO_STATIC_CONSTANT(long, no_compression = SSL_OP_NO_COMPRESSION); | 134 BOOST_ASIO_STATIC_CONSTANT(long, no_compression = SSL_OP_NO_COMPRESSION); |
119 # else // defined(SSL_OP_NO_COMPRESSION) | 135 # else // defined(SSL_OP_NO_COMPRESSION) |
120 BOOST_ASIO_STATIC_CONSTANT(long, no_compression = 0x20000L); | 136 BOOST_ASIO_STATIC_CONSTANT(long, no_compression = 0x20000L); |
121 # endif // defined(SSL_OP_NO_COMPRESSION) | 137 # endif // defined(SSL_OP_NO_COMPRESSION) |