diff options
author | djm@openbsd.org <djm@openbsd.org> | 2015-01-28 22:36:00 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-01-29 10:18:56 +1100 |
commit | 9ce86c926dfa6e0635161b035e3944e611cbccf0 (patch) | |
tree | d946ba3df439153ece7857d742035a3d6adcbc98 /sshconnect2.c | |
parent | 9125525c37bf73ad3ee4025520889d2ce9d10f29 (diff) |
upstream commit
update to new API (key_fingerprint => sshkey_fingerprint)
check sshkey_fingerprint return values; ok markus
Diffstat (limited to 'sshconnect2.c')
-rw-r--r-- | sshconnect2.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sshconnect2.c b/sshconnect2.c index 8da4d70dd..48882e3a5 100644 --- a/sshconnect2.c +++ b/sshconnect2.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshconnect2.c,v 1.221 2015/01/20 20:16:21 markus Exp $ */ | 1 | /* $OpenBSD: sshconnect2.c,v 1.222 2015/01/28 22:36:00 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
4 | * Copyright (c) 2008 Damien Miller. All rights reserved. | 4 | * Copyright (c) 2008 Damien Miller. All rights reserved. |
@@ -591,7 +591,9 @@ input_userauth_pk_ok(int type, u_int32_t seq, void *ctxt) | |||
591 | key->type, pktype); | 591 | key->type, pktype); |
592 | goto done; | 592 | goto done; |
593 | } | 593 | } |
594 | fp = sshkey_fingerprint(key, options.fingerprint_hash, SSH_FP_DEFAULT); | 594 | if ((fp = sshkey_fingerprint(key, options.fingerprint_hash, |
595 | SSH_FP_DEFAULT)) == NULL) | ||
596 | goto done; | ||
595 | debug2("input_userauth_pk_ok: fp %s", fp); | 597 | debug2("input_userauth_pk_ok: fp %s", fp); |
596 | free(fp); | 598 | free(fp); |
597 | 599 | ||
@@ -1009,7 +1011,9 @@ sign_and_send_pubkey(Authctxt *authctxt, Identity *id) | |||
1009 | int have_sig = 1; | 1011 | int have_sig = 1; |
1010 | char *fp; | 1012 | char *fp; |
1011 | 1013 | ||
1012 | fp = key_fingerprint(id->key, options.fingerprint_hash, SSH_FP_DEFAULT); | 1014 | if ((fp = sshkey_fingerprint(id->key, options.fingerprint_hash, |
1015 | SSH_FP_DEFAULT)) == NULL) | ||
1016 | return 0; | ||
1013 | debug3("sign_and_send_pubkey: %s %s", key_type(id->key), fp); | 1017 | debug3("sign_and_send_pubkey: %s %s", key_type(id->key), fp); |
1014 | free(fp); | 1018 | free(fp); |
1015 | 1019 | ||