[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.337 and 1.338

version 1.337, 2019/07/16 13:18:39 version 1.338, 2019/07/19 03:38:01
Line 1151 
Line 1151 
         struct known_hosts_ctx *ctx = (struct known_hosts_ctx *)_ctx;          struct known_hosts_ctx *ctx = (struct known_hosts_ctx *)_ctx;
         enum sshkey_fp_rep rep;          enum sshkey_fp_rep rep;
         int fptype;          int fptype;
         char *fp;          char *fp = NULL, *ra = NULL;
   
         fptype = print_bubblebabble ? SSH_DIGEST_SHA1 : fingerprint_hash;          fptype = print_bubblebabble ? SSH_DIGEST_SHA1 : fingerprint_hash;
         rep =    print_bubblebabble ? SSH_FP_BUBBLEBABBLE : SSH_FP_DEFAULT;          rep =    print_bubblebabble ? SSH_FP_BUBBLEBABBLE : SSH_FP_DEFAULT;
Line 1185 
Line 1185 
                                 known_hosts_hash(l, ctx);                                  known_hosts_hash(l, ctx);
                         else if (print_fingerprint) {                          else if (print_fingerprint) {
                                 fp = sshkey_fingerprint(l->key, fptype, rep);                                  fp = sshkey_fingerprint(l->key, fptype, rep);
                                   ra = sshkey_fingerprint(l->key,
                                       fingerprint_hash, SSH_FP_RANDOMART);
                                   if (fp == NULL || ra == NULL)
                                           fatal("%s: sshkey_fingerprint failed",
                                               __func__);
                                 mprintf("%s %s %s %s\n", ctx->host,                                  mprintf("%s %s %s %s\n", ctx->host,
                                     sshkey_type(l->key), fp, l->comment);                                      sshkey_type(l->key), fp, l->comment);
                                   if (log_level_get() >= SYSLOG_LEVEL_VERBOSE)
                                           printf("%s\n", ra);
                                   free(ra);
                                 free(fp);                                  free(fp);
                         } else                          } else
                                 fprintf(ctx->out, "%s\n", l->line);                                  fprintf(ctx->out, "%s\n", l->line);

Legend:
Removed from v.1.337  
changed lines
  Added in v.1.338