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

Diff for /src/usr.bin/ssh/mac.c between version 1.5 and 1.6

version 1.5, 2002/05/16 22:02:50 version 1.6, 2003/09/18 13:02:21
Line 77 
Line 77 
   
         if (mac->key == NULL)          if (mac->key == NULL)
                 fatal("mac_compute: no key");                  fatal("mac_compute: no key");
         if (mac->mac_len > sizeof(m))          if ((u_int)mac->mac_len > sizeof(m))
                 fatal("mac_compute: mac too long");                  fatal("mac_compute: mac too long");
         HMAC_Init(&c, mac->key, mac->key_len, mac->md);          HMAC_Init(&c, mac->key, mac->key_len, mac->md);
         PUT_32BIT(b, seqno);          PUT_32BIT(b, seqno);

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