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-keysign.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-keysign.c')
-rw-r--r-- | usr.bin/ssh/ssh-keysign.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/ssh/ssh-keysign.c b/usr.bin/ssh/ssh-keysign.c index ed8d0b75e91..0196b60ffba 100644 --- a/usr.bin/ssh/ssh-keysign.c +++ b/usr.bin/ssh/ssh-keysign.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-keysign.c,v 1.46 2015/01/15 09:40:00 djm Exp $ */ +/* $OpenBSD: ssh-keysign.c,v 1.47 2015/01/28 22:36:00 djm Exp $ */ /* * Copyright (c) 2002 Markus Friedl. All rights reserved. * @@ -255,8 +255,9 @@ main(int argc, char **argv) } } if (!found) { - fp = sshkey_fingerprint(key, options.fingerprint_hash, - SSH_FP_DEFAULT); + if ((fp = sshkey_fingerprint(key, options.fingerprint_hash, + SSH_FP_DEFAULT)) == NULL) + fatal("%s: sshkey_fingerprint failed", __func__); fatal("no matching hostkey found for key %s %s", sshkey_type(key), fp ? fp : ""); } |