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

Diff for /src/usr.bin/ssh/Attic/auth-rsa.c between version 1.76 and 1.77

version 1.76, 2010/05/11 02:58:04 version 1.77, 2010/07/13 11:52:06
Line 113 
Line 113 
         MD5_Final(mdbuf, &md);          MD5_Final(mdbuf, &md);
   
         /* Verify that the response is the original challenge. */          /* Verify that the response is the original challenge. */
         if (memcmp(response, mdbuf, 16) != 0) {          if (timing_safe_cmp(response, mdbuf, 16) != 0) {
                 /* Wrong answer. */                  /* Wrong answer. */
                 return (0);                  return (0);
         }          }

Legend:
Removed from v.1.76  
changed lines
  Added in v.1.77