Example #1
0
 internal RecordStream(TlsProtocol handler, Stream input, Stream output)
 {
     this.mHandler          = handler;
     this.mInput            = input;
     this.mOutput           = output;
     this.mReadCompression  = new TlsNullCompression();
     this.mWriteCompression = this.mReadCompression;
 }
Example #2
0
 internal RecordStream(TlsProtocol handler, Stream input, Stream output)
 {
     mHandler          = handler;
     mInput            = input;
     mOutput           = output;
     mReadCompression  = new TlsNullCompression();
     mWriteCompression = mReadCompression;
 }
Example #3
0
 internal virtual void FinaliseHandshake()
 {
     if (((this.mReadCompression != this.mPendingCompression) || (this.mWriteCompression != this.mPendingCompression)) || ((this.mReadCipher != this.mPendingCipher) || (this.mWriteCipher != this.mPendingCipher)))
     {
         throw new TlsFatalAlert(40);
     }
     this.mPendingCompression = null;
     this.mPendingCipher      = null;
 }
Example #4
0
 internal virtual void FinaliseHandshake()
 {
     if (mReadCompression != mPendingCompression || mWriteCompression != mPendingCompression || mReadCipher != mPendingCipher || mWriteCipher != mPendingCipher)
     {
         throw new TlsFatalAlert(40);
     }
     mPendingCompression = null;
     mPendingCipher      = null;
 }
Example #5
0
 internal virtual void SentWriteCipherSpec()
 {
     if (mPendingCompression == null || mPendingCipher == null)
     {
         throw new TlsFatalAlert(40);
     }
     mWriteCompression = mPendingCompression;
     mWriteCipher      = mPendingCipher;
     mWriteSeqNo       = 0L;
 }
Example #6
0
 internal virtual void SentWriteCipherSpec()
 {
     if ((this.mPendingCompression == null) || (this.mPendingCipher == null))
     {
         throw new TlsFatalAlert(40);
     }
     this.mWriteCompression = this.mPendingCompression;
     this.mWriteCipher      = this.mPendingCipher;
     this.mWriteSeqNo       = 0L;
 }
Example #7
0
 internal virtual void ReceivedReadCipherSpec()
 {
     if ((this.mPendingCompression == null) || (this.mPendingCipher == null))
     {
         throw new TlsFatalAlert(40);
     }
     this.mReadCompression = this.mPendingCompression;
     this.mReadCipher      = this.mPendingCipher;
     this.mReadSeqNo       = 0L;
 }
Example #8
0
 internal virtual void ReceivedReadCipherSpec()
 {
     if (mPendingCompression == null || mPendingCipher == null)
     {
         throw new TlsFatalAlert(40);
     }
     mReadCompression = mPendingCompression;
     mReadCipher      = mPendingCipher;
     mReadSeqNo       = 0L;
 }
Example #9
0
 internal virtual void FinaliseHandshake()
 {
     if (mReadCompression != mPendingCompression || mWriteCompression != mPendingCompression ||
         mReadCipher != mPendingCipher || mWriteCipher != mPendingCipher)
     {
         throw new TlsFatalAlert(AlertDescription.handshake_failure);
     }
     this.mPendingCompression = null;
     this.mPendingCipher      = null;
 }
Example #10
0
 internal RecordStream(TlsProtocol handler, Stream input, Stream output)
 {
     //IL_003b: Unknown result type (might be due to invalid IL or missing references)
     //IL_0045: Expected O, but got Unknown
     mHandler          = handler;
     mInput            = input;
     mOutput           = output;
     mReadCompression  = new TlsNullCompression();
     mWriteCompression = mReadCompression;
 }
Example #11
0
 internal RecordStream(
     TlsProtocolHandler	handler,
     Stream				inStr,
     Stream				outStr)
 {
     this.handler = handler;
     this.inStr = inStr;
     this.outStr = outStr;
     this.hash = new CombinedHash();
     this.readCompression = new TlsNullCompression();
     this.writeCompression = this.readCompression;
     this.readCipher = new TlsNullCipher();
     this.writeCipher = this.readCipher;
 }
Example #12
0
 internal RecordStream(
     TlsProtocolHandler handler,
     Stream inStr,
     Stream outStr)
 {
     this.handler          = handler;
     this.inStr            = inStr;
     this.outStr           = outStr;
     this.hash             = new CombinedHash();
     this.readCompression  = new TlsNullCompression();
     this.writeCompression = this.readCompression;
     this.readCipher       = new TlsNullCipher();
     this.writeCipher      = this.readCipher;
 }
Example #13
0
 internal void ServerClientSpecReceived()
 {
     this.readCompression = this.writeCompression;
     this.readCipher      = this.writeCipher;
 }
Example #14
0
 internal void ClientCipherSpecDecided(TlsCompression tlsCompression, TlsCipher tlsCipher)
 {
     this.writeCompression = tlsCompression;
     this.writeCipher      = tlsCipher;
 }
Example #15
0
 internal virtual void SetPendingConnectionState(TlsCompression tlsCompression, TlsCipher tlsCipher)
 {
     this.mPendingCompression = tlsCompression;
     this.mPendingCipher      = tlsCipher;
 }
Example #16
0
 internal void ClientCipherSpecDecided(TlsCompression tlsCompression, TlsCipher tlsCipher)
 {
     this.writeCompression = tlsCompression;
     this.writeCipher = tlsCipher;
 }
Example #17
0
 internal virtual void SetPendingConnectionState(TlsCompression tlsCompression, TlsCipher tlsCipher)
 {
     this.mPendingCompression = tlsCompression;
     this.mPendingCipher = tlsCipher;
 }
Example #18
0
 internal virtual void FinaliseHandshake()
 {
     if (mReadCompression != mPendingCompression || mWriteCompression != mPendingCompression
         || mReadCipher != mPendingCipher || mWriteCipher != mPendingCipher)
     {
         throw new TlsFatalAlert(AlertDescription.handshake_failure);
     }
     this.mPendingCompression = null;
     this.mPendingCipher = null;
 }
Example #19
0
 internal void ServerClientSpecReceived()
 {
     this.readCompression = this.writeCompression;
     this.readCipher = this.writeCipher;
 }