Lines Matching defs:comment

337 	char comment[61], *b64;
348 snprintf(comment, sizeof(comment),
357 fprintf(stdout, "Comment: \"%s\"\n%s", comment, b64);
835 char *comment = NULL;
841 prv = load_identity(identity_file, &comment);
844 if (comment != NULL && *comment != '\0')
845 fprintf(stdout, " %s", comment);
852 free(comment);
919 fingerprint_one_key(const struct sshkey *public, const char *comment)
932 comment ? comment : "no comment", sshkey_type(public));
943 char *comment = NULL;
949 if ((r = sshkey_load_public(path, &pubkey, &comment)) != 0)
951 if (pubkey == NULL || comment == NULL || *comment == '\0') {
952 free(comment);
954 &privkey, &comment)) != 0)
960 fingerprint_one_key(pubkey == NULL ? privkey : pubkey, comment);
963 free(comment);
971 char *comment = NULL, *cp, *ep, *line = NULL;
1019 comment = NULL;
1026 comment = cp;
1045 /* Find trailing comment, if any */
1049 comment = cp;
1051 fingerprint_one_key(public, comment);
1086 char comment[1024], *prv_tmp, *pub_tmp, *prv_file, *pub_file;
1138 snprintf(comment, sizeof comment, "%s@%s", pw->pw_name,
1141 comment, private_key_format, openssh_format_cipher,
1153 if ((r = sshkey_save_public(public, pub_tmp, comment)) != 0) {
1293 l->comment[0] ? " " : "",
1294 l->comment);
1424 char *comment;
1435 r = sshkey_load_private(identity_file, "", &private, &comment);
1444 &private, &comment);
1452 if (comment)
1453 mprintf("Key has comment '%s'\n", comment);
1481 comment, private_key_format, openssh_format_cipher, rounds)) != 0) {
1485 free(comment);
1491 free(comment);
1505 char *comment = NULL;
1526 if ((r = sshkey_load_public(fname, &public, &comment)) != 0)
1530 free(comment);
1535 * Change the comment of a private key file.
1540 char new_comment[1024], *comment, *passphrase;
1551 &private, &comment)) == 0)
1565 &private, &comment)) != 0) {
1580 if (comment)
1581 printf("Old comment: %s\n", comment);
1583 printf("No existing comment\n");
1588 printf("New comment: ");
1597 if (comment != NULL && strcmp(comment, new_comment) == 0) {
1598 printf("No change to comment\n");
1601 free(comment);
1612 free(comment);
1624 free(comment);
1779 char valid[64], *otmp, *tmp, *cp, *out, *comment;
1857 if ((r = sshkey_load_public(tmp, &public, &comment)) != 0)
1904 if ((r = sshkey_save_public(public, out, comment)) != 0) {
2499 char *comment;
2509 if ((r = sshkey_load_public(argv[i], &k, &comment)) != 0)
2513 *comment ? " (" : "", comment, *comment ? ")" : "",
2518 free(comment);
3229 /* Save the key with the application string as the comment */
3307 "usage: ssh-keygen [-q] [-a rounds] [-b bits] [-C comment] [-f output_keyfile]\n"
3318 " ssh-keygen -c [-a rounds] [-C comment] [-f keyfile] [-P passphrase]\n"
3358 char comment[1024], *passphrase = NULL;
3929 strlcpy(comment, identity_comment, sizeof(comment));
3931 /* Create default comment field for the passphrase. */
3932 snprintf(comment, sizeof comment, "%s@%s", pw->pw_name, hostname);
3935 /* Save the key with the given passphrase and comment. */
3937 comment, private_key_format, openssh_format_cipher, rounds)) != 0) {
3951 if ((r = sshkey_save_public(public, identity_file, comment)) != 0)
3964 printf("%s %s\n", fp, comment);