The TS_SECURITY_HEADER1 structure is attached to all client-to-server traffic when the Encryption Level selected by the server (see sections and ) is ENCRYPTION_LEVEL_LOW (1), ENCRYPTION_LEVEL_CLIENT_COMPATIBLE (2) or ENCRYPTION_LEVEL_HIGH (3). It is attached to all server-to-client traffic when the Encryption Level is ENCRYPTION_LEVEL_CLIENT_COMPATIBLE (2) or ENCRYPTION_LEVEL_HIGH (3).
file:///C:/ts_dev/TestSuites/MS-RDPBCGR/TestSuite/Src/TD/latest_XMLS_16may/RDPBCGR/ _rfc_ms-rdpbcgr2_1_7_1_1_2_2.xml
Inheritance: TS_SECURITY_HEADER
        /// <summary>
        /// Parse TS_SECURITY_HEADER (NON-FIPS)
        /// (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 ParseTsSecurityHeaderNonFips(byte[] data, ref int currentIndex)
        {
            TS_SECURITY_HEADER1 header = new TS_SECURITY_HEADER1();

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

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

            // TS_SECURITY_HEADER1: dataSignature
            header.dataSignature = GetBytes(data, ref currentIndex,
                ConstValue.TS_SECURITY_HEADER_DATA_SIGNATURE_LENGTH);

            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 override TS_SECURITY_HEADER Clone()
        {
            TS_SECURITY_HEADER1 cloneHeader = new TS_SECURITY_HEADER1();
            cloneHeader.flags = flags;
            cloneHeader.flagsHi = flagsHi;
            cloneHeader.dataSignature = RdpbcgrUtility.CloneByteArray(dataSignature);

            return cloneHeader;
        }