X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mcs.c;h=4a8fc3fd87379284b5ff4add82e2b62f9cd42745;hb=3877f62cb1eaadc9389341106befc04eded5ae18;hp=d1cbf8c004be9ab4198d71a0cb0f684dc517392f;hpb=5d9e4292e05cb5d0ee743962391cabad0d788b6a;p=rdpsrv diff --git a/mcs.c b/mcs.c index d1cbf8c..4a8fc3f 100644 --- a/mcs.c +++ b/mcs.c @@ -155,8 +155,9 @@ void mcs_send_connect_response() { STREAM s; + int i; - s = iso_init(80); // FIXME + s = iso_init(92); ber_out_header(s, MCS_CONNECT_RESPONSE, 80); ber_out_header(s, BER_TAG_RESULT, 1); @@ -167,17 +168,21 @@ mcs_send_connect_response() mcs_out_domain_params(s, 34, 2, 0, 0xffff); // dumdidum? - ber_out_header(s, BER_TAG_OCTET_STRING, 28); + ber_out_header(s, BER_TAG_OCTET_STRING, 40); out_uint8s(s, 21); // ick out_uint8(s, 0); - // server info -- we claim to support RDP4 + // server info -- we claim to support RDP1 out_uint16_le(s, SEC_TAG_SRV_INFO); out_uint16_le(s, 6); // length out_uint16_le(s, 1); - // aiee, no crypto info yet! :-) + // crypto info + out_uint16_le(s, SEC_TAG_SRV_CRYPT); + out_uint16_le(s, 12); // length + out_uint32_le(s, 1); // 40-bit + out_uint32_le(s, 0); // no encryption s_mark_end(s); printf("LEN: %u\n", s->p - s->iso_hdr);