diff options
author | djm@openbsd.org <djm@openbsd.org> | 2015-01-28 23:36:00 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-01-29 00:18:56 +0100 |
commit | 9ce86c926dfa6e0635161b035e3944e611cbccf0 (patch) | |
tree | d946ba3df439153ece7857d742035a3d6adcbc98 /key.c | |
parent | upstream commit (diff) | |
download | openssh-9ce86c926dfa6e0635161b035e3944e611cbccf0.tar.xz openssh-9ce86c926dfa6e0635161b035e3944e611cbccf0.zip |
upstream commit
update to new API (key_fingerprint => sshkey_fingerprint)
check sshkey_fingerprint return values; ok markus
Diffstat (limited to 'key.c')
-rw-r--r-- | key.c | 19 |
1 files changed, 1 insertions, 18 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: key.c,v 1.126 2015/01/20 23:14:00 deraadt Exp $ */ +/* $OpenBSD: key.c,v 1.127 2015/01/28 22:36:00 djm Exp $ */ /* * placed in the public domain */ @@ -39,23 +39,6 @@ key_new_private(int type) return ret; } -u_char* -key_fingerprint_raw(const Key *k, int dgst_alg, u_int *dgst_raw_length) -{ - u_char *ret = NULL; - size_t dlen; - int r; - - if (dgst_raw_length != NULL) - *dgst_raw_length = 0; - if ((r = sshkey_fingerprint_raw(k, dgst_alg, &ret, &dlen)) != 0) - fatal("%s: %s", __func__, ssh_err(r)); - if (dlen > INT_MAX) - fatal("%s: giant len %zu", __func__, dlen); - *dgst_raw_length = dlen; - return ret; -} - int key_read(Key *ret, char **cpp) { |