- Timestamp:
- 08/21/10 19:30:35 (21 months ago)
- Location:
- trunk/sources/thelib/include/protocols/ssl
- Files:
-
- 1 added
- 1 moved
-
. (added)
-
basesslprotocol.h (moved) (moved from trunk/sources/thelib/include/protocols/sslprotocol.h) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/thelib/include/protocols/ssl/basesslprotocol.h
r56 r87 24 24 #include "protocols/baseprotocol.h" 25 25 26 class SSLProtocol26 class BaseSSLProtocol 27 27 : public BaseProtocol { 28 28 private: 29 IOBuffer _inputBuffer; 30 IOBuffer _outputBuffer; 31 protected: 29 32 static map<string, SSL_CTX *> _pGlobalContexts; 30 33 static bool _libraryInitialized; 31 SSL_CTX *_pGlobalSSLContext 1;34 SSL_CTX *_pGlobalSSLContext; 32 35 SSL *_pSSL; 33 IOBuffer _inputBuffer; 34 IOBuffer _outputBuffer; 36 bool _sslHandshakeCompleted; 35 37 uint8_t *_pReadBuffer; 36 38 public: 37 SSLProtocol();38 virtual ~ SSLProtocol();39 BaseSSLProtocol(uint64_t type); 40 virtual ~BaseSSLProtocol(); 39 41 virtual bool Initialize(Variant ¶meters); 40 42 virtual bool AllowFarProtocol(uint64_t type); … … 45 47 virtual bool SignalInputData(int32_t recvAmount); 46 48 virtual bool SignalInputData(IOBuffer &buffer); 49 protected: 50 virtual bool DoHandshake() = 0; 51 virtual bool InitGlobalContext(Variant ¶meters) = 0; 52 bool PerformIO(); 53 string GetSSLErrors(); 47 54 private: 48 55 string DumpBIO(BIO *pBIO); 49 string GetSSLErrors();50 56 void InitRandGenerator(); 51 bool PerformIO();52 57 }; 53 58
Note: See TracChangeset
for help on using the changeset viewer.
