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

Diff for /src/usr.bin/ssh/packet.c between version 1.53 and 1.54

version 1.53, 2001/02/28 09:57:06 version 1.54, 2001/02/28 21:27:47
Line 1315 
Line 1315 
 void  void
 packet_inject_ignore(int sumlen)  packet_inject_ignore(int sumlen)
 {  {
         u_int32_t rand = 0;          int blocksize, padlen, have, need, nb, mini, nbytes;
         int i, blocksize, padlen, have, need, nb, mini, nbytes;  
         Enc *enc = NULL;          Enc *enc = NULL;
   
         if (use_ssh2_packet_format == 0)          if (use_ssh2_packet_format == 0)
Line 1344 
Line 1343 
   
         /* enqueue current message and append a ignore message */          /* enqueue current message and append a ignore message */
         packet_send();          packet_send();
         packet_start(SSH2_MSG_IGNORE);          packet_send_ignore(nbytes);
   }
   
   void
   packet_send_ignore(int nbytes)
   {
           u_int32_t rand = 0;
           int i;
   
           packet_start(compat20 ? SSH2_MSG_IGNORE : SSH_MSG_IGNORE);
         packet_put_int(nbytes);          packet_put_int(nbytes);
         for(i = 0; i < nbytes; i++) {          for(i = 0; i < nbytes; i++) {
                 if (i % 4 == 0)                  if (i % 4 == 0)

Legend:
Removed from v.1.53  
changed lines
  Added in v.1.54