Example #1
0
 internal static void CheckVersion(byte[] readVersion, TlsProtocolHandler handler)
 {
     if ((readVersion[0] != 3) || (readVersion[1] != 1))
     {
         throw new TlsFatalAlert(AlertDescription.protocol_version);
     }
 }
Example #2
0
        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);
            }
        }
Example #3
0
 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;
 }
Example #4
0
 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;
 }
Example #5
0
		internal TlsStream(
			TlsProtocolHandler handler)
		{
			this.handler = handler;
		}
Example #6
0
		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);
			}
		}
Example #7
0
		internal static void CheckVersion(byte[] readVersion, TlsProtocolHandler handler)
		{
			if ((readVersion[0] != 3) || (readVersion[1] != 1))
			{
				throw new TlsFatalAlert(AlertDescription.protocol_version);
			}
		}
Example #8
0
 internal TlsStream(
     TlsProtocolHandler handler)
 {
     this.handler = handler;
 }