25 |
extern unsigned int g_num_channels; |
extern unsigned int g_num_channels; |
26 |
|
|
27 |
/* Parse an ASN.1 BER header */ |
/* Parse an ASN.1 BER header */ |
28 |
static BOOL |
static RD_BOOL |
29 |
ber_parse_header(STREAM s, int tagval, int *length) |
ber_parse_header(STREAM s, int tagval, int *length) |
30 |
{ |
{ |
31 |
int tag, len; |
int tag, len; |
105 |
} |
} |
106 |
|
|
107 |
/* Parse a DOMAIN_PARAMS structure (ASN.1 BER) */ |
/* Parse a DOMAIN_PARAMS structure (ASN.1 BER) */ |
108 |
static BOOL |
static RD_BOOL |
109 |
mcs_parse_domain_params(STREAM s) |
mcs_parse_domain_params(STREAM s) |
110 |
{ |
{ |
111 |
int length; |
int length; |
147 |
} |
} |
148 |
|
|
149 |
/* Expect a MCS_CONNECT_RESPONSE message (ASN.1 BER) */ |
/* Expect a MCS_CONNECT_RESPONSE message (ASN.1 BER) */ |
150 |
static BOOL |
static RD_BOOL |
151 |
mcs_recv_connect_response(STREAM mcs_data) |
mcs_recv_connect_response(STREAM mcs_data) |
152 |
{ |
{ |
153 |
uint8 result; |
uint8 result; |
221 |
} |
} |
222 |
|
|
223 |
/* Expect a AUcf message (ASN.1 PER) */ |
/* Expect a AUcf message (ASN.1 PER) */ |
224 |
static BOOL |
static RD_BOOL |
225 |
mcs_recv_aucf(uint16 * mcs_userid) |
mcs_recv_aucf(uint16 * mcs_userid) |
226 |
{ |
{ |
227 |
uint8 opcode, result; |
uint8 opcode, result; |
270 |
} |
} |
271 |
|
|
272 |
/* Expect a CJcf message (ASN.1 PER) */ |
/* Expect a CJcf message (ASN.1 PER) */ |
273 |
static BOOL |
static RD_BOOL |
274 |
mcs_recv_cjcf(void) |
mcs_recv_cjcf(void) |
275 |
{ |
{ |
276 |
uint8 opcode, result; |
uint8 opcode, result; |
372 |
} |
} |
373 |
|
|
374 |
/* Establish a connection up to the MCS layer */ |
/* Establish a connection up to the MCS layer */ |
375 |
BOOL |
RD_BOOL |
376 |
mcs_connect(char *server, STREAM mcs_data, char *username) |
mcs_connect(char *server, STREAM mcs_data, char *username) |
377 |
{ |
{ |
378 |
unsigned int i; |
unsigned int i; |
413 |
} |
} |
414 |
|
|
415 |
/* Establish a connection up to the MCS layer */ |
/* Establish a connection up to the MCS layer */ |
416 |
BOOL |
RD_BOOL |
417 |
mcs_reconnect(char *server, STREAM mcs_data) |
mcs_reconnect(char *server, STREAM mcs_data) |
418 |
{ |
{ |
419 |
unsigned int i; |
unsigned int i; |