diff options
author | 2001-03-12 22:02:01 +0000 | |
---|---|---|
committer | 2001-03-12 22:02:01 +0000 | |
commit | 7fcff747bfdc1ad95a64ccef91486416c088a76b (patch) | |
tree | 4c71cbe990997fe26e345479b3dc0a6b282210ab /usr.bin/ssh/ssh-add.c | |
parent | Omega is now VAX_BTYP_1301. Also add an STYP for 4000 600. (diff) | |
download | wireguard-openbsd-7fcff747bfdc1ad95a64ccef91486416c088a76b.tar.xz wireguard-openbsd-7fcff747bfdc1ad95a64ccef91486416c088a76b.zip |
remove old key_fingerprint interface, s/_ex//
Diffstat (limited to 'usr.bin/ssh/ssh-add.c')
-rw-r--r-- | usr.bin/ssh/ssh-add.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/usr.bin/ssh/ssh-add.c b/usr.bin/ssh/ssh-add.c index a3e4373d2ea..923e39e6345 100644 --- a/usr.bin/ssh/ssh-add.c +++ b/usr.bin/ssh/ssh-add.c @@ -35,7 +35,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: ssh-add.c,v 1.29 2001/03/02 18:54:31 deraadt Exp $"); +RCSID("$OpenBSD: ssh-add.c,v 1.30 2001/03/12 22:02:02 markus Exp $"); #include <openssl/evp.h> @@ -205,10 +205,10 @@ add_file(AuthenticationConnection *ac, const char *filename) } void -list_identities(AuthenticationConnection *ac, int fp) +list_identities(AuthenticationConnection *ac, int do_fp) { Key *key; - char *comment; + char *comment, *fp; int had_identities = 0; int version; @@ -217,10 +217,12 @@ list_identities(AuthenticationConnection *ac, int fp) key != NULL; key = ssh_get_next_identity(ac, &comment, version)) { had_identities = 1; - if (fp) { + if (do_fp) { + fp = key_fingerprint(key, SSH_FP_MD5, + SSH_FP_HEX); printf("%d %s %s (%s)\n", - key_size(key), key_fingerprint(key), - comment, key_type(key)); + key_size(key), fp, comment, key_type(key)); + xfree(fp); } else { if (!key_write(key, stdout)) fprintf(stderr, "key_write failed"); |