Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/openssh/files/
Date: Thu, 28 Dec 2017 15:58:16
Message-Id: 1514476685.016688f8c6ff873aa32a1294b61dc871187a85f5.polynomial-c@gentoo
1 commit: 016688f8c6ff873aa32a1294b61dc871187a85f5
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Tue Dec 26 07:19:49 2017 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 28 15:58:05 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=016688f8
7
8 net-misc/openssh: remove unused patches
9
10 Closes: https://github.com/gentoo/gentoo/pull/6637
11
12 .../files/openssh-7.5_p1-hpn-x509-10.1-glue.patch | 63 -------
13 .../files/openssh-7.5p1-x509-libressl.patch | 202 ---------------------
14 2 files changed, 265 deletions(-)
15
16 diff --git a/net-misc/openssh/files/openssh-7.5_p1-hpn-x509-10.1-glue.patch b/net-misc/openssh/files/openssh-7.5_p1-hpn-x509-10.1-glue.patch
17 deleted file mode 100644
18 index e55a8b14c57..00000000000
19 --- a/net-misc/openssh/files/openssh-7.5_p1-hpn-x509-10.1-glue.patch
20 +++ /dev/null
21 @@ -1,63 +0,0 @@
22 -diff -ur a/0003-Add-support-for-the-multi-threaded-AES-CTR-cipher.patch b/0003-Add-support-for-the-multi-threaded-AES-CTR-cipher.patch
23 ---- a/0003-Add-support-for-the-multi-threaded-AES-CTR-cipher.patch 2017-03-27 13:31:01.816551100 -0700
24 -+++ b/0003-Add-support-for-the-multi-threaded-AES-CTR-cipher.patch 2017-03-27 13:51:03.894805846 -0700
25 -@@ -40,7 +40,7 @@
26 - @@ -44,7 +44,7 @@ CC=@CC@
27 - LD=@LD@
28 - CFLAGS=@CFLAGS@
29 -- CPPFLAGS=-I. -I$(srcdir) @CPPFLAGS@ $(PATHS) @DEFS@
30 -+ CPPFLAGS=-I. -I$(srcdir) @CPPFLAGS@ @LDAP_CPPFLAGS@ $(PATHS) @DEFS@
31 - -LIBS=@LIBS@
32 - +LIBS=@LIBS@ -lpthread
33 - K5LIBS=@K5LIBS@
34 -@@ -1023,6 +1023,3 @@
35 - do_authenticated(authctxt);
36 -
37 - /* The connection has been terminated. */
38 ----
39 --2.12.0
40 --
41 -diff -ur a/0004-support-dynamically-sized-receive-buffers.patch b/0004-support-dynamically-sized-receive-buffers.patch
42 ---- a/0004-support-dynamically-sized-receive-buffers.patch 2017-03-27 13:31:01.816551100 -0700
43 -+++ b/0004-support-dynamically-sized-receive-buffers.patch 2017-03-27 13:49:44.513498976 -0700
44 -@@ -926,9 +926,9 @@
45 - @@ -526,10 +553,10 @@ send_client_banner(int connection_out, int minor1)
46 - /* Send our own protocol version identification. */
47 - if (compat20) {
48 -- xasprintf(&client_version_string, "SSH-%d.%d-%.100s\r\n",
49 --- PROTOCOL_MAJOR_2, PROTOCOL_MINOR_2, SSH_VERSION);
50 --+ PROTOCOL_MAJOR_2, PROTOCOL_MINOR_2, SSH_RELEASE);
51 -+ xasprintf(&client_version_string, "SSH-%d.%d-%.100s PKIX[%s]\r\n",
52 -+- PROTOCOL_MAJOR_2, PROTOCOL_MINOR_2, SSH_VERSION, PACKAGE_VERSION);
53 -++ PROTOCOL_MAJOR_2, PROTOCOL_MINOR_2, SSH_RELEASE, PACKAGE_VERSION);
54 - } else {
55 - xasprintf(&client_version_string, "SSH-%d.%d-%.100s\n",
56 - - PROTOCOL_MAJOR_1, minor1, SSH_VERSION);
57 -@@ -943,11 +943,11 @@
58 - @@ -367,7 +367,7 @@ sshd_exchange_identification(struct ssh *ssh, int sock_in, int sock_out)
59 - char remote_version[256]; /* Must be at least as big as buf. */
60 -
61 -- xasprintf(&server_version_string, "SSH-%d.%d-%.100s%s%s\r\n",
62 --- PROTOCOL_MAJOR_2, PROTOCOL_MINOR_2, SSH_VERSION,
63 --+ PROTOCOL_MAJOR_2, PROTOCOL_MINOR_2, SSH_RELEASE,
64 -+ xasprintf(&server_version_string, "SSH-%d.%d-%.100s%s%s%s%s",
65 -+- major, minor, SSH_VERSION, comment,
66 -++ major, minor, SSH_RELEASE, comment,
67 - *options.version_addendum == '\0' ? "" : " ",
68 -- options.version_addendum);
69 -+ options.version_addendum, newline);
70 -
71 - @@ -1020,6 +1020,8 @@ server_listen(void)
72 - int ret, listen_sock, on = 1;
73 -@@ -1008,10 +1008,6 @@
74 - @@ -3,4 +3,5 @@
75 - #define SSH_VERSION "OpenSSH_7.5"
76 -
77 -- #define SSH_PORTABLE "p1"
78 ---#define SSH_RELEASE SSH_VERSION SSH_PORTABLE
79 -+-#define SSH_RELEASE PACKAGE_STRING ", " SSH_VERSION "p1"
80 - +#define SSH_HPN "-hpn14v12"
81 - +#define SSH_RELEASE SSH_VERSION SSH_PORTABLE SSH_HPN
82 ----
83 --2.12.0
84 --
85
86 diff --git a/net-misc/openssh/files/openssh-7.5p1-x509-libressl.patch b/net-misc/openssh/files/openssh-7.5p1-x509-libressl.patch
87 deleted file mode 100644
88 index b4f36a51318..00000000000
89 --- a/net-misc/openssh/files/openssh-7.5p1-x509-libressl.patch
90 +++ /dev/null
91 @@ -1,202 +0,0 @@
92 -diff -urN openssh-7.5p1.orig/a_utf8.c openssh-7.5p1/a_utf8.c
93 ---- openssh-7.5p1.orig/a_utf8.c 1970-01-01 00:00:00.000000000 +0000
94 -+++ openssh-7.5p1/a_utf8.c 2017-03-30 17:38:25.179532110 +0000
95 -@@ -0,0 +1,186 @@
96 -+/*
97 -+ * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
98 -+ *
99 -+ * Licensed under the OpenSSL license (the "License"). You may not use
100 -+ * this file except in compliance with the License. You can obtain a copy
101 -+ * in the file LICENSE in the source distribution or at
102 -+ * https://www.openssl.org/source/license.html
103 -+ */
104 -+
105 -+#include <stdio.h>
106 -+
107 -+/* UTF8 utilities */
108 -+
109 -+/*-
110 -+ * This parses a UTF8 string one character at a time. It is passed a pointer
111 -+ * to the string and the length of the string. It sets 'value' to the value of
112 -+ * the current character. It returns the number of characters read or a
113 -+ * negative error code:
114 -+ * -1 = string too short
115 -+ * -2 = illegal character
116 -+ * -3 = subsequent characters not of the form 10xxxxxx
117 -+ * -4 = character encoded incorrectly (not minimal length).
118 -+ */
119 -+
120 -+int UTF8_getc(const unsigned char *str, int len, unsigned long *val)
121 -+{
122 -+ const unsigned char *p;
123 -+ unsigned long value;
124 -+ int ret;
125 -+ if (len <= 0)
126 -+ return 0;
127 -+ p = str;
128 -+
129 -+ /* Check syntax and work out the encoded value (if correct) */
130 -+ if ((*p & 0x80) == 0) {
131 -+ value = *p++ & 0x7f;
132 -+ ret = 1;
133 -+ } else if ((*p & 0xe0) == 0xc0) {
134 -+ if (len < 2)
135 -+ return -1;
136 -+ if ((p[1] & 0xc0) != 0x80)
137 -+ return -3;
138 -+ value = (*p++ & 0x1f) << 6;
139 -+ value |= *p++ & 0x3f;
140 -+ if (value < 0x80)
141 -+ return -4;
142 -+ ret = 2;
143 -+ } else if ((*p & 0xf0) == 0xe0) {
144 -+ if (len < 3)
145 -+ return -1;
146 -+ if (((p[1] & 0xc0) != 0x80)
147 -+ || ((p[2] & 0xc0) != 0x80))
148 -+ return -3;
149 -+ value = (*p++ & 0xf) << 12;
150 -+ value |= (*p++ & 0x3f) << 6;
151 -+ value |= *p++ & 0x3f;
152 -+ if (value < 0x800)
153 -+ return -4;
154 -+ ret = 3;
155 -+ } else if ((*p & 0xf8) == 0xf0) {
156 -+ if (len < 4)
157 -+ return -1;
158 -+ if (((p[1] & 0xc0) != 0x80)
159 -+ || ((p[2] & 0xc0) != 0x80)
160 -+ || ((p[3] & 0xc0) != 0x80))
161 -+ return -3;
162 -+ value = ((unsigned long)(*p++ & 0x7)) << 18;
163 -+ value |= (*p++ & 0x3f) << 12;
164 -+ value |= (*p++ & 0x3f) << 6;
165 -+ value |= *p++ & 0x3f;
166 -+ if (value < 0x10000)
167 -+ return -4;
168 -+ ret = 4;
169 -+ } else if ((*p & 0xfc) == 0xf8) {
170 -+ if (len < 5)
171 -+ return -1;
172 -+ if (((p[1] & 0xc0) != 0x80)
173 -+ || ((p[2] & 0xc0) != 0x80)
174 -+ || ((p[3] & 0xc0) != 0x80)
175 -+ || ((p[4] & 0xc0) != 0x80))
176 -+ return -3;
177 -+ value = ((unsigned long)(*p++ & 0x3)) << 24;
178 -+ value |= ((unsigned long)(*p++ & 0x3f)) << 18;
179 -+ value |= ((unsigned long)(*p++ & 0x3f)) << 12;
180 -+ value |= (*p++ & 0x3f) << 6;
181 -+ value |= *p++ & 0x3f;
182 -+ if (value < 0x200000)
183 -+ return -4;
184 -+ ret = 5;
185 -+ } else if ((*p & 0xfe) == 0xfc) {
186 -+ if (len < 6)
187 -+ return -1;
188 -+ if (((p[1] & 0xc0) != 0x80)
189 -+ || ((p[2] & 0xc0) != 0x80)
190 -+ || ((p[3] & 0xc0) != 0x80)
191 -+ || ((p[4] & 0xc0) != 0x80)
192 -+ || ((p[5] & 0xc0) != 0x80))
193 -+ return -3;
194 -+ value = ((unsigned long)(*p++ & 0x1)) << 30;
195 -+ value |= ((unsigned long)(*p++ & 0x3f)) << 24;
196 -+ value |= ((unsigned long)(*p++ & 0x3f)) << 18;
197 -+ value |= ((unsigned long)(*p++ & 0x3f)) << 12;
198 -+ value |= (*p++ & 0x3f) << 6;
199 -+ value |= *p++ & 0x3f;
200 -+ if (value < 0x4000000)
201 -+ return -4;
202 -+ ret = 6;
203 -+ } else
204 -+ return -2;
205 -+ *val = value;
206 -+ return ret;
207 -+}
208 -+
209 -+/*
210 -+ * This takes a character 'value' and writes the UTF8 encoded value in 'str'
211 -+ * where 'str' is a buffer containing 'len' characters. Returns the number of
212 -+ * characters written or -1 if 'len' is too small. 'str' can be set to NULL
213 -+ * in which case it just returns the number of characters. It will need at
214 -+ * most 6 characters.
215 -+ */
216 -+
217 -+int UTF8_putc(unsigned char *str, int len, unsigned long value)
218 -+{
219 -+ if (!str)
220 -+ len = 6; /* Maximum we will need */
221 -+ else if (len <= 0)
222 -+ return -1;
223 -+ if (value < 0x80) {
224 -+ if (str)
225 -+ *str = (unsigned char)value;
226 -+ return 1;
227 -+ }
228 -+ if (value < 0x800) {
229 -+ if (len < 2)
230 -+ return -1;
231 -+ if (str) {
232 -+ *str++ = (unsigned char)(((value >> 6) & 0x1f) | 0xc0);
233 -+ *str = (unsigned char)((value & 0x3f) | 0x80);
234 -+ }
235 -+ return 2;
236 -+ }
237 -+ if (value < 0x10000) {
238 -+ if (len < 3)
239 -+ return -1;
240 -+ if (str) {
241 -+ *str++ = (unsigned char)(((value >> 12) & 0xf) | 0xe0);
242 -+ *str++ = (unsigned char)(((value >> 6) & 0x3f) | 0x80);
243 -+ *str = (unsigned char)((value & 0x3f) | 0x80);
244 -+ }
245 -+ return 3;
246 -+ }
247 -+ if (value < 0x200000) {
248 -+ if (len < 4)
249 -+ return -1;
250 -+ if (str) {
251 -+ *str++ = (unsigned char)(((value >> 18) & 0x7) | 0xf0);
252 -+ *str++ = (unsigned char)(((value >> 12) & 0x3f) | 0x80);
253 -+ *str++ = (unsigned char)(((value >> 6) & 0x3f) | 0x80);
254 -+ *str = (unsigned char)((value & 0x3f) | 0x80);
255 -+ }
256 -+ return 4;
257 -+ }
258 -+ if (value < 0x4000000) {
259 -+ if (len < 5)
260 -+ return -1;
261 -+ if (str) {
262 -+ *str++ = (unsigned char)(((value >> 24) & 0x3) | 0xf8);
263 -+ *str++ = (unsigned char)(((value >> 18) & 0x3f) | 0x80);
264 -+ *str++ = (unsigned char)(((value >> 12) & 0x3f) | 0x80);
265 -+ *str++ = (unsigned char)(((value >> 6) & 0x3f) | 0x80);
266 -+ *str = (unsigned char)((value & 0x3f) | 0x80);
267 -+ }
268 -+ return 5;
269 -+ }
270 -+ if (len < 6)
271 -+ return -1;
272 -+ if (str) {
273 -+ *str++ = (unsigned char)(((value >> 30) & 0x1) | 0xfc);
274 -+ *str++ = (unsigned char)(((value >> 24) & 0x3f) | 0x80);
275 -+ *str++ = (unsigned char)(((value >> 18) & 0x3f) | 0x80);
276 -+ *str++ = (unsigned char)(((value >> 12) & 0x3f) | 0x80);
277 -+ *str++ = (unsigned char)(((value >> 6) & 0x3f) | 0x80);
278 -+ *str = (unsigned char)((value & 0x3f) | 0x80);
279 -+ }
280 -+ return 6;
281 -+}
282 -diff -urN openssh-7.5p1.orig/Makefile.in openssh-7.5p1/Makefile.in
283 ---- openssh-7.5p1.orig/Makefile.in 2017-03-30 17:33:30.983830629 +0000
284 -+++ openssh-7.5p1/Makefile.in 2017-03-30 17:39:28.392905858 +0000
285 -@@ -74,7 +74,7 @@
286 - @OCSP_ON@OCSP_OBJS=ssh-ocsp.o
287 - @OCSP_OFF@OCSP_OBJS=
288 -
289 --SSHX509_OBJS=ssh-x509.o ssh-xkalg.o x509_nm_cmp.o key-eng.o
290 -+SSHX509_OBJS=ssh-x509.o ssh-xkalg.o x509_nm_cmp.o key-eng.o a_utf8.o
291 - X509STORE_OBJS=x509store.o $(LDAP_OBJS)
292 -
293 - TARGETS=ssh$(EXEEXT) sshd$(EXEEXT) ssh-add$(EXEEXT) ssh-keygen$(EXEEXT) ssh-keyscan${EXEEXT} ssh-keysign${EXEEXT} ssh-pkcs11-helper$(EXEEXT) ssh-agent$(EXEEXT) scp$(EXEEXT) sftp-server$(EXEEXT) sftp$(EXEEXT)