[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.8 and 1.9

version 1.8, 1999/10/03 19:22:38 version 1.9, 1999/10/05 01:23:54
Line 27 
Line 27 
 #include "getput.h"  #include "getput.h"
   
 #include "compress.h"  #include "compress.h"
   #include "deattack.h"
   
 /* This variable contains the file descriptors used for communicating with  /* This variable contains the file descriptors used for communicating with
    the other side.  connection_in is used for reading; connection_out     the other side.  connection_in is used for reading; connection_out
Line 204 
Line 205 
 packet_decrypt(CipherContext *cc, void *dest, void *src,  packet_decrypt(CipherContext *cc, void *dest, void *src,
                unsigned int bytes)                 unsigned int bytes)
 {  {
     int i;
   
   assert((bytes % 8) == 0);    assert((bytes % 8) == 0);
   
     /*
       Cryptographic attack detector for ssh - Modifications for packet.c
       (C)1998 CORE-SDI, Buenos Aires Argentina
       Ariel Futoransky(futo@core-sdi.com)
     */
     switch (cc->type)
       {
       case SSH_CIPHER_NONE:
         i = DEATTACK_OK;
         break;
       default:
         i = detect_attack(src, bytes, NULL);
         break;
       }
   
     if (i == DEATTACK_DETECTED)
       packet_disconnect("crc32 compensation attack: network attack detected");
   
   cipher_decrypt(cc, dest, src, bytes);    cipher_decrypt(cc, dest, src, bytes);
 }  }
   

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9