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 require_cert;
43  bool verify_ipadd;
44  unsigned int verification_depth;
45  Option<std::string> ca_dir;
46  Option<std::string> ca_file;
47  std::string ciphers;
48  std::string ecdh_curves;
49  bool enable_ssl_v3;
50  bool enable_tls_v1_0;
51  bool enable_tls_v1_1;
52  bool enable_tls_v1_2;
53 };
54 
55 
59 const Flags& flags();
60 
61 } // namespace openssl {
62 } // namespace network {
63 } // namespace process {
64 
65 #endif // USE_SSL_SOCKET
66 
67 #endif // __PROCESS_SSL_FLAGS_HPP__
Definition: flags.hpp:44
#define flags
Definition: decoder.hpp:18
Definition: executor.hpp:47
bool enabled()