summaryrefslogtreecommitdiff
path: root/authfile.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2015-02-23 16:55:51 +0000
committerDamien Miller <djm@mindrot.org>2015-02-24 03:59:09 +1100
commit5248429b5ec524d0a65507cff0cdd6e0cb99effd (patch)
tree2d26d76adee29811f0ecc70bfa869c2c35b910a2 /authfile.c
parente94e4b07ef2eaead38b085a60535df9981cdbcdb (diff)
downloadopenssh-git-5248429b5ec524d0a65507cff0cdd6e0cb99effd.tar.gz
upstream commit
add an XXX to remind me to improve sshkey_load_public
Diffstat (limited to 'authfile.c')
-rw-r--r--authfile.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/authfile.c b/authfile.c
index 7d7f45ea..3a81786c 100644
--- a/authfile.c
+++ b/authfile.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: authfile.c,v 1.110 2015/01/20 23:14:00 deraadt Exp $ */
+/* $OpenBSD: authfile.c,v 1.111 2015/02/23 16:55:51 djm Exp $ */
/*
* Copyright (c) 2000, 2013 Markus Friedl. All rights reserved.
*
@@ -343,6 +343,8 @@ sshkey_load_public(const char *filename, struct sshkey **keyp, char **commentp)
if (commentp != NULL)
*commentp = NULL;
+ /* XXX should load file once and attempt to parse each format */
+
if ((fd = open(filename, O_RDONLY)) < 0)
goto skip;
#ifdef WITH_SSH1
@@ -394,6 +396,7 @@ sshkey_load_public(const char *filename, struct sshkey **keyp, char **commentp)
return 0;
}
sshkey_free(pub);
+
return r;
}