コード例 #1
0
 private void _read()
 {
     _version           = m_io.ReadU2be();
     _random            = new Random(m_io, this, m_root);
     _sessionId         = new SessionId(m_io, this, m_root);
     _cipherSuite       = new CipherSuite(m_io, this, m_root);
     _compressionMethod = ((TlsPacket.CompressionMethods)m_io.ReadU1());
     if (M_Io.Size > M_Io.Pos)
     {
         _extensions = new TlsExtensions(m_io, this, m_root);
     }
 }
コード例 #2
0
            private void _read()
            {
                _version           = new TlsVersion(m_io, this, m_root);
                _random            = new Random(m_io, this, m_root);
                _sessionId         = new SessionId(m_io, this, m_root);
                _cipherSuite       = new CipherSuite(m_io, this, m_root);
                _compressionMethod = ((TlsPacket.CompressionMethods)m_io.ReadU1());
                _extensionsLength  = m_io.ReadU2be();
                __raw_extensions   = m_io.ReadBytes(ExtensionsLength);
                var io___raw_extensions = new KaitaiStream(__raw_extensions);

                _extensions = new TlsExtensions(io___raw_extensions, this, m_root);
            }
コード例 #3
0
 private void _read()
 {
     _version                  = m_io.ReadU2be();
     _random                   = new Random(m_io, this, m_root);
     _sessionId                = new SessionId(m_io, this, m_root);
     _cipherSuites             = new CipherSuites(m_io, this, m_root);
     _compressionMethodsLength = m_io.ReadU1();
     _compressionMethods       = new List <CompressionMethods>((int)(CompressionMethodsLength));
     for (var i = 0; i < CompressionMethodsLength; i++)
     {
         _compressionMethods.Add(((TlsPacket.CompressionMethods)m_io.ReadU1()));
     }
     if (M_Io.Size > M_Io.Pos)
     {
         _extensions = new TlsExtensions(m_io, this, m_root);
     }
 }
コード例 #4
0
            private void _read()
            {
                _version                  = new TlsVersion(m_io, this, m_root);
                _random                   = new Random(m_io, this, m_root);
                _sessionId                = new SessionId(m_io, this, m_root);
                _cipherSuites             = new CipherSuites(m_io, this, m_root);
                _compressionMethodsLength = m_io.ReadU1();
                _compressionMethods       = new List <CompressionMethods>((int)(CompressionMethodsLength));
                for (var i = 0; i < CompressionMethodsLength; i++)
                {
                    _compressionMethods.Add(((TlsPacket.CompressionMethods)m_io.ReadU1()));
                }
                _extensionsLength = m_io.ReadU2be();
                __raw_extensions  = m_io.ReadBytes(ExtensionsLength);
                var io___raw_extensions = new KaitaiStream(__raw_extensions);

                _extensions = new TlsExtensions(io___raw_extensions, this, m_root);
            }