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 );
An abstract base class for TLS implementations.
This is an abstraction of the various TLS backends.
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