[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.153 and 1.154

version 1.153, 2001/12/28 14:50:54 version 1.154, 2001/12/28 15:06:00
Line 1710 
Line 1710 
 /* -- protocol input */  /* -- protocol input */
   
 void  void
 channel_input_data(int type, int plen, u_int32_t seq, void *ctxt)  channel_input_data(int type, u_int32_t seq, void *ctxt)
 {  {
         int id;          int id;
         char *data;          char *data;
Line 1754 
Line 1754 
 }  }
   
 void  void
 channel_input_extended_data(int type, int plen, u_int32_t seq, void *ctxt)  channel_input_extended_data(int type, u_int32_t seq, void *ctxt)
 {  {
         int id;          int id;
         int tcode;          int tcode;
Line 1794 
Line 1794 
 }  }
   
 void  void
 channel_input_ieof(int type, int plen, u_int32_t seq, void *ctxt)  channel_input_ieof(int type, u_int32_t seq, void *ctxt)
 {  {
         int id;          int id;
         Channel *c;          Channel *c;
Line 1815 
Line 1815 
 }  }
   
 void  void
 channel_input_close(int type, int plen, u_int32_t seq, void *ctxt)  channel_input_close(int type, u_int32_t seq, void *ctxt)
 {  {
         int id;          int id;
         Channel *c;          Channel *c;
Line 1853 
Line 1853 
   
 /* proto version 1.5 overloads CLOSE_CONFIRMATION with OCLOSE */  /* proto version 1.5 overloads CLOSE_CONFIRMATION with OCLOSE */
 void  void
 channel_input_oclose(int type, int plen, u_int32_t seq, void *ctxt)  channel_input_oclose(int type, u_int32_t seq, void *ctxt)
 {  {
         int id = packet_get_int();          int id = packet_get_int();
         Channel *c = channel_lookup(id);          Channel *c = channel_lookup(id);
Line 1865 
Line 1865 
 }  }
   
 void  void
 channel_input_close_confirmation(int type, int plen, u_int32_t seq, void *ctxt)  channel_input_close_confirmation(int type, u_int32_t seq, void *ctxt)
 {  {
         int id = packet_get_int();          int id = packet_get_int();
         Channel *c = channel_lookup(id);          Channel *c = channel_lookup(id);
Line 1881 
Line 1881 
 }  }
   
 void  void
 channel_input_open_confirmation(int type, int plen, u_int32_t seq, void *ctxt)  channel_input_open_confirmation(int type, u_int32_t seq, void *ctxt)
 {  {
         int id, remote_id;          int id, remote_id;
         Channel *c;          Channel *c;
Line 1928 
Line 1928 
 }  }
   
 void  void
 channel_input_open_failure(int type, int plen, u_int32_t seq, void *ctxt)  channel_input_open_failure(int type, u_int32_t seq, void *ctxt)
 {  {
         int id, reason;          int id, reason;
         char *msg = NULL, *lang = NULL;          char *msg = NULL, *lang = NULL;
Line 1959 
Line 1959 
 }  }
   
 void  void
 channel_input_channel_request(int type, int plen, u_int32_t seq, void *ctxt)  channel_input_channel_request(int type, u_int32_t seq, void *ctxt)
 {  {
         int id;          int id;
         Channel *c;          Channel *c;
Line 1984 
Line 1984 
 }  }
   
 void  void
 channel_input_window_adjust(int type, int plen, u_int32_t seq, void *ctxt)  channel_input_window_adjust(int type, u_int32_t seq, void *ctxt)
 {  {
         Channel *c;          Channel *c;
         int id, adjust;          int id, adjust;
Line 2008 
Line 2008 
 }  }
   
 void  void
 channel_input_port_open(int type, int plen, u_int32_t seq, void *ctxt)  channel_input_port_open(int type, u_int32_t seq, void *ctxt)
 {  {
         Channel *c = NULL;          Channel *c = NULL;
         u_short host_port;          u_short host_port;
Line 2595 
Line 2595 
  */   */
   
 void  void
 x11_input_open(int type, int plen, u_int32_t seq, void *ctxt)  x11_input_open(int type, u_int32_t seq, void *ctxt)
 {  {
         Channel *c = NULL;          Channel *c = NULL;
         int remote_id, sock = 0;          int remote_id, sock = 0;
Line 2642 
Line 2642 
   
 /* dummy protocol handler that denies SSH-1 requests (agent/x11) */  /* dummy protocol handler that denies SSH-1 requests (agent/x11) */
 void  void
 deny_input_open(int type, int plen, u_int32_t seq, void *ctxt)  deny_input_open(int type, u_int32_t seq, void *ctxt)
 {  {
         int rchan = packet_get_int();          int rchan = packet_get_int();
         switch (type) {          switch (type) {
Line 2653 
Line 2653 
                 error("Warning: ssh server tried X11 forwarding.");                  error("Warning: ssh server tried X11 forwarding.");
                 break;                  break;
         default:          default:
                 error("deny_input_open: type %d plen %d", type, plen);                  error("deny_input_open: type %d", type);
                 break;                  break;
         }          }
         error("Warning: this is probably a break in attempt by a malicious server.");          error("Warning: this is probably a break in attempt by a malicious server.");
Line 2853 
Line 2853 
 /* This is called to process an SSH_SMSG_AGENT_OPEN message. */  /* This is called to process an SSH_SMSG_AGENT_OPEN message. */
   
 void  void
 auth_input_open_request(int type, int plen, u_int32_t seq, void *ctxt)  auth_input_open_request(int type, u_int32_t seq, void *ctxt)
 {  {
         Channel *c = NULL;          Channel *c = NULL;
         int remote_id, sock;          int remote_id, sock;

Legend:
Removed from v.1.153  
changed lines
  Added in v.1.154