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;
}
// 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();