Commit 9d3bac56 authored by Matthieu Tanon's avatar Matthieu Tanon
Browse files

Set faulty device to unsafe on security alert

parent be36e1ce
......@@ -722,6 +722,14 @@ void ClientGroupChatRoom::onSecurityAlert (const shared_ptr<ConferenceSecurityEv
LinphoneChatRoom *cr = d->getCChatRoom();
_linphone_chat_room_notify_security_alert(cr, L_GET_C_BACK_PTR(event));
// Try to set the faulty device PeerDeviceStatus to unsafe
if (getCore()->limeV2Enabled()) {
LimeV2 *limeV2Engine = static_cast<LimeV2 *>(getCore()->getEncryptionEngine());
// TODO has no effect if faulty device is unkown to LIMEv2
limeV2Engine->getLimeManager()->set_peerDeviceStatus(event->getFaultyDevice().asString(), lime::PeerDeviceStatus::unsafe);
}
}
void ClientGroupChatRoom::onSubjectChanged (const shared_ptr<ConferenceSubjectEvent> &event, bool isFullState) {
......
......@@ -3513,7 +3513,7 @@ void MediaSessionPrivate::propagateEncryptionChanged () {
// Get LIMEv2 context
LimeV2 *limeV2Engine;
if (proxy && linphone_core_lime_v2_enabled(linphone_proxy_config_get_core(proxy))) {
limeV2Engine = static_cast<LimeV2*>(q->getCore()->getEncryptionEngine());
limeV2Engine = static_cast<LimeV2 *>(q->getCore()->getEncryptionEngine());
} else {
lWarning() << "LIMEv2 disabled or proxy config unavailable, unable to set peer identity verified status";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment