/[rdesktop]/sourceforge.net/trunk/rdesktop/mcs.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/mcs.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 25 by matty, Sat Jan 6 03:47:04 2001 UTC revision 30 by matty, Fri Sep 14 13:51:38 2001 UTC
# Line 1  Line 1 
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
# Line 38  ber_parse_header(STREAM s, int tagval, i Line 38  ber_parse_header(STREAM s, int tagval, i
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    
# Line 161  mcs_recv_connect_response(STREAM mcs_dat Line 161  mcs_recv_connect_response(STREAM mcs_dat
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    
# Line 172  mcs_recv_connect_response(STREAM mcs_dat Line 172  mcs_recv_connect_response(STREAM mcs_dat
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    
# Line 227  mcs_recv_aucf(uint16 *mcs_userid) Line 227  mcs_recv_aucf(uint16 *mcs_userid)
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    
# Line 274  mcs_recv_cjcf() Line 274  mcs_recv_cjcf()
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    
# Line 340  mcs_recv() Line 340  mcs_recv()
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          }          }

Legend:
Removed from v.25  
changed lines
  Added in v.30

  ViewVC Help
Powered by ViewVC 1.1.26