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;
112 #endif // HAVE_WINTLS
114 #endif // TLSSCHANNEL_H__
std::list< std::string > StringList
virtual int decrypt(const std::string &data)
virtual bool init(const std::string &=EmptyString, const std::string &=EmptyString, const StringList &=StringList())
virtual void setCACerts(const StringList &cacerts)
SChannel(TLSHandler *th, const std::string &server)
virtual bool hasChannelBinding() const
The namespace for the gloox library.
virtual void setClientCert(const std::string &clientKey, const std::string &clientCerts)
virtual bool encrypt(const std::string &data)
An abstract base class for TLS implementations.
virtual const std::string channelBinding() const
An interface that allows for interacting with TLS implementations derived from TLSBase.
const std::string EmptyString