|
Jakub Jelen |
8dd060 |
commit c38905ba391434834da86abfc988a2b8b9b62477
|
|
Jakub Jelen |
8dd060 |
Author: djm@openbsd.org <djm@openbsd.org>
|
|
Jakub Jelen |
8dd060 |
Date: Mon Mar 14 16:20:54 2016 +0000
|
|
Jakub Jelen |
8dd060 |
|
|
Jakub Jelen |
8dd060 |
upstream commit
|
|
Jakub Jelen |
8dd060 |
|
|
Jakub Jelen |
8dd060 |
unbreak authentication using lone certificate keys in
|
|
Jakub Jelen |
8dd060 |
ssh-agent: when attempting pubkey auth with a certificate, if no separate
|
|
Jakub Jelen |
8dd060 |
private key is found among the keys then try with the certificate key itself.
|
|
Jakub Jelen |
8dd060 |
|
|
Jakub Jelen |
8dd060 |
bz#2550 reported by Peter Moody
|
|
Jakub Jelen |
8dd060 |
|
|
Jakub Jelen |
8dd060 |
Upstream-ID: f939cd76d68e6a9a3d1711b5a943d6ed1e623966
|
|
Jakub Jelen |
8dd060 |
|
|
Jakub Jelen |
8dd060 |
diff --git a/sshconnect2.c b/sshconnect2.c
|
|
Jakub Jelen |
8dd060 |
index f79c96b..1cf48a2 100644
|
|
Jakub Jelen |
8dd060 |
--- a/sshconnect2.c
|
|
Jakub Jelen |
8dd060 |
+++ b/sshconnect2.c
|
|
Jakub Jelen |
8dd060 |
@@ -1,4 +1,4 @@
|
|
Jakub Jelen |
8dd060 |
-/* $OpenBSD: sshconnect2.c,v 1.239 2016/02/23 01:34:14 djm Exp $ */
|
|
Jakub Jelen |
8dd060 |
+/* $OpenBSD: sshconnect2.c,v 1.240 2016/03/14 16:20:54 djm Exp $ */
|
|
Jakub Jelen |
8dd060 |
/*
|
|
Jakub Jelen |
8dd060 |
* Copyright (c) 2000 Markus Friedl. All rights reserved.
|
|
Jakub Jelen |
8dd060 |
* Copyright (c) 2008 Damien Miller. All rights reserved.
|
|
Jakub Jelen |
8dd060 |
@@ -1112,12 +1112,8 @@ sign_and_send_pubkey(Authctxt *authctxt, Identity *id)
|
|
Jakub Jelen |
8dd060 |
"certificate", __func__, id->filename,
|
|
Jakub Jelen |
8dd060 |
id->agent_fd != -1 ? " from agent" : "");
|
|
Jakub Jelen |
8dd060 |
} else {
|
|
Jakub Jelen |
8dd060 |
- /* XXX maybe verbose/error? */
|
|
Jakub Jelen |
8dd060 |
- debug("%s: no private key for certificate "
|
|
Jakub Jelen |
8dd060 |
+ debug("%s: no separate private key for certificate "
|
|
Jakub Jelen |
8dd060 |
"\"%s\"", __func__, id->filename);
|
|
Jakub Jelen |
8dd060 |
- free(blob);
|
|
Jakub Jelen |
8dd060 |
- buffer_free(&b);
|
|
Jakub Jelen |
8dd060 |
- return 0;
|
|
Jakub Jelen |
8dd060 |
}
|
|
Jakub Jelen |
8dd060 |
}
|
|
Jakub Jelen |
8dd060 |
|