[BACK]Return to channels.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/channels.c between version 1.427 and 1.428

version 1.427, 2023/01/18 02:00:10 version 1.428, 2023/03/04 03:22:59
Line 190 
Line 190 
         u_int x11_saved_data_len;          u_int x11_saved_data_len;
   
         /* Deadline after which all X11 connections are refused */          /* Deadline after which all X11 connections are refused */
         u_int x11_refuse_time;          time_t x11_refuse_time;
   
         /*          /*
          * Fake X11 authentication data.  This is what the server will be           * Fake X11 authentication data.  This is what the server will be
Line 1246 
Line 1246 
   
         /* Is this being called after the refusal deadline? */          /* Is this being called after the refusal deadline? */
         if (sc->x11_refuse_time != 0 &&          if (sc->x11_refuse_time != 0 &&
             (u_int)monotime() >= sc->x11_refuse_time) {              monotime() >= sc->x11_refuse_time) {
                 verbose("Rejected X11 connection after ForwardX11Timeout "                  verbose("Rejected X11 connection after ForwardX11Timeout "
                     "expired");                      "expired");
                 return -1;                  return -1;
Line 1867 
Line 1867 
 }  }
   
 void  void
 channel_set_x11_refuse_time(struct ssh *ssh, u_int refuse_time)  channel_set_x11_refuse_time(struct ssh *ssh, time_t refuse_time)
 {  {
         ssh->chanctxt->x11_refuse_time = refuse_time;          ssh->chanctxt->x11_refuse_time = refuse_time;
 }  }

Legend:
Removed from v.1.427  
changed lines
  Added in v.1.428