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

Diff for /src/usr.bin/ssh/hostfile.c between version 1.32.4.3 and 1.33

version 1.32.4.3, 2005/09/02 03:45:00 version 1.33, 2005/03/01 10:40:26
Line 92 
Line 92 
                     salt_len, ret);                      salt_len, ret);
                 return (-1);                  return (-1);
         }          }
   
         return (0);          return (0);
 }  }
   
Line 123 
Line 123 
         HMAC_Final(&mac_ctx, result, NULL);          HMAC_Final(&mac_ctx, result, NULL);
         HMAC_cleanup(&mac_ctx);          HMAC_cleanup(&mac_ctx);
   
         if (__b64_ntop(salt, len, uu_salt, sizeof(uu_salt)) == -1 ||          if (__b64_ntop(salt, len, uu_salt, sizeof(uu_salt)) == -1 ||
             __b64_ntop(result, len, uu_result, sizeof(uu_result)) == -1)              __b64_ntop(result, len, uu_result, sizeof(uu_result)) == -1)
                 fatal("host_hash: __b64_ntop failed");                  fatal("host_hash: __b64_ntop failed");
   
Line 310 
Line 310 
  */   */
   
 int  int
 add_host_to_hostfile(const char *filename, const char *host, const Key *key,  add_host_to_hostfile(const char *filename, const char *host, const Key *key,
     int store_hash)      int store_hash)
 {  {
         FILE *f;          FILE *f;
         int success = 0;          int success = 0;
         char *hashed_host = NULL;          char *hashed_host;
   
         if (key == NULL)          if (key == NULL)
                 return 1;       /* XXX ? */                  return 1;       /* XXX ? */

Legend:
Removed from v.1.32.4.3  
changed lines
  Added in v.1.33