Project

General

Profile

patch

Apply with -p1 from within the lighttpd root directory. - falemagn, 2016-04-15 19:27

 
1
diff -ru0 lighttpd-1.4.39/src/connections.c lighttpd-1.4.39.mine/src/connections.c
2
--- lighttpd-1.4.39/src/connections.c	2016-04-15 21:19:51.114813301 +0200
3
+++ lighttpd-1.4.39.mine/src/connections.c	2016-04-15 20:15:14.943724164 +0200
4
@@ -281,0 +282 @@
5
+#ifdef SSL_R_TLSV1_ALERT_UNKNOWN_CA				
6
@@ -284,0 +286 @@
7
+#endif				
8
diff -ru0 lighttpd-1.4.39/src/network.c lighttpd-1.4.39.mine/src/network.c
9
--- lighttpd-1.4.39/src/network.c	2016-04-15 21:19:51.114813301 +0200
10
+++ lighttpd-1.4.39.mine/src/network.c	2016-04-15 20:50:52.084316412 +0200
11
@@ -627,0 +628 @@
12
+	BIGNUM *dh_p, *dh_g, *dh_q;
13
@@ -823,4 +824,7 @@
14
-			dh->p = BN_bin2bn(dh1024_p,sizeof(dh1024_p), NULL);
15
-			dh->g = BN_bin2bn(dh1024_g,sizeof(dh1024_g), NULL);
16
-			dh->length = 160;
17
-			if ((dh->p == NULL) || (dh->g == NULL)) {
18
+
19
+			DH_get0_pqg(dh, &dh_p, &dh_q, &dh_g);
20
+
21
+            dh_p = BN_bin2bn(dh1024_p,sizeof(dh1024_p), NULL);
22
+			dh_g = BN_bin2bn(dh1024_g,sizeof(dh1024_g), NULL);
23
+
24
+			if ((dh_p == NULL) || (dh_g == NULL)) {
25
@@ -830,0 +835,3 @@
26
+			
27
+			DH_set0_pqg(dh, dh_p, dh_q, dh_g);
28
+			DH_set_length(dh, 160);			
29
diff -ru0 lighttpd-1.4.39/src/response.c lighttpd-1.4.39.mine/src/response.c
30
--- lighttpd-1.4.39/src/response.c	2016-04-15 21:19:51.114813301 +0200
31
+++ lighttpd-1.4.39.mine/src/response.c	2016-04-15 20:03:27.172214213 +0200
32
@@ -169 +169 @@
33
-			(const char *)xe->value->data, xe->value->length
34
+			(const char *)X509_NAME_ENTRY_get_data(xe)->data, X509_NAME_ENTRY_get_data(xe)->length