Apache Mesos
flags.hpp
Go to the documentation of this file.
1 // Licensed under the Apache License, Version 2.0 (the "License");
2 // you may not use this file except in compliance with the License.
3 // You may obtain a copy of the License at
4 //
5 // http://www.apache.org/licenses/LICENSE-2.0
6 //
7 // Unless required by applicable law or agreed to in writing, software
8 // distributed under the License is distributed on an "AS IS" BASIS,
9 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 // See the License for the specific language governing permissions and
11 // limitations under the License
12 
13 #ifndef __PROCESS_SSL_FLAGS_HPP__
14 #define __PROCESS_SSL_FLAGS_HPP__
15 
16 #ifdef USE_SSL_SOCKET
17 
18 #include <string>
19 
20 #include <stout/flags.hpp>
21 #include <stout/option.hpp>
22 
23 namespace process {
24 namespace network {
25 namespace openssl {
26 
32 class Flags : public virtual flags::FlagsBase
33 {
34 public:
35  Flags();
36 
37  bool enabled;
38  bool support_downgrade;
39  Option<std::string> cert_file;
40  Option<std::string> key_file;
41  bool verify_cert;
42  bool verify_server_cert;
43  bool require_cert;
44  bool require_client_cert;
45  bool verify_ipadd;
46  unsigned int verification_depth;
47  Option<std::string> ca_dir;
48  Option<std::string> ca_file;
49  std::string ciphers;
50  std::string ecdh_curves;
51  std::string hostname_validation_scheme;
52  bool enable_ssl_v3;
53  bool enable_tls_v1_0;
54  bool enable_tls_v1_1;
55  bool enable_tls_v1_2;
56  bool enable_tls_v1_3;
57 };
58 
59 
63 const Flags& flags();
64 
65 } // namespace openssl {
66 } // namespace network {
67 } // namespace process {
68 
69 #endif // USE_SSL_SOCKET
70 
71 #endif // __PROCESS_SSL_FLAGS_HPP__
Definition: flags.hpp:44
#define flags
Definition: decoder.hpp:18
Definition: executor.hpp:48
bool enabled()