File jessie-1.0.1-jdk5-build.patch of Package jessie
--- org/metastatic/jessie/provider/Context.java
+++ org/metastatic/jessie/provider/Context.java
@@ -253,6 +253,15 @@
}
}
+ // to build with JDK5
+ protected javax.net.ssl.SSLEngine engineCreateSSLEngine(String host, int port) {
+ return null;
+ }
+
+ protected javax.net.ssl.SSLEngine engineCreateSSLEngine() {
+ return null;
+ }
+
// Own methods.
// -------------------------------------------------------------------------
--- org/metastatic/jessie/provider/Session.java
+++ org/metastatic/jessie/provider/Session.java
@@ -381,4 +381,31 @@
return Util.toHexString(id, ':');
}
}
+
+ // to build with JDK5
+ public int getPeerPort() {
+ return -1;
+ }
+
+ public boolean isValid() {
+ return false;
+ }
+
+ public int getApplicationBufferSize() {
+ return 0;
+ }
+
+ public java.security.Principal getPeerPrincipal() throws SSLPeerUnverifiedException {
+ return null;
+ }
+
+ public int getPacketBufferSize()
+ {
+ return 0;
+ }
+
+ public java.security.Principal getLocalPrincipal() {
+ return null;
+ }
+
}