Ignore:
Timestamp:
08/21/10 19:30:35 (21 months ago)
Author:
shiretu
Message:

-- work on android apple streaming
-- work on new SSL support

Location:
trunk/sources/thelib/include/protocols/ssl
Files:
1 added
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/sources/thelib/include/protocols/ssl/basesslprotocol.h

    r56 r87  
    2424#include "protocols/baseprotocol.h" 
    2525 
    26 class SSLProtocol 
     26class BaseSSLProtocol 
    2727: public BaseProtocol { 
    2828private: 
     29        IOBuffer _inputBuffer; 
     30        IOBuffer _outputBuffer; 
     31protected: 
    2932        static map<string, SSL_CTX *> _pGlobalContexts; 
    3033        static bool _libraryInitialized; 
    31         SSL_CTX *_pGlobalSSLContext1; 
     34        SSL_CTX *_pGlobalSSLContext; 
    3235        SSL *_pSSL; 
    33         IOBuffer _inputBuffer; 
    34         IOBuffer _outputBuffer; 
     36        bool _sslHandshakeCompleted; 
    3537        uint8_t *_pReadBuffer; 
    3638public: 
    37         SSLProtocol(); 
    38         virtual ~SSLProtocol(); 
     39        BaseSSLProtocol(uint64_t type); 
     40        virtual ~BaseSSLProtocol(); 
    3941        virtual bool Initialize(Variant &parameters); 
    4042        virtual bool AllowFarProtocol(uint64_t type); 
     
    4547        virtual bool SignalInputData(int32_t recvAmount); 
    4648        virtual bool SignalInputData(IOBuffer &buffer); 
     49protected: 
     50        virtual bool DoHandshake() = 0; 
     51        virtual bool InitGlobalContext(Variant &parameters) = 0; 
     52        bool PerformIO(); 
     53        string GetSSLErrors(); 
    4754private: 
    4855        string DumpBIO(BIO *pBIO); 
    49         string GetSSLErrors(); 
    5056        void InitRandGenerator(); 
    51         bool PerformIO(); 
    5257}; 
    5358 
Note: See TracChangeset for help on using the changeset viewer.