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

Diff for /src/usr.bin/ssh/dispatch.c between version 1.5 and 1.5.2.4

version 1.5, 2000/09/21 11:25:34 version 1.5.2.4, 2001/05/07 21:09:29
Line 23 
Line 23 
  */   */
 #include "includes.h"  #include "includes.h"
 RCSID("$OpenBSD$");  RCSID("$OpenBSD$");
 #include "ssh.h"  
   #include "ssh1.h"
   #include "ssh2.h"
   #include "log.h"
 #include "dispatch.h"  #include "dispatch.h"
 #include "packet.h"  #include "packet.h"
   #include "compat.h"
   
 #define DISPATCH_MIN    0  #define DISPATCH_MIN    0
 #define DISPATCH_MAX    255  #define DISPATCH_MAX    255
Line 36 
Line 40 
 dispatch_protocol_error(int type, int plen, void *ctxt)  dispatch_protocol_error(int type, int plen, void *ctxt)
 {  {
         error("Hm, dispatch protocol error: type %d plen %d", type, plen);          error("Hm, dispatch protocol error: type %d plen %d", type, plen);
           if (compat20 && type == SSH2_MSG_KEXINIT)
                   fatal("dispatch_protocol_error: rekeying is not supported");
 }  }
 void  void
 dispatch_init(dispatch_fn *dflt)  dispatch_init(dispatch_fn *dflt)
Line 66 
Line 72 
                 if (type > 0 && type < DISPATCH_MAX && dispatch[type] != NULL)                  if (type > 0 && type < DISPATCH_MAX && dispatch[type] != NULL)
                         (*dispatch[type])(type, plen, ctxt);                          (*dispatch[type])(type, plen, ctxt);
                 else                  else
                         packet_disconnect("protocol error: rcvd type %d", type);                          packet_disconnect("protocol error: rcvd type %d", type);
                 if (done != NULL && *done)                  if (done != NULL && *done)
                         return;                          return;
         }          }

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.5.2.4