1 |
/* |
/* |
2 |
rdesktop: A Remote Desktop Protocol client. |
rdesktop: A Remote Desktop Protocol client. |
3 |
Protocol services - Multipoint Communications Service |
Protocol services - Multipoint Communications Service |
4 |
Copyright (C) Matthew Chapman 1999-2000 |
Copyright (C) Matthew Chapman 1999-2001 |
5 |
|
|
6 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
7 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
38 |
|
|
39 |
if (tag != tagval) |
if (tag != tagval) |
40 |
{ |
{ |
41 |
ERROR("expected tag %d, got %d\n", tagval, tag); |
error("expected tag %d, got %d\n", tagval, tag); |
42 |
return False; |
return False; |
43 |
} |
} |
44 |
|
|
161 |
in_uint8(s, result); |
in_uint8(s, result); |
162 |
if (result != 0) |
if (result != 0) |
163 |
{ |
{ |
164 |
ERROR("MCS connect: %d\n", result); |
error("MCS connect: %d\n", result); |
165 |
return False; |
return False; |
166 |
} |
} |
167 |
|
|
172 |
ber_parse_header(s, BER_TAG_OCTET_STRING, &length); |
ber_parse_header(s, BER_TAG_OCTET_STRING, &length); |
173 |
if (length > mcs_data->size) |
if (length > mcs_data->size) |
174 |
{ |
{ |
175 |
WARN("MCS data length %d\n", length); |
error("MCS data length %d\n", length); |
176 |
length = mcs_data->size; |
length = mcs_data->size; |
177 |
} |
} |
178 |
|
|
227 |
in_uint8(s, opcode); |
in_uint8(s, opcode); |
228 |
if ((opcode >> 2) != MCS_AUCF) |
if ((opcode >> 2) != MCS_AUCF) |
229 |
{ |
{ |
230 |
ERROR("expected AUcf, got %d\n", opcode); |
error("expected AUcf, got %d\n", opcode); |
231 |
return False; |
return False; |
232 |
} |
} |
233 |
|
|
234 |
in_uint8(s, result); |
in_uint8(s, result); |
235 |
if (result != 0) |
if (result != 0) |
236 |
{ |
{ |
237 |
ERROR("AUrq: %d\n", result); |
error("AUrq: %d\n", result); |
238 |
return False; |
return False; |
239 |
} |
} |
240 |
|
|
274 |
in_uint8(s, opcode); |
in_uint8(s, opcode); |
275 |
if ((opcode >> 2) != MCS_CJCF) |
if ((opcode >> 2) != MCS_CJCF) |
276 |
{ |
{ |
277 |
ERROR("expected CJcf, got %d\n", opcode); |
error("expected CJcf, got %d\n", opcode); |
278 |
return False; |
return False; |
279 |
} |
} |
280 |
|
|
281 |
in_uint8(s, result); |
in_uint8(s, result); |
282 |
if (result != 0) |
if (result != 0) |
283 |
{ |
{ |
284 |
ERROR("CJrq: %d\n", result); |
error("CJrq: %d\n", result); |
285 |
return False; |
return False; |
286 |
} |
} |
287 |
|
|
340 |
{ |
{ |
341 |
if (appid != MCS_DPUM) |
if (appid != MCS_DPUM) |
342 |
{ |
{ |
343 |
ERROR("expected data, got %d\n", opcode); |
error("expected data, got %d\n", opcode); |
344 |
} |
} |
345 |
return NULL; |
return NULL; |
346 |
} |
} |