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

Diff for /src/usr.bin/openssl/certhash.c between version 1.2 and 1.3

version 1.2, 2015/02/12 03:09:22 version 1.3, 2015/02/12 04:26:46
Line 121 
Line 121 
         rv = hia->hash - hib->hash;          rv = hia->hash - hib->hash;
         if (rv != 0)          if (rv != 0)
                 return (rv);                  return (rv);
         rv = bcmp(hia->fingerprint, hib->fingerprint, sizeof(hia->fingerprint));          rv = memcmp(hia->fingerprint, hib->fingerprint,
               sizeof(hia->fingerprint));
         if (rv != 0)          if (rv != 0)
                 return (rv);                  return (rv);
         return strcmp(hia->filename, hib->filename);          return strcmp(hia->filename, hib->filename);
Line 404 
Line 405 
         for (entry = head; entry != NULL; entry = entry->next) {          for (entry = head; entry != NULL; entry = entry->next) {
                 if (last != NULL) {                  if (last != NULL) {
                         if (entry->hash == last->hash) {                          if (entry->hash == last->hash) {
                                 if (bcmp(entry->fingerprint, last->fingerprint,                                  if (memcmp(entry->fingerprint,
                                       last->fingerprint,
                                     sizeof(entry->fingerprint)) == 0) {                                      sizeof(entry->fingerprint)) == 0) {
                                         fprintf(stderr, "WARNING: duplicate %s "                                          fprintf(stderr, "WARNING: duplicate %s "
                                             "in %s (using %s), ignoring...\n",                                              "in %s (using %s), ignoring...\n",

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3