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 (from parent 1:
5df0f44
)
remove dependency on Swing
master
author
adam
<adam@megacz.com>
Sun, 21 Jun 2009 23:50:33 +0000
(23:50 +0000)
committer
adam
<adam@megacz.com>
Sun, 21 Jun 2009 23:50:33 +0000
(23:50 +0000)
darcs-hash:
20090621235033
-5007d-
79fa27e7d1901a50e6cd84dc4c49b9d464c762ef
.gz
src/org/ibex/net/ssl/SwingVerifyCallback.java
patch
|
blob
|
history
diff --git
a/src/org/ibex/net/ssl/SwingVerifyCallback.java
b/src/org/ibex/net/ssl/SwingVerifyCallback.java
index
b1250c6
..
d82c2d1
100644
(file)
--- a/
src/org/ibex/net/ssl/SwingVerifyCallback.java
+++ b/
src/org/ibex/net/ssl/SwingVerifyCallback.java
@@
-11,11
+11,11
@@
import java.awt.*;
import org.ibex.net.SSL;
import org.ibex.crypto.*;
import org.ibex.net.SSL;
import org.ibex.crypto.*;
-public class SwingVerifyCallback extends JDialog implements SSL.VerifyCallback {
- private Component owner;
+public class SwingVerifyCallback /*extends JDialog*/ implements SSL.VerifyCallback {
+ //private Component owner;
- public SwingVerifyCallback(Component owner) {
- this.owner = owner;
+ public SwingVerifyCallback(/*Component*/Object owner) {
+ //this.owner = owner;
}
/*
super(owner,"Certificate Verification",true);
}
/*
super(owner,"Certificate Verification",true);
@@
-58,6
+58,7
@@
public class SwingVerifyCallback extends JDialog implements SSL.VerifyCallback {
}
public synchronized boolean checkCerts(X509.Certificate[] certs, String hostname, SSL.Exn exn) {
}
public synchronized boolean checkCerts(X509.Certificate[] certs, String hostname, SSL.Exn exn) {
+ /*
final boolean[] ret = new boolean[1];
JTextArea ta = new JTextArea();
ta.append("Subject: " + certs[0].subject + "\n");
final boolean[] ret = new boolean[1];
JTextArea ta = new JTextArea();
ta.append("Subject: " + certs[0].subject + "\n");
@@
-98,6
+99,8
@@
public class SwingVerifyCallback extends JDialog implements SSL.VerifyCallback {
}
}
return ret[0];
}
}
return ret[0];
+ */
+ return false;
}
}
}
}