Receive the (encrypted) client random.
authorSteinar H. Gunderson <sesse@samfundet.no>
Sat, 5 Feb 2005 20:17:31 +0000 (20:17 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Sat, 5 Feb 2005 20:17:31 +0000 (20:17 +0000)
secure.c

index ba13a77..f32a081 100644 (file)
--- a/secure.c
+++ b/secure.c
@@ -747,6 +747,21 @@ sec_recv(void)
                                printf("Received logon packet!\n");
                                rdp_get_logon_info(s);
                        }
+
+                       if (sec_flags & SEC_CLIENT_RANDOM) {
+                               uint32 length;
+                               
+                               printf("Receiving the client random!\n");
+                               in_uint32_le(s, length);
+                               if (length != SEC_MODULUS_SIZE + SEC_PADDING_SIZE) {
+                                       error("Client random was wrong size, %u bytes\n", length);
+                               }
+                               in_uint8a(s, sec_crypted_random, SEC_MODULUS_SIZE);
+                               in_uint8s(s, SEC_PADDING_SIZE);
+                               if (!s_check_end(s)) {
+                                       error("Junk after client random\n");
+                               }
+                       }
                }
 
                printf("Received MCS data on ch %u\n", channel);