blob: b6b3437aceaa5c658645e49d597fd929991308ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
Index: src/main/net/sourceforge/jtds/ssl/SocketFactories.java
===================================================================
RCS file: /cvsroot/jtds/jtds/src/main/net/sourceforge/jtds/ssl/SocketFactories.java,v
retrieving revision 1.7
diff -u -r1.7 SocketFactories.java
--- src/main/net/sourceforge/jtds/ssl/SocketFactories.java 28 Apr 2005 14:29:30 -0000 1.7
+++ src/main/net/sourceforge/jtds/ssl/SocketFactories.java 7 May 2007 18:36:12 -0000
@@ -29,9 +29,9 @@
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
-import com.sun.net.ssl.SSLContext;
-import com.sun.net.ssl.TrustManager;
-import com.sun.net.ssl.X509TrustManager;
+import javax.net.ssl.SSLContext;
+import javax.net.ssl.TrustManager;
+import javax.net.ssl.X509TrustManager;
import net.sourceforge.jtds.util.Logger;
@@ -184,17 +184,13 @@
return new X509Certificate[0];
}
- public boolean isClientTrusted(X509Certificate[] chain) {
- return true;
- }
+ public void checkClientTrusted(X509Certificate[] chain, String authType) {}
- public boolean isServerTrusted(X509Certificate[] chain) {
- return true;
- }
+ public void checkServerTrusted(X509Certificate[] chain, String authType) {}
};
return new X509TrustManager[]{tm};
}
}
-}
\ No newline at end of file
+}
|