1 |
vapier 14/10/29 19:57:54 |
2 |
|
3 |
Added: wget-1.16-fix-proxy-test-race.patch |
4 |
wget-1.16-openssl-no-ssl3.patch |
5 |
Log: |
6 |
Add some build/test fixes from upstream. |
7 |
|
8 |
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key D2E96200) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 net-misc/wget/files/wget-1.16-fix-proxy-test-race.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wget/files/wget-1.16-fix-proxy-test-race.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wget/files/wget-1.16-fix-proxy-test-race.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: wget-1.16-fix-proxy-test-race.patch |
17 |
=================================================================== |
18 |
From 3eff3ad69a46364475e1f4abdf9412cfa87e3d6c Mon Sep 17 00:00:00 2001 |
19 |
From: =?UTF-8?q?Tim=20R=C3=BChsen?= <tim.ruehsen@×××.de> |
20 |
Date: Tue, 28 Oct 2014 11:40:34 +0100 |
21 |
Subject: [PATCH] synchronize client and server in Test-proxied-https-auth.px |
22 |
|
23 |
--- |
24 |
tests/ChangeLog | 4 ++++ |
25 |
tests/Test-proxied-https-auth.px | 36 +++++++++++++++++++++++++----------- |
26 |
2 files changed, 29 insertions(+), 11 deletions(-) |
27 |
|
28 |
2014-10-28 Tim Ruehsen <tim.ruehsen@×××.de> |
29 |
|
30 |
* tests/Test-proxied-https-auth.px: synchronize client and server |
31 |
|
32 |
diff --git a/tests/Test-proxied-https-auth.px b/tests/Test-proxied-https-auth.px |
33 |
index cc987ff..272003f 100755 |
34 |
--- a/tests/Test-proxied-https-auth.px |
35 |
+++ b/tests/Test-proxied-https-auth.px |
36 |
@@ -49,12 +49,15 @@ sub get_request { |
37 |
} |
38 |
|
39 |
sub do_server { |
40 |
+ my ($synch_callback) = @_; |
41 |
my $alrm = alarm 10; |
42 |
- |
43 |
my $s = $SOCKET; |
44 |
my $conn; |
45 |
my $rqst; |
46 |
my $rspn; |
47 |
+ |
48 |
+ $synch_callback->(); |
49 |
+ |
50 |
for my $expect_inner_auth (0, 1) { |
51 |
$conn = $s->accept; |
52 |
$rqst = $conn->get_request; |
53 |
@@ -90,7 +93,7 @@ sub do_server { |
54 |
Connection => 'close' |
55 |
]); |
56 |
$rspn->protocol('HTTP/1.0'); |
57 |
- print $rspn->as_string; |
58 |
+ print STDERR $rspn->as_string; |
59 |
print $conn $rspn->as_string; |
60 |
} else { |
61 |
die "No proxied auth\n" unless $rqst->header('Authorization'); |
62 |
@@ -100,9 +103,9 @@ sub do_server { |
63 |
'Connection' => 'close', |
64 |
], "foobarbaz\n"); |
65 |
$rspn->protocol('HTTP/1.0'); |
66 |
- print "=====\n"; |
67 |
- print $rspn->as_string; |
68 |
- print "\n=====\n"; |
69 |
+ print STDERR "=====\n"; |
70 |
+ print STDERR $rspn->as_string; |
71 |
+ print STDERR "\n=====\n"; |
72 |
print $conn $rspn->as_string; |
73 |
} |
74 |
$conn->close; |
75 |
@@ -113,18 +116,29 @@ sub do_server { |
76 |
} |
77 |
|
78 |
sub fork_server { |
79 |
- my $pid = fork; |
80 |
- die "Couldn't fork" if ($pid < 0); |
81 |
- return $pid if $pid; |
82 |
+ pipe(FROM_CHILD, TO_PARENT) or die "Cannot create pipe!"; |
83 |
+ select((select(TO_PARENT), $| = 1)[0]); |
84 |
+ |
85 |
+ my $pid = fork(); |
86 |
+ if ($pid < 0) { |
87 |
+ die "Cannot fork"; |
88 |
+ } elsif ($pid == 0) { |
89 |
+ # child |
90 |
+ close FROM_CHILD; |
91 |
+ do_server(sub { print TO_PARENT "SYNC\n"; close TO_PARENT }); |
92 |
+ } else { |
93 |
+ # parent |
94 |
+ close TO_PARENT; |
95 |
+ chomp(my $line = <FROM_CHILD>); |
96 |
+ close FROM_CHILD; |
97 |
+ } |
98 |
|
99 |
- &do_server; |
100 |
- exit; |
101 |
+ return $pid; |
102 |
} |
103 |
|
104 |
system ('rm -f needs-auth.txt'); |
105 |
my $pid = &fork_server; |
106 |
|
107 |
-sleep 1; |
108 |
my $cmdline = $WgetTest::WGETPATH . " --user=fiddle-dee-dee" |
109 |
. " --password=Dodgson -e https_proxy=localhost:{{port}}" |
110 |
. " --no-check-certificate" |
111 |
-- |
112 |
2.1.2 |
113 |
|
114 |
|
115 |
|
116 |
|
117 |
1.1 net-misc/wget/files/wget-1.16-openssl-no-ssl3.patch |
118 |
|
119 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wget/files/wget-1.16-openssl-no-ssl3.patch?rev=1.1&view=markup |
120 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wget/files/wget-1.16-openssl-no-ssl3.patch?rev=1.1&content-type=text/plain |
121 |
|
122 |
Index: wget-1.16-openssl-no-ssl3.patch |
123 |
=================================================================== |
124 |
From c81e3df2bc4d06835791427d888d4ae04a2384bc Mon Sep 17 00:00:00 2001 |
125 |
From: Peter Meiser <meiser@×××××××××××.de> |
126 |
Date: Wed, 29 Oct 2014 19:26:28 +0100 |
127 |
Subject: [PATCH] Add guard for OpenSSL without SSLv3 |
128 |
|
129 |
--- |
130 |
src/ChangeLog | 5 +++++ |
131 |
src/openssl.c | 2 ++ |
132 |
2 files changed, 7 insertions(+) |
133 |
|
134 |
2014-10-29 Peter Meiser <meiser@×××××××××××.de> (tiny change) |
135 |
|
136 |
* openssl.c (ssl_init) [! OPENSSL_NO_SSL3]: Add guard for OpenSSL |
137 |
without SSLv3. |
138 |
|
139 |
diff --git a/src/openssl.c b/src/openssl.c |
140 |
index e24954a..6f11650 100644 |
141 |
--- a/src/openssl.c |
142 |
+++ b/src/openssl.c |
143 |
@@ -208,9 +208,11 @@ ssl_init (void) |
144 |
meth = SSLv2_client_method (); |
145 |
break; |
146 |
#endif |
147 |
+#ifndef OPENSSL_NO_SSL3 |
148 |
case secure_protocol_sslv3: |
149 |
meth = SSLv3_client_method (); |
150 |
break; |
151 |
+#endif |
152 |
case secure_protocol_auto: |
153 |
case secure_protocol_pfs: |
154 |
case secure_protocol_tlsv1: |
155 |
-- |
156 |
2.1.2 |