X-Git-Url: https://git.sesse.net/?p=rdpsrv;a=blobdiff_plain;f=rdpsrv.c;h=f8ef8f218e30af7f141e40e2eb29c1d416ee281f;hp=96239711e83c8ed6f95924147d11a21570d45964;hb=e61b2ca4693510c74cb5c8e90e8a53522cbc9219;hpb=ebfc5fd4591ac6da73078e975e350825ed16ab99 diff --git a/rdpsrv.c b/rdpsrv.c index 9623971..f8ef8f2 100644 --- a/rdpsrv.c +++ b/rdpsrv.c @@ -199,6 +199,20 @@ void handle_control_pdu(STREAM s) } } +void +handle_font2_pdu(STREAM s) +{ + printf("FONT2 PDU, responding with magic\n"); + + s = rdp_init_data(8); + out_uint16_le(s, 0); + out_uint16_le(s, 0); + out_uint16_le(s, 3); + out_uint16_le(s, 4); + s_mark_end(s); + rdp_send_data(s, 0x28); +} + struct ServerInitialization { unsigned short width; unsigned short height; @@ -390,10 +404,7 @@ int serve_client() rdp_send_synchronise(id); break; case RDP_DATA_PDU_FONT2: - // respond with the - // unknown 0x28 PDU - // here? - printf("FONT2, ignored\n"); + handle_font2_pdu(s); break; default: printf("Unknown data PDU type %u\n", data_pdu_type);