The TS_SECURITY_HEADER structure is attached to server-to-client traffic when the Encryption Level selected by the server (see sections and ) is ENCRYPTION_LEVEL_LOW (1).
file:///C:/ts_dev/TestSuites/MS-RDPBCGR/TestSuite/Src/TD/latest_XMLS_16may/RDPBCGR/ _rfc_ms-rdpbcgr2_1_7_1_1_2_1.xml
        /// <summary>
        /// Parse TS_SECURITY_HEADER (BASIC)
        /// (parser index is updated according to parsed length)
        /// </summary>
        /// <param name="data">data to be parsed</param>
        /// <param name="currentIndex">current parser index</param>
        /// <returns>TS_SECURITY_HEADER</returns>
        private TS_SECURITY_HEADER ParseTsSecurityHeaderBasic(byte[] data, ref int currentIndex)
        {
            TS_SECURITY_HEADER header = new TS_SECURITY_HEADER();

            // TS_SECURITY_HEADER: flags
            header.flags = (TS_SECURITY_HEADER_flags_Values)ParseUInt16(data, ref currentIndex, false);

            // TS_SECURITY_HEADER: flagsHi
            header.flagsHi = ParseUInt16(data, ref currentIndex, false);

            return header;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Create an instance of the class that is identical to the current PDU. 
        /// </summary>
        /// <returns>The new instance.</returns>
        public virtual TS_SECURITY_HEADER Clone()
        {
            TS_SECURITY_HEADER cloneHeader = new TS_SECURITY_HEADER();
            cloneHeader.flags = flags;
            cloneHeader.flagsHi = flagsHi;

            return cloneHeader;
        }