version 1.32.2.3, 2001/03/21 19:46:30 |
version 1.49, 2001/03/11 22:33:24 |
|
|
debug("try_load_public_key KEY_UNSPEC failed"); |
debug("try_load_public_key KEY_UNSPEC failed"); |
} |
} |
if (success) { |
if (success) { |
fp = key_fingerprint(public, type, rep); |
fp = key_fingerprint_ex(public, type, rep); |
printf("%d %s %s\n", key_size(public), |
printf("%d %s %s\n", key_size(public), |
fp, comment); |
fp, comment); |
key_free(public); |
key_free(public); |
|
|
} |
} |
} |
} |
comment = *cp ? cp : comment; |
comment = *cp ? cp : comment; |
fp = key_fingerprint(public, type, rep); |
fp = key_fingerprint_ex(public, type, rep); |
printf("%d %s %s\n", key_size(public), fp, |
printf("%d %s %s\n", key_size(public), fp, |
comment ? comment : "no comment"); |
comment ? comment : "no comment"); |
xfree(fp); |
xfree(fp); |
|
|
fclose(f); |
fclose(f); |
|
|
if (!quiet) { |
if (!quiet) { |
char *fp = key_fingerprint(public, SSH_FP_MD5, SSH_FP_HEX); |
|
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"); |
printf("%s %s\n", fp, comment); |
printf("%s %s\n", key_fingerprint(public), comment); |
xfree(fp); |
|
} |
} |
|
|
key_free(public); |
key_free(public); |