Try to demand activity from the client on logon.
authorSteinar H. Gunderson <sesse@samfundet.no>
Sat, 5 Feb 2005 21:39:37 +0000 (21:39 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Sat, 5 Feb 2005 21:39:37 +0000 (21:39 +0000)
secure.c

index 3d0a42c..4134775 100644 (file)
--- a/secure.c
+++ b/secure.c
@@ -763,6 +763,21 @@ sec_recv(void)
                        {
                                printf("Received logon packet!\n");
                                rdp_get_logon_info(s);
+                       
+                               // demand activity
+                               {
+                                       STREAM s;
+
+                                       s = sec_init(g_encryption ? SEC_ENCRYPT : 0, 10);
+                                       out_uint16_le(s, 10);
+                                       out_uint16_le(s, (RDP_PDU_DEMAND_ACTIVE | 0x10));
+                                       out_uint16_le(s, 1001);
+
+                                       out_uint32_le(s, 0x103ea);
+                                       s_mark_end(s);
+                                       sec_send(s, g_encryption ? SEC_ENCRYPT : 0);
+                               }
+
                                continue;
                        }