13 #ifndef TLSSCHANNELBASE_H__
14 #define TLSSCHANNELBASE_H__
24 #define SECURITY_WIN32
59 virtual bool encrypt(
const std::string& data );
62 virtual int decrypt(
const std::string& data );
68 virtual void handshakeStage() = 0;
69 virtual void privateCleanup() {}
73 int filetime2int( FILETIME t );
76 void connectionInfos();
79 CredHandle m_credHandle;
82 SecPkgContext_StreamSizes m_sizes;
91 bool m_haveCredentialsHandle;
94 PCCERT_CONTEXT m_cert;
95 SCHANNEL_CRED m_tlsCred;
103 #endif // HAVE_WINTLS
105 #endif // TLSSCHANNELBASE_H__