internal static void CheckVersion(byte[] readVersion, TlsProtocolHandler handler) { if ((readVersion[0] != 3) || (readVersion[1] != 1)) { throw new TlsFatalAlert(AlertDescription.protocol_version); } }
internal static void CheckVersion(Stream inStr, TlsProtocolHandler handler) { int i1 = inStr.ReadByte(); int i2 = inStr.ReadByte(); if ((i1 != 3) || (i2 != 1)) { throw new TlsFatalAlert(AlertDescription.protocol_version); } }
internal RecordStream(TlsProtocolHandler handler, Stream inStr, Stream outStr) { _handler = handler; _inStr = inStr; _outStr = outStr; _hash = new CombinedHash(); _readCompression = new TlsNullCompression(); _writeCompression = _readCompression; _readCipher = new TlsNullCipher(); _writeCipher = _readCipher; }
internal RecordStream(TlsProtocolHandler handler, Stream inStr, Stream outStr) { _handler = handler; _inStr = inStr; _outStr = outStr; _hash = new CombinedHash(); _readCompression = new TlsNullCompression(); _writeCompression = _readCompression; _readCipher = new TlsNullCipher(); _writeCipher = _readCipher; }
internal TlsStream( TlsProtocolHandler handler) { this.handler = handler; }
internal static void CheckVersion(Stream inStr, TlsProtocolHandler handler) { int i1 = inStr.ReadByte(); int i2 = inStr.ReadByte(); if ((i1 != 3) || (i2 != 1)) { throw new TlsFatalAlert(AlertDescription.protocol_version); } }
internal static void CheckVersion(byte[] readVersion, TlsProtocolHandler handler) { if ((readVersion[0] != 3) || (readVersion[1] != 1)) { throw new TlsFatalAlert(AlertDescription.protocol_version); } }
internal TlsStream( TlsProtocolHandler handler) { this.handler = handler; }