aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/crypto
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-03-12 20:58:37 +0100
committerChristian Schneppe <christian@pix-art.de>2018-03-12 20:58:37 +0100
commitf5854d238e4c8aecb5370e56301bd43015ad8ba9 (patch)
tree4fb9ac1b5741911a03a2345289945b476c14b245 /src/main/java/de/pixart/messenger/crypto
parent89927cee8ed577e8b285de26e6b7c424e83735f4 (diff)
integrate trust manager into conversations
Diffstat (limited to 'src/main/java/de/pixart/messenger/crypto')
-rw-r--r--src/main/java/de/pixart/messenger/crypto/DomainHostnameVerifier.java10
-rw-r--r--src/main/java/de/pixart/messenger/crypto/XmppDomainVerifier.java2
2 files changed, 10 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/crypto/DomainHostnameVerifier.java b/src/main/java/de/pixart/messenger/crypto/DomainHostnameVerifier.java
new file mode 100644
index 000000000..0ceb650f3
--- /dev/null
+++ b/src/main/java/de/pixart/messenger/crypto/DomainHostnameVerifier.java
@@ -0,0 +1,10 @@
+package de.pixart.messenger.crypto;
+
+import javax.net.ssl.HostnameVerifier;
+import javax.net.ssl.SSLSession;
+
+public interface DomainHostnameVerifier extends HostnameVerifier {
+
+ boolean verify(String domain, String hostname, SSLSession sslSession);
+
+} \ No newline at end of file
diff --git a/src/main/java/de/pixart/messenger/crypto/XmppDomainVerifier.java b/src/main/java/de/pixart/messenger/crypto/XmppDomainVerifier.java
index e811a0f39..3f3c358a7 100644
--- a/src/main/java/de/pixart/messenger/crypto/XmppDomainVerifier.java
+++ b/src/main/java/de/pixart/messenger/crypto/XmppDomainVerifier.java
@@ -25,8 +25,6 @@ import java.util.List;
import javax.net.ssl.SSLSession;
-import de.duenndns.ssl.DomainHostnameVerifier;
-
public class XmppDomainVerifier implements DomainHostnameVerifier {
private static final String LOGTAG = "XmppDomainVerifier";