16 #ifndef HAZELCAST_CLIENT_CONFIG_SSLCONFIG_H_
17 #define HAZELCAST_CLIENT_CONFIG_SSLCONFIG_H_
19 #ifdef HZ_BUILD_WITH_SSL
23 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
29 #include "hazelcast/util/HazelcastDll.h"
31 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
33 #pragma warning(disable: 4251) //for dll export
39 enum HAZELCAST_API SSLProtocol
63 class HAZELCAST_API SSLConfig {
75 bool isEnabled()
const;
82 SSLConfig &setEnabled(
bool enabled);
89 SSLConfig &setProtocol(SSLProtocol protocol);
94 SSLProtocol getProtocol()
const;
99 const std::vector<std::string> &getVerifyFiles()
const;
109 SSLConfig &addVerifyFile(
const std::string &filename);
114 const std::string &getCipherList()
const;
126 SSLConfig &setCipherList(
const std::string &ciphers);
129 SSLProtocol sslProtocol;
130 std::vector<std::string> clientVerifyFiles;
131 std::string cipherList;
137 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
141 #endif // HZ_BUILD_WITH_SSL