1 |
/* |
/* |
2 |
rdesktop: A Remote Desktop Protocol client. |
rdesktop: A Remote Desktop Protocol client. |
3 |
Protocol services - ISO layer |
Protocol services - ISO layer |
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 |
57 |
in_uint8(s, version); |
in_uint8(s, version); |
58 |
if (version != 3) |
if (version != 3) |
59 |
{ |
{ |
60 |
ERROR("TPKT v%d\n", version); |
error("TPKT v%d\n", version); |
61 |
return False; |
return False; |
62 |
} |
} |
63 |
|
|
123 |
s = iso_recv_msg(&code); |
s = iso_recv_msg(&code); |
124 |
if ((s == NULL) || (code != ISO_PDU_DT)) |
if ((s == NULL) || (code != ISO_PDU_DT)) |
125 |
{ |
{ |
126 |
ERROR("expected DT, got %d\n", code); |
error("expected DT, got %d\n", code); |
127 |
return False; |
return False; |
128 |
} |
} |
129 |
|
|
143 |
|
|
144 |
if ((iso_recv_msg(&code) == NULL) || (code != ISO_PDU_CC)) |
if ((iso_recv_msg(&code) == NULL) || (code != ISO_PDU_CC)) |
145 |
{ |
{ |
146 |
ERROR("expected CC, got %d\n", code); |
error("expected CC, got %d\n", code); |
147 |
tcp_disconnect(); |
tcp_disconnect(); |
148 |
return False; |
return False; |
149 |
} |
} |