[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.25 and 1.26

version 1.25, 2000/04/03 20:12:55 version 1.26, 2000/04/04 21:37:27
Line 144 
Line 144 
         connection_in = fd_in;          connection_in = fd_in;
         connection_out = fd_out;          connection_out = fd_out;
         cipher_type = SSH_CIPHER_NONE;          cipher_type = SSH_CIPHER_NONE;
         cipher_set_key(&send_context, SSH_CIPHER_NONE, (unsigned char *) "", 0, 1);          cipher_set_key(&send_context, SSH_CIPHER_NONE, (unsigned char *) "", 0);
         cipher_set_key(&receive_context, SSH_CIPHER_NONE, (unsigned char *) "", 0, 0);          cipher_set_key(&receive_context, SSH_CIPHER_NONE, (unsigned char *) "", 0);
         if (!initialized) {          if (!initialized) {
                 initialized = 1;                  initialized = 1;
                 buffer_init(&input);                  buffer_init(&input);
Line 344 
Line 344 
                 fatal("keylen too small: %d", keylen);                  fatal("keylen too small: %d", keylen);
   
         /* All other ciphers use the same key in both directions for now. */          /* All other ciphers use the same key in both directions for now. */
         cipher_set_key(&receive_context, cipher, key, keylen, 0);          cipher_set_key(&receive_context, cipher, key, keylen);
         cipher_set_key(&send_context, cipher, key, keylen, 1);          cipher_set_key(&send_context, cipher, key, keylen);
 }  }
   
 /* Starts constructing a packet to send. */  /* Starts constructing a packet to send. */

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26