projects
/
org.ibex.net.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f025bde
)
premature SSL closure should -- by default -- not be an exception
author
adam
<adam@megacz.com>
Fri, 3 Sep 2004 00:45:33 +0000
(
00:45
+0000)
committer
adam
<adam@megacz.com>
Fri, 3 Sep 2004 00:45:33 +0000
(
00:45
+0000)
darcs-hash:
20040903004533
-5007d-
66a79b76ddeb522ff99bdf45d4f3c62ff3850856
.gz
src/org/ibex/net/SSL.java
patch
|
blob
|
history
diff --git
a/src/org/ibex/net/SSL.java
b/src/org/ibex/net/SSL.java
index
04519cd
..
672ba11
100644
(file)
--- a/
src/org/ibex/net/SSL.java
+++ b/
src/org/ibex/net/SSL.java
@@
-199,7
+199,7
@@
public class SSL extends Socket {
throw new Exn("Certificate is for " + certs[0].getCN() + " not " + hostname);
verifyCerts(certs);
} catch(Exn e) {
throw new Exn("Certificate is for " + certs[0].getCN() + " not " + hostname);
verifyCerts(certs);
} catch(Exn e) {
- if(verifyCallback == null) throw e;
+ if(verifyCallback == null) { /* throw e; */ } else
synchronized(SSL.class) {
if(!verifyCallback.checkCerts(certs,hostname,e)) throw e;
}
synchronized(SSL.class) {
if(!verifyCallback.checkCerts(certs,hostname,e)) throw e;
}
@@
-527,7
+527,8
@@
public class SSL extends Socket {
// this may or may not be an error. it is up to the application protocol
closed = true;
super.close();
// this may or may not be an error. it is up to the application protocol
closed = true;
super.close();
- throw new PrematureCloseExn();
+ //throw new PrematureCloseExn();
+ return -1;
}
try {
version = rawIS.readShort();
}
try {
version = rawIS.readShort();