/[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 435 by astrand, Wed Jul 9 09:18:20 2003 UTC revision 437 by jsorg71, Mon Jul 28 21:41:12 2003 UTC
# Line 37  extern char hostname[16]; Line 37  extern char hostname[16];
37  extern int width;  extern int width;
38  extern int height;  extern int height;
39  extern int keylayout;  extern int keylayout;
40  extern BOOL encryption;  extern BOOL g_encryption;
41  extern BOOL g_licence_issued;  extern BOOL g_licence_issued;
42  extern BOOL use_rdp5;  extern BOOL use_rdp5;
43  extern int server_bpp;  extern int server_bpp;
# Line 480  sec_out_mcs_data(STREAM s) Line 480  sec_out_mcs_data(STREAM s)
480          /* Client encryption settings */          /* Client encryption settings */
481          out_uint16_le(s, SEC_TAG_CLI_CRYPT);          out_uint16_le(s, SEC_TAG_CLI_CRYPT);
482          out_uint16_le(s, 12);   /* length */          out_uint16_le(s, 12);   /* length */
483          out_uint32_le(s, encryption ? 0x3 : 0); /* encryption supported, 128-bit supported */          out_uint32_le(s, g_encryption ? 0x3 : 0);       /* encryption supported, 128-bit supported */
484          out_uint32(s, 0);       /* Unknown */          out_uint32(s, 0);       /* Unknown */
485    
486          DEBUG_RDP5(("g_num_channels is %d\n", g_num_channels));          DEBUG_RDP5(("g_num_channels is %d\n", g_num_channels));
# Line 800  sec_recv(void) Line 800  sec_recv(void)
800    
801          while ((s = mcs_recv(&channel)) != NULL)          while ((s = mcs_recv(&channel)) != NULL)
802          {          {
803                  if (encryption || !g_licence_issued)                  if (g_encryption || !g_licence_issued)
804                  {                  {
805                          in_uint32_le(s, sec_flags);                          in_uint32_le(s, sec_flags);
806    
# Line 844  sec_connect(char *server, char *username Line 844  sec_connect(char *server, char *username
844                  return False;                  return False;
845    
846          //      sec_process_mcs_data(&mcs_data);          //      sec_process_mcs_data(&mcs_data);
847          if (encryption)          if (g_encryption)
848                  sec_establish_key();                  sec_establish_key();
849          xfree(mcs_data.data);          xfree(mcs_data.data);
850          return True;          return True;

Legend:
Removed from v.435  
changed lines
  Added in v.437

  ViewVC Help
Powered by ViewVC 1.1.26