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; }
internal RecordStream(TlsProtocol handler, Stream input, Stream output) { mHandler = handler; mInput = input; mOutput = output; mReadCompression = new TlsNullCompression(); mWriteCompression = mReadCompression; }
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; }
internal virtual void FinaliseHandshake() { if (mReadCompression != mPendingCompression || mWriteCompression != mPendingCompression || mReadCipher != mPendingCipher || mWriteCipher != mPendingCipher) { throw new TlsFatalAlert(40); } mPendingCompression = null; mPendingCipher = null; }
internal virtual void SentWriteCipherSpec() { if (mPendingCompression == null || mPendingCipher == null) { throw new TlsFatalAlert(40); } mWriteCompression = mPendingCompression; mWriteCipher = mPendingCipher; mWriteSeqNo = 0L; }
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; }
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; }
internal virtual void ReceivedReadCipherSpec() { if (mPendingCompression == null || mPendingCipher == null) { throw new TlsFatalAlert(40); } mReadCompression = mPendingCompression; mReadCipher = mPendingCipher; mReadSeqNo = 0L; }
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; }
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; }
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; }
internal void ServerClientSpecReceived() { this.readCompression = this.writeCompression; this.readCipher = this.writeCipher; }
internal void ClientCipherSpecDecided(TlsCompression tlsCompression, TlsCipher tlsCipher) { this.writeCompression = tlsCompression; this.writeCipher = tlsCipher; }
internal virtual void SetPendingConnectionState(TlsCompression tlsCompression, TlsCipher tlsCipher) { this.mPendingCompression = tlsCompression; this.mPendingCipher = tlsCipher; }