summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2016-04-28 01:46:08 +0100
committerColin Watson <cjwatson@debian.org>2016-04-28 01:51:47 +0100
commit6d7593fbdec7235d9d21506860513ba43ef3df2f (patch)
treee18507525889b022031e5daa0996e87d108e38d7 /debian/patches
parent8590fd4848ae41b97726d7147daae271a3ab5063 (diff)
parent43a633de1cabe77e652125dac394a99ad9cac3b4 (diff)
Backport upstream patch to unbreak authentication using lone certificate keys in ssh-agent: when attempting pubkey auth with a certificate, if no separate private key is found among the keys then try with the certificate key itself (thanks, Paul Querna; LP: #1575961).
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/series1
-rw-r--r--debian/patches/unbreak-certificate-auth.patch46
2 files changed, 47 insertions, 0 deletions
diff --git a/debian/patches/series b/debian/patches/series
index b5c9fb392..d2d89669f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -26,3 +26,4 @@ sigstop.patch
26systemd-readiness.patch 26systemd-readiness.patch
27debian-config.patch 27debian-config.patch
28CVE-2015-8325.patch 28CVE-2015-8325.patch
29unbreak-certificate-auth.patch
diff --git a/debian/patches/unbreak-certificate-auth.patch b/debian/patches/unbreak-certificate-auth.patch
new file mode 100644
index 000000000..cbf7c1800
--- /dev/null
+++ b/debian/patches/unbreak-certificate-auth.patch
@@ -0,0 +1,46 @@
1From 43a633de1cabe77e652125dac394a99ad9cac3b4 Mon Sep 17 00:00:00 2001
2From: "djm@openbsd.org" <djm@openbsd.org>
3Date: Mon, 14 Mar 2016 16:20:54 +0000
4Subject: upstream commit
5
6unbreak authentication using lone certificate keys in
7 ssh-agent: when attempting pubkey auth with a certificate, if no separate
8 private key is found among the keys then try with the certificate key itself.
9
10bz#2550 reported by Peter Moody
11
12Upstream-ID: f939cd76d68e6a9a3d1711b5a943d6ed1e623966
13
14Origin: upstream, https://anongit.mindrot.org/openssh.git/commit/?id=c38905ba391434834da86abfc988a2b8b9b62477
15Bug-Ubuntu: https://bugs.launchpad.net/bugs/1575961
16Last-Update: 2016-04-28
17
18Patch-Name: unbreak-certificate-auth.patch
19---
20 sshconnect2.c | 8 ++------
21 1 file changed, 2 insertions(+), 6 deletions(-)
22
23diff --git a/sshconnect2.c b/sshconnect2.c
24index b452eae..40facda 100644
25--- a/sshconnect2.c
26+++ b/sshconnect2.c
27@@ -1,4 +1,4 @@
28-/* $OpenBSD: sshconnect2.c,v 1.239 2016/02/23 01:34:14 djm Exp $ */
29+/* $OpenBSD: sshconnect2.c,v 1.240 2016/03/14 16:20:54 djm Exp $ */
30 /*
31 * Copyright (c) 2000 Markus Friedl. All rights reserved.
32 * Copyright (c) 2008 Damien Miller. All rights reserved.
33@@ -1224,12 +1224,8 @@ sign_and_send_pubkey(Authctxt *authctxt, Identity *id)
34 "certificate", __func__, id->filename,
35 id->agent_fd != -1 ? " from agent" : "");
36 } else {
37- /* XXX maybe verbose/error? */
38- debug("%s: no private key for certificate "
39+ debug("%s: no separate private key for certificate "
40 "\"%s\"", __func__, id->filename);
41- free(blob);
42- buffer_free(&b);
43- return 0;
44 }
45 }
46