consider Config.REQUIRE_RTP_VERIFICATION on decrypt. fail as future
This commit is contained in:
parent
ddf597e0d3
commit
337aa4a110
|
@ -322,8 +322,10 @@ public class JingleRtpConnection extends AbstractJingleConnection implements Web
|
||||||
Log.d(Config.LOGTAG, id.account.getJid().asBareJid() + ": received verifiable DTLS fingerprint via " + omemoVerification);
|
Log.d(Config.LOGTAG, id.account.getJid().asBareJid() + ": received verifiable DTLS fingerprint via " + omemoVerification);
|
||||||
return omemoVerifiedPayload.getPayload();
|
return omemoVerifiedPayload.getPayload();
|
||||||
}, MoreExecutors.directExecutor());
|
}, MoreExecutors.directExecutor());
|
||||||
} else if (expectVerification) {
|
} else if (Config.REQUIRE_RTP_VERIFICATION || expectVerification) {
|
||||||
throw new SecurityException("DTLS fingerprint was unexpectedly not verifiable");
|
return Futures.immediateFailedFuture(
|
||||||
|
new SecurityException("DTLS fingerprint was unexpectedly not verifiable")
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
return Futures.immediateFuture(receivedContentMap);
|
return Futures.immediateFuture(receivedContentMap);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue