}
}
+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;
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);