Realistic 3D camera system
3D camera system components
context_base.hpp
Go to the documentation of this file.
1 //
2 // ssl/context_base.hpp
3 // ~~~~~~~~~~~~~~~~~~~~
4 //
5 // Copyright (c) 2003-2015 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 ASIO_SSL_CONTEXT_BASE_HPP
12 #define ASIO_SSL_CONTEXT_BASE_HPP
13 
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
15 # pragma once
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17 
18 #include "asio/detail/config.hpp"
20 
22 
23 namespace asio {
24 namespace ssl {
25 
29 {
30 public:
32  enum method
33  {
36 
39 
42 
45 
48 
51 
54 
57 
60 
63 
66 
69 
72 
75 
78 
81 
84 
87  };
88 
90  typedef long options;
91 
92 #if defined(GENERATING_DOCUMENTATION)
93  static const long default_workarounds = implementation_defined;
95 
97  static const long single_dh_use = implementation_defined;
98 
100  static const long no_sslv2 = implementation_defined;
101 
103  static const long no_sslv3 = implementation_defined;
104 
106  static const long no_tlsv1 = implementation_defined;
107 
109  static const long no_tlsv1_1 = implementation_defined;
110 
112  static const long no_tlsv1_2 = implementation_defined;
113 
115  static const long no_compression = implementation_defined;
116 #else
117  ASIO_STATIC_CONSTANT(long, default_workarounds = SSL_OP_ALL);
118  ASIO_STATIC_CONSTANT(long, single_dh_use = SSL_OP_SINGLE_DH_USE);
119  ASIO_STATIC_CONSTANT(long, no_sslv2 = SSL_OP_NO_SSLv2);
120  ASIO_STATIC_CONSTANT(long, no_sslv3 = SSL_OP_NO_SSLv3);
121  ASIO_STATIC_CONSTANT(long, no_tlsv1 = SSL_OP_NO_TLSv1);
122 # if defined(SSL_OP_NO_TLSv1_1)
123  ASIO_STATIC_CONSTANT(long, no_tlsv1_1 = SSL_OP_NO_TLSv1_1);
124 # else // defined(SSL_OP_NO_TLSv1_1)
125  ASIO_STATIC_CONSTANT(long, no_tlsv1_1 = 0x10000000L);
126 # endif // defined(SSL_OP_NO_TLSv1_1)
127 # if defined(SSL_OP_NO_TLSv1_2)
128  ASIO_STATIC_CONSTANT(long, no_tlsv1_2 = SSL_OP_NO_TLSv1_2);
129 # else // defined(SSL_OP_NO_TLSv1_2)
130  ASIO_STATIC_CONSTANT(long, no_tlsv1_2 = 0x08000000L);
131 # endif // defined(SSL_OP_NO_TLSv1_2)
132 # if defined(SSL_OP_NO_COMPRESSION)
133  ASIO_STATIC_CONSTANT(long, no_compression = SSL_OP_NO_COMPRESSION);
134 # else // defined(SSL_OP_NO_COMPRESSION)
135  ASIO_STATIC_CONSTANT(long, no_compression = 0x20000L);
136 # endif // defined(SSL_OP_NO_COMPRESSION)
137 #endif
138 
141  {
144 
147  };
148 
149 #if !defined(GENERATING_DOCUMENTATION)
150  // The following types and constants are preserved for backward compatibility.
151  // New programs should use the equivalents of the same names that are defined
152  // in the asio::ssl namespace.
153  typedef int verify_mode;
154  ASIO_STATIC_CONSTANT(int, verify_none = SSL_VERIFY_NONE);
155  ASIO_STATIC_CONSTANT(int, verify_peer = SSL_VERIFY_PEER);
157  verify_fail_if_no_peer_cert = SSL_VERIFY_FAIL_IF_NO_PEER_CERT);
158  ASIO_STATIC_CONSTANT(int, verify_client_once = SSL_VERIFY_CLIENT_ONCE);
159 #endif
160 
163  {
166 
169  };
170 
171 protected:
174  {
175  }
176 };
177 
178 } // namespace ssl
179 } // namespace asio
180 
182 
183 #endif // ASIO_SSL_CONTEXT_BASE_HPP
The password is needed for reading/decryption.
const int verify_none
Definition: verify_mode.hpp:52
const int verify_client_once
Definition: verify_mode.hpp:55
ASIO_STATIC_CONSTANT(long, default_workarounds=SSL_OP_ALL)
~context_base()
Protected destructor to prevent deletion through this type.
Generic SSL version 2.
const int verify_peer
Definition: verify_mode.hpp:53
method
Different methods supported by a context.
password_purpose
Purpose of PEM password.
Generic TLS version 1.2.
Generic TLS version 1.
The password is needed for writing/encryption.
long options
Bitmask type for SSL options.
const int verify_fail_if_no_peer_cert
Definition: verify_mode.hpp:54
Generic SSL version 3.
file_format
File format types.
Generic TLS version 1.1.