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

Diff for /src/usr.bin/ssh/ssh-keygen.c between version 1.258 and 1.259

version 1.258, 2015/01/19 00:32:54 version 1.259, 2015/01/28 22:36:00
Line 783 
Line 783 
                         fp = sshkey_fingerprint(keys[i], fptype, rep);                          fp = sshkey_fingerprint(keys[i], fptype, rep);
                         ra = sshkey_fingerprint(keys[i], fingerprint_hash,                          ra = sshkey_fingerprint(keys[i], fingerprint_hash,
                             SSH_FP_RANDOMART);                              SSH_FP_RANDOMART);
                           if (fp == NULL || ra == NULL)
                                   fatal("%s: sshkey_fingerprint fail", __func__);
                         printf("%u %s %s (PKCS11 key)\n", sshkey_size(keys[i]),                          printf("%u %s %s (PKCS11 key)\n", sshkey_size(keys[i]),
                             fp, sshkey_type(keys[i]));                              fp, sshkey_type(keys[i]));
                         if (log_level >= SYSLOG_LEVEL_VERBOSE)                          if (log_level >= SYSLOG_LEVEL_VERBOSE)
Line 829 
Line 831 
                 fp = sshkey_fingerprint(public, fptype, rep);                  fp = sshkey_fingerprint(public, fptype, rep);
                 ra = sshkey_fingerprint(public, fingerprint_hash,                  ra = sshkey_fingerprint(public, fingerprint_hash,
                     SSH_FP_RANDOMART);                      SSH_FP_RANDOMART);
                   if (fp == NULL || ra == NULL)
                           fatal("%s: sshkey_fingerprint fail", __func__);
                 printf("%u %s %s (%s)\n", sshkey_size(public), fp, comment,                  printf("%u %s %s (%s)\n", sshkey_size(public), fp, comment,
                     sshkey_type(public));                      sshkey_type(public));
                 if (log_level >= SYSLOG_LEVEL_VERBOSE)                  if (log_level >= SYSLOG_LEVEL_VERBOSE)
Line 898 
Line 902 
                 fp = sshkey_fingerprint(public, fptype, rep);                  fp = sshkey_fingerprint(public, fptype, rep);
                 ra = sshkey_fingerprint(public, fingerprint_hash,                  ra = sshkey_fingerprint(public, fingerprint_hash,
                     SSH_FP_RANDOMART);                      SSH_FP_RANDOMART);
                   if (fp == NULL || ra == NULL)
                           fatal("%s: sshkey_fingerprint fail", __func__);
                 printf("%u %s %s (%s)\n", sshkey_size(public), fp,                  printf("%u %s %s (%s)\n", sshkey_size(public), fp,
                     comment ? comment : "no comment", sshkey_type(public));                      comment ? comment : "no comment", sshkey_type(public));
                 if (log_level >= SYSLOG_LEVEL_VERBOSE)                  if (log_level >= SYSLOG_LEVEL_VERBOSE)
Line 1883 
Line 1889 
         key_fp = sshkey_fingerprint(key, fingerprint_hash, SSH_FP_DEFAULT);          key_fp = sshkey_fingerprint(key, fingerprint_hash, SSH_FP_DEFAULT);
         ca_fp = sshkey_fingerprint(key->cert->signature_key,          ca_fp = sshkey_fingerprint(key->cert->signature_key,
             fingerprint_hash, SSH_FP_DEFAULT);              fingerprint_hash, SSH_FP_DEFAULT);
           if (key_fp == NULL || ca_fp == NULL)
                   fatal("%s: sshkey_fingerprint fail", __func__);
   
         printf("%s:\n", identity_file);          printf("%s:\n", identity_file);
         printf("        Type: %s %s certificate\n", sshkey_ssh_name(key),          printf("        Type: %s %s certificate\n", sshkey_ssh_name(key),
Line 2199 
Line 2207 
 {  {
         char dotsshdir[PATH_MAX], comment[1024], *passphrase1, *passphrase2;          char dotsshdir[PATH_MAX], comment[1024], *passphrase1, *passphrase2;
         char *checkpoint = NULL;          char *checkpoint = NULL;
         char out_file[PATH_MAX], *rr_hostname = NULL, *ep;          char out_file[PATH_MAX], *rr_hostname = NULL, *ep, *fp, *ra;
         struct sshkey *private, *public;          struct sshkey *private, *public;
         struct passwd *pw;          struct passwd *pw;
         struct stat st;          struct stat st;
Line 2686 
Line 2694 
         fclose(f);          fclose(f);
   
         if (!quiet) {          if (!quiet) {
                 char *fp = sshkey_fingerprint(public, fingerprint_hash,                  fp = sshkey_fingerprint(public, fingerprint_hash,
                     SSH_FP_DEFAULT);                      SSH_FP_DEFAULT);
                 char *ra = sshkey_fingerprint(public, fingerprint_hash,                  ra = sshkey_fingerprint(public, fingerprint_hash,
                     SSH_FP_RANDOMART);                      SSH_FP_RANDOMART);
                   if (fp == NULL || ra == NULL)
                           fatal("sshkey_fingerprint failed");
                 printf("Your public key has been saved in %s.\n",                  printf("Your public key has been saved in %s.\n",
                     identity_file);                      identity_file);
                 printf("The key fingerprint is:\n");                  printf("The key fingerprint is:\n");

Legend:
Removed from v.1.258  
changed lines
  Added in v.1.259