Commit c513b5b6 authored by Johan Pascal's avatar Johan Pascal

zrtp cache migration performed by bzrtp and not linphone

- done in place, path to an other file is not needed anymore
parent 9836c7ba
......@@ -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);
}
// -----------------------------------------------------------------------------
......
......@@ -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());
......
bzrtp @ d4cbbbe0
Subproject commit 4c37a23c805e7f08c8874d848525a720c165c906
Subproject commit d4cbbbe04e5d47a23e584a6ddc506025d4dcd55d
linphone @ 313b60c0
Subproject commit 2637c2a15e3d26720908eaa64ab6b03533979670
Subproject commit 313b60c0047dd04ad9698b848347301c5b86f9ad
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