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 const std::string channelBindingType()
const;
94 virtual void setCACerts(
const StringList& cacerts );
97 virtual const CertInfo& fetchTLSInfo()
const;
100 virtual void setClientCert(
const std::string& clientKey,
const std::string& clientCerts );
An abstract base class for TLS implementations.
TLSBase(TLSHandler *th, const std::string server)
This is an abstraction of the various TLS backends.
TLSDefault(TLSHandler *th, const std::string server, Type type=VerifyingClient)
An interface that allows for interacting with TLS implementations derived from TLSBase.
The namespace for the gloox library.
std::list< std::string > StringList
const std::string EmptyString