[core,gcc] parse CS_UNUSED1 message

parse message to avoid log entries server side for this kind of PDU
This commit is contained in:
Armin Novak 2023-10-12 21:48:07 +02:00 committed by akallabeth
parent ec0109239b
commit 138d3df028
2 changed files with 15 additions and 0 deletions

View File

@ -100,6 +100,7 @@ extern "C"
#define CS_MONITOR 0xC005 #define CS_MONITOR 0xC005
#define CS_MCS_MSGCHANNEL 0xC006 #define CS_MCS_MSGCHANNEL 0xC006
#define CS_MONITOR_EX 0xC008 #define CS_MONITOR_EX 0xC008
#define CS_UNUSED1 0xC00C
#define CS_MULTITRANSPORT 0xC00A #define CS_MULTITRANSPORT 0xC00A
/* Server to Client (SC) data blocks */ /* Server to Client (SC) data blocks */

View File

@ -558,6 +558,11 @@ BOOL gcc_write_conference_create_response(wStream* s, wStream* userData)
0); /* array of server data blocks */ 0); /* array of server data blocks */
} }
BOOL gcc_read_client_unused1_data(wStream* s)
{
return Stream_SafeSeek(s, 2);
}
BOOL gcc_read_client_data_blocks(wStream* s, rdpMcs* mcs, UINT16 length) BOOL gcc_read_client_data_blocks(wStream* s, rdpMcs* mcs, UINT16 length)
{ {
WINPR_ASSERT(s); WINPR_ASSERT(s);
@ -623,6 +628,12 @@ BOOL gcc_read_client_data_blocks(wStream* s, rdpMcs* mcs, UINT16 length)
break; break;
case CS_UNUSED1:
if (!gcc_read_client_unused1_data(sub))
return FALSE;
break;
case 0xC009: case 0xC009:
case CS_MULTITRANSPORT: case CS_MULTITRANSPORT:
if (!gcc_read_client_multitransport_channel_data(sub, mcs)) if (!gcc_read_client_multitransport_channel_data(sub, mcs))
@ -736,6 +747,9 @@ char* gcc_block_type_string(UINT16 type, char* buffer, size_t size)
case CS_MONITOR_EX: case CS_MONITOR_EX:
_snprintf(buffer, size, "CS_MONITOR_EX [0x%04" PRIx16 "]", type); _snprintf(buffer, size, "CS_MONITOR_EX [0x%04" PRIx16 "]", type);
break; break;
case CS_UNUSED1:
_snprintf(buffer, size, "CS_UNUSED1 [0x%04" PRIx16 "]", type);
break;
case CS_MULTITRANSPORT: case CS_MULTITRANSPORT:
_snprintf(buffer, size, "CS_MONITOR_EX [0x%04" PRIx16 "]", type); _snprintf(buffer, size, "CS_MONITOR_EX [0x%04" PRIx16 "]", type);
break; break;