/[rdesktop]/sourceforge.net/trunk/rdesktop/secure.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/secure.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 376 by jsorg71, Mon May 19 21:36:33 2003 UTC revision 377 by forsberg, Thu May 22 08:37:57 2003 UTC
# Line 673  sec_process_crypt_info(STREAM s) Line 673  sec_process_crypt_info(STREAM s)
673          }          }
674    
675          DEBUG(("Generating client random\n"));          DEBUG(("Generating client random\n"));
         /* Generate a client random, and hence determine encryption keys */  
         generate_random(inr);  
676          // This is what the MS client do:          // This is what the MS client do:
677          //      memset(inr, 0, SEC_RANDOM_SIZE);          memset(inr, 0, SEC_RANDOM_SIZE);
678          // *ARIGL!*          /*  *ARIGL!* Plaintext attack, anyone?
679                I tried doing:
680                generate_random(inr);
681                ..but that generates connection errors now and then (yes,
682                "now and then". Something like 0 to 3 attempts needed before a
683                successful connection. Nice. Not!
684            */
685    
686          generate_random(client_random);          generate_random(client_random);
687          if (NULL != server_public_key)          if (NULL != server_public_key)
688          {                       /* Which means we should use          {                       /* Which means we should use

Legend:
Removed from v.376  
changed lines
  Added in v.377

  ViewVC Help
Powered by ViewVC 1.1.26