From 9182a300c5d0f6f715502c8be693080386bd3235 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sat, 8 May 2021 10:35:07 +0200 Subject: [PATCH] report fingerprint missmatch as securiy exception --- .../eu/siacs/conversations/xmpp/jingle/OmemoVerification.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");