/[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 377 by forsberg, Thu May 22 08:37:57 2003 UTC revision 380 by jsorg71, Fri May 30 21:44:06 2003 UTC
# Line 38  extern int width; Line 38  extern int width;
38  extern int height;  extern int height;
39  extern int keylayout;  extern int keylayout;
40  extern BOOL encryption;  extern BOOL encryption;
41  extern BOOL 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;
44    
# Line 330  sec_init(uint32 flags, int maxlen) Line 330  sec_init(uint32 flags, int maxlen)
330          int hdrlen;          int hdrlen;
331          STREAM s;          STREAM s;
332    
333          if (!licence_issued)          if (!g_licence_issued)
334                  hdrlen = (flags & SEC_ENCRYPT) ? 12 : 4;                  hdrlen = (flags & SEC_ENCRYPT) ? 12 : 4;
335          else          else
336                  hdrlen = (flags & SEC_ENCRYPT) ? 12 : 0;                  hdrlen = (flags & SEC_ENCRYPT) ? 12 : 0;
# Line 347  sec_send(STREAM s, uint32 flags) Line 347  sec_send(STREAM s, uint32 flags)
347          int datalen;          int datalen;
348    
349          s_pop_layer(s, sec_hdr);          s_pop_layer(s, sec_hdr);
350          if (!licence_issued || (flags & SEC_ENCRYPT))          if (!g_licence_issued || (flags & SEC_ENCRYPT))
351                  out_uint32_le(s, flags);                  out_uint32_le(s, flags);
352    
353          if (flags & SEC_ENCRYPT)          if (flags & SEC_ENCRYPT)
# Line 769  sec_recv(void) Line 769  sec_recv(void)
769    
770          while ((s = mcs_recv(&channel)) != NULL)          while ((s = mcs_recv(&channel)) != NULL)
771          {          {
772                  if (encryption || !licence_issued)                  if (encryption || !g_licence_issued)
773                  {                  {
774                          in_uint32_le(s, sec_flags);                          in_uint32_le(s, sec_flags);
775    
# Line 777  sec_recv(void) Line 777  sec_recv(void)
777                          {                          {
778                                  if (sec_flags & SEC_ENCRYPT) {                                  if (sec_flags & SEC_ENCRYPT) {
779                                          DEBUG_RDP5(("Encrypted license detected\n"));                                          DEBUG_RDP5(("Encrypted license detected\n"));
780                                  }                                  }
781                                  licence_process(s);                                  licence_process(s);
782                                  continue;                                  continue;
783                          }                          }

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

  ViewVC Help
Powered by ViewVC 1.1.26