summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--authfile.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 7c7297731..44e45eb8a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -34,6 +34,10 @@
34 Pass through ssh command-line flags and options when doing remote-remote 34 Pass through ssh command-line flags and options when doing remote-remote
35 transfers, e.g. to enable agent forwarding which is particularly useful 35 transfers, e.g. to enable agent forwarding which is particularly useful
36 in this case; bz#1837 ok dtucker@ 36 in this case; bz#1837 ok dtucker@
37 - markus@cvs.openbsd.org 2010/11/29 18:57:04
38 [authfile.c]
39 correctly load comment for encrypted rsa1 keys;
40 report/fix Joachim Schipper; ok djm@
37 41
3820101124 4220101124
39 - (dtucker) [platform.c session.c] Move the getluid call out of session.c and 43 - (dtucker) [platform.c session.c] Move the getluid call out of session.c and
diff --git a/authfile.c b/authfile.c
index f75c273fc..f2aec267a 100644
--- a/authfile.c
+++ b/authfile.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: authfile.c,v 1.86 2010/11/21 10:57:07 djm Exp $ */ 1/* $OpenBSD: authfile.c,v 1.87 2010/11/29 18:57:04 markus Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -710,8 +710,9 @@ key_load_private(const char *filename, const char *passphrase,
710 *commentp = xstrdup(filename); 710 *commentp = xstrdup(filename);
711 } else { 711 } else {
712 key_free(pub); 712 key_free(pub);
713 /* key_parse_public_rsa1() has already loaded the comment */
713 prv = key_parse_private_type(&buffer, KEY_RSA1, passphrase, 714 prv = key_parse_private_type(&buffer, KEY_RSA1, passphrase,
714 commentp); 715 NULL);
715 } 716 }
716 buffer_free(&buffer); 717 buffer_free(&buffer);
717 return prv; 718 return prv;