Commit 4ef6398d authored by johan's avatar johan
Browse files

fix windows build

parent 84375745
......@@ -280,7 +280,7 @@ namespace lime {
std::shared_ptr<DR<Curve>> DRSession{X3DH_init_receiver_session(X3DH_initMessage, senderDeviceId)}; // would just throw an exception in case of failure
DRSessions.clear();
DRSessions.push_back(DRSession);
} catch (BctbxException &e) {
} catch (BctbxException const &e) {
LIME_LOGE<<"Fail to create the DR session from the X3DH init message : "<<e;
return lime::PeerDeviceStatus::fail;
}
......@@ -302,6 +302,7 @@ namespace lime {
#ifdef EC25519_ENABLED
/* These extern templates are defined in lime_localStorage.cpp */
extern template bool Lime<C255>::create_user();
extern template bool Lime<C255>::activate_user();
extern template void Lime<C255>::get_SelfIdentityKey();
extern template void Lime<C255>::X3DH_generate_SPk(X<C255, lime::Xtype::publicKey> &publicSPk, DSA<C255, DSAtype::signature> &SPk_sig, uint32_t &SPk_id, const bool load);
extern template void Lime<C255>::X3DH_generate_OPks(std::vector<X<C255, lime::Xtype::publicKey>> &publicOPks, std::vector<uint32_t> &OPk_ids, const uint16_t OPk_number, const bool load);
......@@ -326,6 +327,7 @@ namespace lime {
#ifdef EC448_ENABLED
/* These extern templates are defined in lime_localStorage.cpp */
extern template bool Lime<C448>::create_user();
extern template bool Lime<C448>::activate_user();
extern template void Lime<C448>::get_SelfIdentityKey();
extern template void Lime<C448>::X3DH_generate_SPk(X<C448, lime::Xtype::publicKey> &publicSPk, DSA<C448, DSAtype::signature> &SPk_sig, uint32_t &SPk_id, const bool load);
extern template void Lime<C448>::X3DH_generate_OPks(std::vector<X<C448, lime::Xtype::publicKey>> &publicOPks, std::vector<uint32_t> &OPk_ids, const uint16_t OPk_number, const bool load);
......
......@@ -617,7 +617,7 @@ namespace lime {
} else {
decryptStatus = DRSession->ratchetDecrypt(DRmessage, AD, randomSeed, payloadDirectEncryption);
}
} catch (BctbxException &e) { // any bctbx Exception is just considered as decryption failed (it shall occurs in case of maximum skipped keys reached or inconsistency ib the direct Encryption flag)
} catch (BctbxException const &e) { // any bctbx Exception is just considered as decryption failed (it shall occurs in case of maximum skipped keys reached or inconsistency ib the direct Encryption flag)
LIME_LOGW<<"Double Ratchet session failed to decrypt message and raised an exception saying : "<<e;
decryptStatus = false; // lets keep trying with other sessions if provided
}
......
......@@ -90,7 +90,7 @@ namespace lime {
LimeManager::load_user(user, localDeviceId);
return true; // If we are able to load the user, it means it exists
} catch (BctbxException const &e) { // we get an exception if the user is not found
} catch (BctbxException const &) { // we get an exception if the user is not found
// swallow it and return false
return false;
}
......
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