Lines Matching +defs:comment +defs:start

82  * Flag indicating that we just want to change the comment.  This can be set
118 /* This is set to the new comment if given on the command line. */
311 char comment[61];
319 snprintf(comment, sizeof(comment),
325 fprintf(stdout, "Comment: \"%s\"\n", comment);
836 fingerprint_one_key(const struct sshkey *public, const char *comment)
849 comment ? comment : "no comment", sshkey_type(public));
860 char *comment = NULL;
866 if ((r = sshkey_load_public(path, &public, &comment)) != 0) {
869 &public, &comment)) != 0) {
875 fingerprint_one_key(public, comment);
877 free(comment);
885 char *comment = NULL, *cp, *ep, line[SSH_MAX_PUBKEY_BYTES];
936 comment = cp;
955 /* Find trailing comment, if any */
959 comment = cp;
961 fingerprint_one_key(public, comment);
997 char comment[1024];
1028 snprintf(comment, sizeof comment, "%s@%s", pw->pw_name,
1031 comment, use_new_format, new_format_cipher, rounds)) != 0) {
1064 fprintf(f, " %s\n", comment);
1173 sshkey_type(l->key), fp, l->comment);
1293 char *comment;
1304 r = sshkey_load_private(identity_file, "", &private, &comment);
1313 &private, &comment);
1322 if (comment)
1323 mprintf("Key has comment '%s'\n", comment);
1352 comment, use_new_format, new_format_cipher, rounds)) != 0) {
1358 free(comment);
1365 free(comment);
1378 char *comment = NULL;
1389 if ((r = sshkey_load_public(fname, &public, &comment)) != 0)
1394 free(comment);
1399 * Change the comment of a private key file.
1404 char new_comment[1024], *comment, *passphrase;
1416 &private, &comment)) == 0)
1431 &private, &comment)) != 0) {
1447 if (comment)
1448 printf("Key now has comment '%s'\n", comment);
1450 printf("Key now has no comment\n");
1455 printf("Enter new comment: ");
1473 free(comment);
1495 free(comment);
1497 printf("The comment in your key file has been changed.\n");
1594 char valid[64], *otmp, *tmp, *cp, *out, *comment, **plist = NULL;
1629 if ((r = sshkey_load_public(tmp, &public, &comment)) != 0)
1671 fprintf(f, " %s\n", comment);
2032 /* Remember the start of a span of whitespace */
2188 char *comment;
2196 if ((r = sshkey_load_public(argv[i], &k, &comment)) != 0)
2201 *comment ? " (" : "", comment, *comment ? ")" : "",
2206 free(comment);
2223 " [-N new_passphrase] [-C comment] [-f output_keyfile]\n"
2228 " ssh-keygen -c [-P passphrase] [-C comment] [-f keyfile]\n"
2261 char dotsshdir[PATH_MAX], comment[1024], *passphrase1, *passphrase2;
2276 BIGNUM *start = NULL;
2490 if (BN_hex2bn(&start, optarg) == 0)
2491 fatal("Invalid start point.");
2605 if (gen_candidates(out, memory, bits, start) != 0)
2714 strlcpy(comment, identity_comment, sizeof(comment));
2716 /* Create default comment field for the passphrase. */
2717 snprintf(comment, sizeof comment, "%s@%s", pw->pw_name, hostname);
2720 /* Save the key with the given passphrase and comment. */
2722 comment, use_new_format, new_format_cipher, rounds)) != 0) {
2747 fprintf(f, " %s\n", comment);
2760 printf("%s %s\n", fp, comment);