14 #ifndef TLSDEFAULT_H__
15 #define TLSDEFAULT_H__
65 virtual bool init(
const std::string& clientKey =
EmptyString,
70 virtual bool encrypt(
const std::string& data );
73 virtual int decrypt(
const std::string& data );
76 virtual void cleanup();
79 virtual bool handshake();
82 virtual bool isSecure()
const;
85 virtual void setCACerts(
const StringList& cacerts );
88 virtual const CertInfo& fetchTLSInfo()
const;
91 virtual void setClientCert(
const std::string& clientKey,
const std::string& clientCerts );
105 #endif // TLSDEFAULT_H__