13 #ifndef TLSSCHANNEL_H__
14 #define TLSSCHANNEL_H__
24 #define SECURITY_WIN32
60 virtual bool encrypt(
const std::string& data );
63 virtual int decrypt(
const std::string& data );
81 virtual void setClientCert(
const std::string& clientKey,
const std::string& clientCerts );
84 void handshakeStage(
const std::string& data );
87 int filetime2int( FILETIME t );
90 void connectionInfos();
93 CredHandle m_credHandle;
96 SecPkgContext_StreamSizes m_sizes;
100 size_t m_trailer_max;
102 std::string m_buffer;
virtual bool encrypt(const std::string &data)
virtual void setCACerts(const StringList &cacerts)
virtual void setClientCert(const std::string &clientKey, const std::string &clientCerts)
SChannel(TLSHandler *th, const std::string &server)
virtual const std::string channelBinding() const
virtual bool init(const std::string &=EmptyString, const std::string &=EmptyString, const StringList &=StringList())
virtual bool hasChannelBinding() const
virtual int decrypt(const std::string &data)
An abstract base class for TLS implementations.
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