summaryrefslogtreecommitdiffstats
path: root/key.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2014-12-04 21:47:36 +0100
committerDamien Miller <djm@mindrot.org>2014-12-04 23:29:48 +0100
commita7c762e5b2c1093542c0bc1df25ccec0b4cf479f (patch)
treea718cf5e40cf543b8369c0fbdfc478de5e8a0d50 /key.c
parentupstream commit (diff)
downloadopenssh-a7c762e5b2c1093542c0bc1df25ccec0b4cf479f.tar.xz
openssh-a7c762e5b2c1093542c0bc1df25ccec0b4cf479f.zip
upstream commit
key_in_file() wrapper is no longer used
Diffstat (limited to 'key.c')
-rw-r--r--key.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/key.c b/key.c
index 206076159..dd0f448a4 100644
--- a/key.c
+++ b/key.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: key.c,v 1.122 2014/07/22 01:18:50 dtucker Exp $ */
+/* $OpenBSD: key.c,v 1.123 2014/12/04 20:47:36 djm Exp $ */
/*
* placed in the public domain
*/
@@ -463,17 +463,3 @@ key_perm_ok(int fd, const char *filename)
return sshkey_perm_ok(fd, filename) == 0 ? 1 : 0;
}
-int
-key_in_file(Key *key, const char *filename, int strict_type)
-{
- int r;
-
- if ((r = sshkey_in_file(key, filename, strict_type)) != 0) {
- fatal_on_fatal_errors(r, __func__, SSH_ERR_LIBCRYPTO_ERROR);
- if (r == SSH_ERR_SYSTEM_ERROR && errno == ENOENT)
- return 0;
- error("%s: %s", __func__, ssh_err(r));
- return r == SSH_ERR_KEY_NOT_FOUND ? 0 : -1;
- }
- return 1;
-}