Gentoo Archives: gentoo-commits

From: Craig Andrews <candrews@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/proxytunnel/files/
Date: Mon, 14 Sep 2020 13:30:21
Message-Id: 1600090176.406d33d2b508573272d148738d42f5d10d7c0abb.candrews@gentoo
1 commit: 406d33d2b508573272d148738d42f5d10d7c0abb
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Sun Sep 13 13:02:58 2020 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 14 13:29:36 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=406d33d2
7
8 net-misc/proxytunnel: remove unused patch(es)
9
10 Package-Manager: Portage-3.0.6, Repoman-3.0.1
11 Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/17523
13 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
14
15 .../files/proxytunnel-1.9.1-gcc-10.patch | 128 ---------------------
16 .../proxytunnel/files/proxytunnel-allowTLS.patch | 22 ----
17 2 files changed, 150 deletions(-)
18
19 diff --git a/net-misc/proxytunnel/files/proxytunnel-1.9.1-gcc-10.patch b/net-misc/proxytunnel/files/proxytunnel-1.9.1-gcc-10.patch
20 deleted file mode 100644
21 index a42b8424cca..00000000000
22 --- a/net-misc/proxytunnel/files/proxytunnel-1.9.1-gcc-10.patch
23 +++ /dev/null
24 @@ -1,128 +0,0 @@
25 -https://github.com/proxytunnel/proxytunnel/pull/43
26 -
27 -From 517650724dc478dd35ac7c7953b4eb700ccb7273 Mon Sep 17 00:00:00 2001
28 -From: Paul Howarth <paul@××××××××.org>
29 -Date: Wed, 22 Jan 2020 21:44:01 +0000
30 -Subject: [PATCH] Fix global variable declarations/definitions for GCC 10
31 - compatibility
32 -
33 -This boils down to declaring global variables as "extern" in header files
34 -and defining them in just one place.
35 -
36 -See https://www.gnu.org/software/gcc/gcc-10/porting_to.html
37 ----
38 - Makefile | 1 +
39 - globals.c | 41 +++++++++++++++++++++++++++++++++++++++++
40 - ntlm.h | 4 ++--
41 - proxytunnel.h | 16 ++++++++--------
42 - 4 files changed, 52 insertions(+), 10 deletions(-)
43 - create mode 100644 globals.c
44 -
45 -diff --git a/Makefile b/Makefile
46 -index 57328e8..ecdaa5f 100644
47 ---- a/Makefile
48 -+++ b/Makefile
49 -@@ -63,6 +63,7 @@ OBJ = proxytunnel.o \
50 - readpassphrase.o \
51 - messages.o \
52 - cmdline.o \
53 -+ globals.o \
54 - ntlm.o \
55 - ptstream.o
56 -
57 -diff --git a/globals.c b/globals.c
58 -new file mode 100644
59 -index 0000000..fe19db4
60 ---- /dev/null
61 -+++ b/globals.c
62 -@@ -0,0 +1,41 @@
63 -+/* Proxytunnel - (C) 2001-2008 Jos Visser / Mark Janssen */
64 -+/* Contact: josv@×××.nl / maniac@××××××.nl */
65 -+
66 -+/*
67 -+ * This program is free software; you can redistribute it and/or modify
68 -+ * it under the terms of the GNU General Public License as published by
69 -+ * the Free Software Foundation; either version 2 of the License, or
70 -+ * (at your option) any later version.
71 -+ *
72 -+ * This program is distributed in the hope that it will be useful,
73 -+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
74 -+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
75 -+ * GNU General Public License for more details.
76 -+ *
77 -+ * You should have received a copy of the GNU General Public License
78 -+ * along with this program; if not, write to the Free Software
79 -+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
80 -+ */
81 -+
82 -+/* globals.c */
83 -+
84 -+#include "proxytunnel.h"
85 -+
86 -+/* Globals */
87 -+char *program_name; /* Guess what? */
88 -+int i_am_daemon; /* Also... */
89 -+
90 -+PTSTREAM *stunnel; /* stream representing the socket from us to proxy */
91 -+PTSTREAM *std; /* stream representing stdin/stdout */
92 -+
93 -+/*
94 -+ * All the command line options
95 -+ */
96 -+struct gengetopt_args_info args_info;
97 -+
98 -+char buf[SIZE]; /* Data transfer buffer */
99 -+
100 -+char ntlm_type1_buf[160];
101 -+char ntlm_type3_buf[4096];
102 -+
103 -+// vim:noexpandtab:ts=4
104 -diff --git a/ntlm.h b/ntlm.h
105 -index f919368..01a6434 100644
106 ---- a/ntlm.h
107 -+++ b/ntlm.h
108 -@@ -26,8 +26,8 @@ void build_ntlm2_response();
109 -
110 - extern int ntlm_challenge;
111 -
112 --char ntlm_type1_buf[160];
113 --char ntlm_type3_buf[4096];
114 -+extern char ntlm_type1_buf[160];
115 -+extern char ntlm_type3_buf[4096];
116 -
117 -
118 - // Below are the flag definitions.
119 -diff --git a/proxytunnel.h b/proxytunnel.h
120 -index 593cd7e..aa09a4b 100644
121 ---- a/proxytunnel.h
122 -+++ b/proxytunnel.h
123 -@@ -46,21 +46,21 @@ char * readpassphrase(const char *, char *, size_t, int);
124 - char * getpass_x(const char *format, ...);
125 -
126 - /* Globals */
127 --int read_fd; /* The file descriptor to read from */
128 --int write_fd; /* The file destriptor to write to */
129 --char *program_name; /* Guess what? */
130 --int i_am_daemon; /* Also... */
131 -+extern int read_fd; /* The file descriptor to read from */
132 -+extern int write_fd; /* The file descriptor to write to */
133 -+extern char *program_name; /* Guess what? */
134 -+extern int i_am_daemon; /* Also... */
135 -
136 --PTSTREAM *stunnel; /* stream representing the socket from us to proxy */
137 --PTSTREAM *std; /* stream representing stdin/stdout */
138 -+extern PTSTREAM *stunnel; /* stream representing the socket from us to proxy */
139 -+extern PTSTREAM *std; /* stream representing stdin/stdout */
140 -
141 - /*
142 - * All the command line options
143 - */
144 --struct gengetopt_args_info args_info;
145 -+extern struct gengetopt_args_info args_info;
146 -
147 - #define SIZE 65536
148 --char buf[SIZE]; /* Data transfer buffer */
149 -+extern char buf[SIZE]; /* Data transfer buffer */
150 -
151 - /*
152 - * Small MAX macro
153
154 diff --git a/net-misc/proxytunnel/files/proxytunnel-allowTLS.patch b/net-misc/proxytunnel/files/proxytunnel-allowTLS.patch
155 deleted file mode 100644
156 index b6865a73fc5..00000000000
157 --- a/net-misc/proxytunnel/files/proxytunnel-allowTLS.patch
158 +++ /dev/null
159 @@ -1,22 +0,0 @@
160 -From 2a26224b5ff103d2b8e2ff7be56e616d1ecde1f4 Mon Sep 17 00:00:00 2001
161 -From: wicher <wicher@×××××××.eu>
162 -Date: Sun, 26 Apr 2015 13:07:13 +0200
163 -Subject: [PATCH] Allow TLS
164 -
165 ----
166 - ptstream.c | 2 +-
167 - 1 file changed, 1 insertion(+), 1 deletion(-)
168 -
169 -diff --git a/ptstream.c b/ptstream.c
170 -index 4c87c80..6d55137 100644
171 ---- a/ptstream.c
172 -+++ b/ptstream.c
173 -@@ -151,7 +151,7 @@ int stream_enable_ssl(PTSTREAM *pts) {
174 -
175 - /* Initialise the connection */
176 - SSLeay_add_ssl_algorithms();
177 -- meth = SSLv3_client_method();
178 -+ meth = SSLv23_client_method();
179 - SSL_load_error_strings();
180 -
181 - ctx = SSL_CTX_new (meth);