Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iNPUTmice/Conversations.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2021-05-08 11:35:07 +0300
committerDaniel Gultsch <daniel@gultsch.de>2021-05-08 11:35:07 +0300
commit9182a300c5d0f6f715502c8be693080386bd3235 (patch)
tree0ca1ca80c3a92627825a60146f7770483763f451
parentfaa4c87b5f861de5999a6128cfb3c4ec5d343128 (diff)
report fingerprint missmatch as securiy exception
-rw-r--r--src/main/java/eu/siacs/conversations/xmpp/jingle/OmemoVerification.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/xmpp/jingle/OmemoVerification.java b/src/main/java/eu/siacs/conversations/xmpp/jingle/OmemoVerification.java
index 0be0f2cf7..48ff0672c 100644
--- a/src/main/java/eu/siacs/conversations/xmpp/jingle/OmemoVerification.java
+++ b/src/main/java/eu/siacs/conversations/xmpp/jingle/OmemoVerification.java
@@ -55,7 +55,7 @@ public class OmemoVerification {
throw new IllegalStateException("No session fingerprint has been previously provided");
}
if (!sessionFingerprint.equals(this.sessionFingerprint)) {
- throw new IllegalStateException("Session Fingerprints did not match");
+ throw new SecurityException("Session Fingerprints did not match");
}
if (this.deviceId == null) {
throw new IllegalStateException("No Device Id has been previously provided");