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 bool hasChannelBinding()
const;
88 virtual const std::string channelBinding()
const;
91 virtual void setCACerts(
const StringList& cacerts );
94 virtual const CertInfo& fetchTLSInfo()
const;
97 virtual void setClientCert(
const std::string& clientKey,
const std::string& clientCerts );
111 #endif // TLSDEFAULT_H__
std::list< std::string > StringList
This is an abstraction of the various TLS backends.
The namespace for the gloox library.
An abstract base class for TLS implementations.
An interface that allows for interacting with TLS implementations derived from TLSBase.
const std::string EmptyString