Skip to content

Commit

Permalink
Merge pull request jglobus#73 from bpalak/master
Browse files Browse the repository at this point in the history
Merging Bartek's changes to trunk.
  • Loading branch information
smarru committed Aug 27, 2013
2 parents 0f548f5 + 9f61d2b commit 3e04691
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import org.apache.commons.httpclient.HostConfiguration;

public class ExtendedHostConfiguration extends HostConfiguration {
public class ExtendedHostConfiguration extends HostConfiguration implements Cloneable{

private String [] paramList;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ public String getCodeExplanation(int code) {
else return "";
}


protected int code = UNSPECIFIED;

public ClientException(int code, String message) {
super(code, message);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ public String getCodeExplanation(int code) {
}


protected int code = UNSPECIFIED;

//this message is not just explanation of the code.
//it is a custom message informing of particular
//conditions of the error.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ public String getCodeExplanation(int code) {
}


protected int code = UNSPECIFIED;

//this message is not just explanation of the code.
//it is a custom message informing of particular
//conditions of the error.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ public String getCodeExplanation(int code) {
}


protected int code = UNSPECIFIED;

//this message is not just explanation of the code.
//it is a custom message informing of particular
//conditions of the error.
Expand Down
3 changes: 2 additions & 1 deletion gss/src/main/java/org/globus/net/GSIHttpURLConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,10 @@ public synchronized void connect()
((GssSocket)socket).setAuthorization(authorization);
}

public void disconnect() {
public synchronized void disconnect() {
if (socket != null) {
try { socket.close(); } catch (Exception e) {}
socket = null;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ public synchronized void reload(String locations) {
Iterator iter = caCerts.iterator();
while (iter.hasNext()) {
X509Certificate cert = (X509Certificate) iter.next();
if (!newCertSubjectDNMap.containsKey(cert.getSubjectDN().toString()));
if (!newCertSubjectDNMap.containsKey(cert.getSubjectDN().toString()))
newCertSubjectDNMap.put(cert.getSubjectDN().toString(), cert);
}
} catch (Exception e) {
Expand Down
2 changes: 2 additions & 0 deletions ssl-proxies/src/main/java/org/globus/tools/ProxyInit.java
Original file line number Diff line number Diff line change
Expand Up @@ -666,9 +666,11 @@ public void loadKey(String arg) {

} catch(IOException e) {
System.err.println("Error: Failed to load key: " + arg);
System.err.println("Error: " + e.getMessage());
System.exit(-1);
} catch(GeneralSecurityException e) {
System.err.println("Error: Wrong pass phrase");
System.err.println("Error: " + e.getMessage());
if (debug) {
e.printStackTrace();
}
Expand Down

0 comments on commit 3e04691

Please sign in to comment.