summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/authfile.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2010-11-29 18:57:04 +0000
committermarkus <markus@openbsd.org>2010-11-29 18:57:04 +0000
commit3af81217bdbea626c356d903f2cee9c549b4a9df (patch)
treed0d6dcfe8ebde3b64425820c75ac224f54e6d98d /usr.bin/ssh/authfile.c
parentregen (diff)
downloadwireguard-openbsd-3af81217bdbea626c356d903f2cee9c549b4a9df.tar.xz
wireguard-openbsd-3af81217bdbea626c356d903f2cee9c549b4a9df.zip
correctly load comment for encrypted rsa1 keys;
report/fix Joachim Schipper; ok djm@
Diffstat (limited to 'usr.bin/ssh/authfile.c')
-rw-r--r--usr.bin/ssh/authfile.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/authfile.c b/usr.bin/ssh/authfile.c
index 0f9d326008f..edf6a5982db 100644
--- a/usr.bin/ssh/authfile.c
+++ b/usr.bin/ssh/authfile.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: authfile.c,v 1.86 2010/11/21 10:57:07 djm Exp $ */
+/* $OpenBSD: authfile.c,v 1.87 2010/11/29 18:57:04 markus Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -694,8 +694,9 @@ key_load_private(const char *filename, const char *passphrase,
*commentp = xstrdup(filename);
} else {
key_free(pub);
+ /* key_parse_public_rsa1() has already loaded the comment */
prv = key_parse_private_type(&buffer, KEY_RSA1, passphrase,
- commentp);
+ NULL);
}
buffer_free(&buffer);
return prv;