diff options
author | 2015-01-28 22:36:00 +0000 | |
---|---|---|
committer | 2015-01-28 22:36:00 +0000 | |
commit | 2b6695d0b425f1bd31a714c11bfcb8af1d37622e (patch) | |
tree | 027add16a07c5ff46c52e2fb387caf555f7dfcb6 /usr.bin/ssh/ssh-add.c | |
parent | - Add PCH2 and PCH LPT to the list of chips capable of only 9K jumbos. (diff) | |
download | wireguard-openbsd-2b6695d0b425f1bd31a714c11bfcb8af1d37622e.tar.xz wireguard-openbsd-2b6695d0b425f1bd31a714c11bfcb8af1d37622e.zip |
update to new API (key_fingerprint => sshkey_fingerprint)
check sshkey_fingerprint return values;
ok markus
Diffstat (limited to 'usr.bin/ssh/ssh-add.c')
-rw-r--r-- | usr.bin/ssh/ssh-add.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-add.c b/usr.bin/ssh/ssh-add.c index 9f1101a2c1c..740fa8f712e 100644 --- a/usr.bin/ssh/ssh-add.c +++ b/usr.bin/ssh/ssh-add.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-add.c,v 1.117 2015/01/16 06:40:12 deraadt Exp $ */ +/* $OpenBSD: ssh-add.c,v 1.118 2015/01/28 22:36:00 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -367,7 +367,8 @@ list_identities(int agent_fd, int do_fp) fp = sshkey_fingerprint(idlist->keys[i], fingerprint_hash, SSH_FP_DEFAULT); printf("%d %s %s (%s)\n", - sshkey_size(idlist->keys[i]), fp, + sshkey_size(idlist->keys[i]), + fp == NULL ? "(null)" : fp, idlist->comments[i], sshkey_type(idlist->keys[i])); free(fp); |