6 #ifndef _INC_cSSLChannel_H
7 #define _INC_cSSLChannel_H
14 #include "../Net/cProtocol.h"
15 #include "../Cipher/cCipherBase.h"
45 void ChangeCipherSpec();
89 HRESULT OnHand_ClientHello(
const BYTE* pHandshakeData, DWORD dwDataLength);
96 virtual HRESULT ProcessStreamPacket()
override;
123 virtual HRESULT TestProtocol(
const BYTE* pszPrefixData,
size_t iPrefixLen)
const override;
126 return new cSSLServerStream(
this, pServerConnection, pStreamInp, pStreamOut);
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
Definition: cSSLChannel.h:51
HRESULT SendClientKeyExchange(bool bCertificateVerify)
HRESULT OnServerHelloDone()
HRESULT OnChangeCipherSpec()
cStreamOutput * get_SSLOut() const
cStream * m_pStream
the data stream to/from the cNetSocket
Definition: cSSLChannel.h:56
cStreamInput * get_SSLInp() const
HRESULT SendCertificate()
HRESULT SendChangeCipherSpec()
Definition: cProtocol.h:147
Definition: cProtocol.h:24
Definition: cSSLChannel.h:30
cSSLMsgHandHello m_Hello
last set of hello params.
Definition: cSSLChannel.h:36
bool m_bFinished
Definition: cSSLChannel.h:35
cSSLSession m_Cur
the current active selected encryption of the channel.
Definition: cSSLChannel.h:38
cSSLSession m_Neg
the encryption we are negotiating. not active til Cont_ChangeCipherSpec.
Definition: cSSLChannel.h:37
UNITTEST2_PREDEF(cSSLChannel)
cNewPtr< cCipherBase > m_pCrypt
the current active encryption.
Definition: cSSLChannel.h:39
Definition: cSSLMsg.h:357
Definition: cSSLMsg.h:255
Definition: cSSLChannel.h:108
virtual cProtocolStreamPtr CreateProtocolStream(IUnkObject *pServerConnection, cStreamInput *pStreamInp, cStreamOutput *pStreamOut) override
Definition: cSSLChannel.h:124
virtual const char * get_ProtocolName() const override
Definition: cSSLChannel.h:119
cProtocolFactories m_Factories
What protocols are we wrapping?
Definition: cSSLChannel.h:113
Definition: cSSLChannel.h:80
IUNKNOWN_DISAMBIG(cRefBase)
cProtocolStreamPtr m_pProtocol2
The protocol wrapped by this cSSLServerStream.
Definition: cSSLChannel.h:85
Definition: cSSLSession.h:175
Definition: cStream.h:126
Definition: cStream.h:456
cRefPtr< cSSLServerStream > cSSLServerStreamPtr
Definition: cSSLChannel.h:105
UNITTEST2_PREDEF(cQuadtree)
class __DECL_IMPORT cSSLServerFactory
Definition: cSSLChannel.h:77
Definition: cProtocol.h:125