Debian Codegraph @

ssl-proxies-tomcat/src/main/patches/jglobus-tomcat6.patch

raw
1 diff --git a/ssl-proxies-tomcat/src/main/java/org/globus/gsi/tomcat/GlobusSSLImplementation.java b/ssl-proxies-tomcat/src/main/java/org/globus/gsi/tomcat/GlobusSSLImplementation.java
2 index 96fed75..1741218 100644
3 --- a/ssl-proxies-tomcat/src/main/java/org/globus/gsi/tomcat/GlobusSSLImplementation.java
4 +++ b/ssl-proxies-tomcat/src/main/java/org/globus/gsi/tomcat/GlobusSSLImplementation.java
5 @@ -1,7 +1,6 @@
6 package org.globus.gsi.tomcat;
7
8
9 -import org.apache.tomcat.util.net.AbstractEndpoint;
10 import org.apache.tomcat.util.net.ServerSocketFactory;
11 import org.apache.tomcat.util.net.jsse.JSSEImplementation;
12
13 @@ -15,8 +14,8 @@ public class GlobusSSLImplementation extends JSSEImplementation {
14 return "GlobusSSLImplementation";
15 }
16
17 - public ServerSocketFactory getServerSocketFactory(AbstractEndpoint endpoint) {
18 - return new GlobusSSLSocketFactory(endpoint);
19 + public ServerSocketFactory getServerSocketFactory() {
20 + return new GlobusSSLSocketFactory();
21 }
22
23 }
24 diff --git a/ssl-proxies-tomcat/src/main/java/org/globus/gsi/tomcat/GlobusSSLSocketFactory.java b/ssl-proxies-tomcat/src/main/java/org/globus/gsi/tomcat/GlobusSSLSocketFactory.java
25 index 3718fa3..49cd674 100644
26 --- a/ssl-proxies-tomcat/src/main/java/org/globus/gsi/tomcat/GlobusSSLSocketFactory.java
27 +++ b/ssl-proxies-tomcat/src/main/java/org/globus/gsi/tomcat/GlobusSSLSocketFactory.java
28 @@ -15,7 +15,6 @@
29
30 package org.globus.gsi.tomcat;
31
32 -import org.apache.tomcat.util.net.AbstractEndpoint;
33 import org.apache.tomcat.util.net.jsse.JSSESocketFactory;
34 import org.globus.gsi.X509ProxyCertPathParameters;
35 import org.globus.gsi.jsse.GlobusSSLHelper;
36 @@ -47,17 +46,6 @@ public class GlobusSSLSocketFactory extends JSSESocketFactory {
37 Security.addProvider(new GlobusProvider());
38 }
39
40 - protected Object crlLocation;
41 - protected Object signingPolicyLocation;
42 - protected Object rejectLimitedProxyEntry;
43 -
44 - public GlobusSSLSocketFactory(AbstractEndpoint endpoint) {
45 - super(endpoint);
46 - crlLocation = endpoint.getAttribute("crlLocation");
47 - signingPolicyLocation = endpoint.getAttribute("signingPolicyLocation");
48 - rejectLimitedProxyEntry = endpoint.getAttribute("rejectLimitedProxy");
49 - }
50 -
51 /**
52 * Create a Globus trust manager which supports proxy certificates. This requires that the CRL store, and
53 * signing policy store be configured.
54 @@ -74,15 +62,18 @@ public class GlobusSSLSocketFactory extends JSSESocketFactory {
55 KeyStore trustStore = getTrustStore(keystoreType, keystoreProvider);
56
57 CertStore crlStore = null;
58 + Object crlLocation = attributes.get("crlLocation");
59 if (crlLocation != null) {
60 crlStore = GlobusSSLHelper.findCRLStore((String) crlLocation);
61 }
62
63 + Object signingPolicyLocation = attributes.get("signingPolicyLocation");
64 ResourceSigningPolicyStore policyStore = null;
65 if (signingPolicyLocation != null) {
66 policyStore = Stores.getSigningPolicyStore((String) signingPolicyLocation);
67 }
68
69 + Object rejectLimitedProxyEntry = attributes.get("rejectLimitedProxy");
70 boolean rejectLimitedProxy = rejectLimitedProxyEntry != null &&
71 Boolean.parseBoolean((String) rejectLimitedProxyEntry);
72