21 #ifdef HZ_BUILD_WITH_SSL
22 #include <boost/asio/ssl/context.hpp>
25 #include "hazelcast/util/export.h"
27 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
29 #pragma warning(disable : 4251)
40 #ifdef HZ_BUILD_WITH_SSL
42 enum HAZELCAST_API ssl_protocol
71 #ifdef HZ_BUILD_WITH_SSL
77 ssl_config& set_context(boost::asio::ssl::context context);
84 bool is_enabled()
const;
102 ssl_config& set_protocol(ssl_protocol protocol);
109 ssl_protocol get_protocol()
const;
117 const std::vector<std::string>& get_verify_files()
const;
131 ssl_config& add_verify_file(
const std::string& filename);
136 const std::string& get_cipher_list()
const;
151 ssl_config& set_cipher_list(
const std::string& ciphers);
154 friend class internal::socket::SocketFactory;
157 ssl_protocol ssl_protocol_;
158 std::vector<std::string> client_verify_files_;
159 std::string cipher_list_;
160 std::shared_ptr<boost::asio::ssl::context> ssl_context_;
161 void check_context_enabled_already()
const;
168 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
Contains configuration parameters for ssl related behaviour.