diff --git a/linphone-desktop/src/app/paths/Paths.cpp b/linphone-desktop/src/app/paths/Paths.cpp index 07acbc711..6ce447349 100644 --- a/linphone-desktop/src/app/paths/Paths.cpp +++ b/linphone-desktop/src/app/paths/Paths.cpp @@ -43,7 +43,6 @@ #define PATH_ROOT_CA "/rootca.pem" #define PATH_FRIENDS_LIST "/friends.db" #define PATH_MESSAGE_HISTORY_LIST "/message-history.db" -#define PATH_ZRTP_DATA "/zrtp-lime.db" #define PATH_ZRTP_SECRETS "/zidcache" using namespace std; @@ -211,12 +210,8 @@ string Paths::getUserCertificatesDirpath () { return getWritableDirectoryPath(QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation) + PATH_USER_CERTIFICATES); } -string Paths::getZrtpDataFilepath () { - return getWritableFilePath(QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation) + PATH_ZRTP_DATA); -} - string Paths::getZrtpSecretsFilepath () { - return getWritableFilePath(QStandardPaths::writableLocation(QStandardPaths::CacheLocation) + PATH_ZRTP_SECRETS); + return getWritableFilePath(QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation) + PATH_ZRTP_SECRETS); } // ----------------------------------------------------------------------------- diff --git a/linphone-desktop/src/components/core/CoreManager.cpp b/linphone-desktop/src/components/core/CoreManager.cpp index 3a69d172e..ea4936fee 100644 --- a/linphone-desktop/src/components/core/CoreManager.cpp +++ b/linphone-desktop/src/components/core/CoreManager.cpp @@ -89,15 +89,10 @@ void CoreManager::setDatabasesPaths () { mCore->setFriendsDatabasePath(Paths::getFriendsListFilepath()); mCore->setCallLogsDatabasePath(Paths::getCallHistoryFilepath()); mCore->setChatDatabasePath(Paths::getMessageHistoryFilepath()); + mCore->setZrtpSecretsFile(Paths::getZrtpSecretsFilepath()); } void CoreManager::setOtherPaths () { - mCore->setZrtpSecretsFile(Paths::getZrtpSecretsFilepath()); - - // This one is actually a database but it MUST be set after the zrtp secrets - // as it allows automatic migration from old version(secrets, xml) to new version (data, sqlite). - mCore->setZrtpCacheDatabasePath(Paths::getZrtpDataFilepath()); - mCore->setUserCertificatesPath(Paths::getUserCertificatesDirpath()); mCore->setRootCa(Paths::getRootCaFilepath()); diff --git a/submodules/bzrtp b/submodules/bzrtp index 4c37a23c8..d4cbbbe04 160000 --- a/submodules/bzrtp +++ b/submodules/bzrtp @@ -1 +1 @@ -Subproject commit 4c37a23c805e7f08c8874d848525a720c165c906 +Subproject commit d4cbbbe04e5d47a23e584a6ddc506025d4dcd55d diff --git a/submodules/linphone b/submodules/linphone index 2637c2a15..313b60c00 160000 --- a/submodules/linphone +++ b/submodules/linphone @@ -1 +1 @@ -Subproject commit 2637c2a15e3d26720908eaa64ab6b03533979670 +Subproject commit 313b60c0047dd04ad9698b848347301c5b86f9ad