Commit 657d04e9 authored by Matthieu Tanon's avatar Matthieu Tanon

Fix uncaught exception using get_selfIdentityKey

parent 8686e904
......@@ -522,9 +522,14 @@ list<EncryptionParameter> LimeX3DHEncryptionEngine::getEncryptionParameters () {
const LinphoneAddress *contactAddress = linphone_proxy_config_get_contact(proxy);
IdentityAddress identityAddress = IdentityAddress(linphone_address_as_string(contactAddress));
string localDeviceId = identityAddress.asString();
vector<uint8_t> Ik;
belleSipLimeManager->get_selfIdentityKey(localDeviceId, Ik);
try {
belleSipLimeManager->get_selfIdentityKey(localDeviceId, Ik);
} catch (const exception &e) {
lInfo() << e.what() << " while setting up lime identity key for ZRTP auxiliary secret";
return {};
}
if (Ik.empty()) {
lWarning() << "No identity key available, unable to setup lime identity key for ZRTP auxiliary shared secret";
......
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