Go to the source code of this file.
|
static BOOL | ber_parse_header (STREAM s, int tagval, int *length) |
|
static void | ber_out_header (STREAM s, int tagval, int length) |
|
static void | ber_out_integer (STREAM s, int value) |
|
static void | mcs_out_domain_params (STREAM s, int max_channels, int max_users, int max_tokens, int max_pdusize) |
|
static BOOL | mcs_parse_domain_params (STREAM s) |
|
static BOOL | mcs_send_connect_initial (RDPCLIENT *This, STREAM mcs_data) |
|
static BOOL | mcs_recv_connect_response (RDPCLIENT *This, STREAM mcs_data) |
|
static BOOL | mcs_send_edrq (RDPCLIENT *This) |
|
static BOOL | mcs_send_aurq (RDPCLIENT *This) |
|
static BOOL | mcs_recv_aucf (RDPCLIENT *This, uint16 *mcs_userid) |
|
static BOOL | mcs_send_cjrq (RDPCLIENT *This, uint16 chanid) |
|
static BOOL | mcs_recv_cjcf (RDPCLIENT *This) |
|
STREAM | mcs_init (RDPCLIENT *This, int length) |
|
BOOL | mcs_send_to_channel (RDPCLIENT *This, STREAM s, uint16 channel) |
|
BOOL | mcs_send (RDPCLIENT *This, STREAM s) |
|
STREAM | mcs_recv (RDPCLIENT *This, uint16 *channel, uint8 *rdpver) |
|
BOOL | mcs_connect (RDPCLIENT *This, char *server, char *cookie, STREAM mcs_data) |
|
BOOL | mcs_reconnect (RDPCLIENT *This, char *server, char *cookie, STREAM mcs_data) |
|
void | mcs_disconnect (RDPCLIENT *This) |
|
void | mcs_reset_state (RDPCLIENT *This) |
|
◆ ber_out_header()
Definition at line 60 of file mcs.c.
61{
62 if (tagval > 0xff)
63 {
65 }
66 else
67 {
69 }
70
72 {
75 }
76 else
78}
#define out_uint16_be(s, v)
GLuint GLsizei GLsizei * length
◆ ber_out_integer()
Definition at line 82 of file mcs.c.
83{
86}
void ber_out_header(STREAM s, int tagval, int length)
◆ ber_parse_header()
Definition at line 25 of file mcs.c.
26{
28
29 if (tagval > 0xff)
30 {
32 }
33 else
34 {
36
38 {
39 error(
"expected tag %d, got %d\n", tagval,
tag);
41 }
42
44
46 {
51 }
52 else
54
56}
#define in_uint16_be(s, v)
◆ mcs_connect()
Definition at line 388 of file mcs.c.
389{
391
394
397
400
403
406
409
410 for (
i = 0;
i <
This->num_channels;
i++)
411 {
414 }
416
420}
#define MCS_USERCHANNEL_BASE
#define MCS_GLOBAL_CHANNEL
RD_BOOL iso_connect(char *server, char *username, char *domain, char *password, RD_BOOL reconnect, uint32 *selected_protocol)
void iso_disconnect(void)
static void mcs_send_cjrq(uint16 chanid)
static void mcs_send_edrq(void)
static RD_BOOL mcs_recv_aucf(uint16 *mcs_userid)
static void mcs_send_aurq(void)
static RD_BOOL mcs_recv_connect_response(STREAM mcs_data)
static RD_BOOL mcs_recv_cjcf(void)
static void mcs_send_connect_initial(STREAM mcs_data)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static rfbScreenInfoPtr server
Referenced by sec_connect().
◆ mcs_disconnect()
◆ mcs_init()
Definition at line 314 of file mcs.c.
315{
317
319
322
324
326}
STREAM iso_init(int length)
#define s_push_layer(s, h, n)
◆ mcs_out_domain_params()
static void mcs_out_domain_params |
( |
STREAM |
s, |
|
|
int |
max_channels, |
|
|
int |
max_users, |
|
|
int |
max_tokens, |
|
|
int |
max_pdusize |
|
) |
| |
|
static |
Definition at line 90 of file mcs.c.
91{
101}
void ber_out_integer(STREAM s, int value)
#define MCS_TAG_DOMAIN_PARAMS
◆ mcs_parse_domain_params()
Definition at line 105 of file mcs.c.
106{
108
111
113}
RD_BOOL ber_parse_header(STREAM s, int tagval, int *length)
◆ mcs_reconnect()
Definition at line 424 of file mcs.c.
425{
427
430
433
436
439
442
445
446 for (
i = 0;
i <
This->num_channels;
i++)
447 {
450 }
452
456}
BOOL iso_reconnect(RDPCLIENT *This, char *server, char *cookie)
Referenced by sec_reconnect().
◆ mcs_recv()
Definition at line 356 of file mcs.c.
357{
360
365 if (*rdpver != 3)
370 {
372 {
373 error(
"expected data, got %d\n", opcode);
374 }
376 }
384}
STREAM iso_recv(uint8 *rdpver)
◆ mcs_recv_aucf()
Definition at line 230 of file mcs.c.
231{
234
238
241 {
242 error(
"expected AUcf, got %d\n", opcode);
244 }
245
248 {
251 }
252
253 if (opcode & 2)
255
257}
◆ mcs_recv_cjcf()
Definition at line 282 of file mcs.c.
283{
286
290
293 {
294 error(
"expected CJcf, got %d\n", opcode);
296 }
297
300 {
303 }
304
306 if (opcode & 2)
308
310}
◆ mcs_recv_connect_response()
Definition at line 150 of file mcs.c.
151{
155
159
161
165 {
168 }
169
173
175
177
178
179
180
181
182
183
184
185
186
187
188
190}
#define BER_TAG_OCTET_STRING
#define MCS_CONNECT_RESPONSE
static RD_BOOL mcs_parse_domain_params(STREAM s)
void sec_process_mcs_data(STREAM s)
◆ mcs_reset_state()
Definition at line 467 of file mcs.c.
468{
469 This->mcs_userid = 0;
471}
void iso_reset_state(void)
◆ mcs_send()
Definition at line 349 of file mcs.c.
350{
352}
void mcs_send_to_channel(STREAM s, uint16 channel)
◆ mcs_send_aurq()
Definition at line 213 of file mcs.c.
214{
216
218
221
223
226}
◆ mcs_send_cjrq()
Definition at line 261 of file mcs.c.
262{
264
265 DEBUG_RDP5((
"Sending CJRQ for channel #%d\n", chanid));
266
268
271
275
278}
◆ mcs_send_connect_initial()
Definition at line 117 of file mcs.c.
118{
122
124
127
133
136
140
143
146}
#define MCS_CONNECT_INITIAL
static void mcs_out_domain_params(STREAM s, int max_channels, int max_users, int max_tokens, int max_pdusize)
#define out_uint8p(s, v, n)
int const JOCTET unsigned int datalen
◆ mcs_send_edrq()
Definition at line 194 of file mcs.c.
195{
197
199
202
206
209}
◆ mcs_send_to_channel()
Definition at line 330 of file mcs.c.
331{
333
337
343
345}
#define s_pop_layer(s, h)