You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
linphone-desktop/SOURCES/0001-Use-system-CA-Bundle.p...

40 lines
1.6 KiB

From 4a02bc4493de58fa3ca3ba9945aca338384f5037 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jani=20V=C3=A4limaa?= <wally@mageia.org>
Date: Mon, 1 Jan 2024 12:25:18 +0200
Subject: [PATCH] Use system CA Bundle
---
linphone-app/src/app/paths/Paths.cpp | 2 +-
linphone-app/src/utils/Constants.hpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/linphone-app/src/app/paths/Paths.cpp b/linphone-app/src/app/paths/Paths.cpp
index 47abe5c..320a240 100644
--- a/linphone-app/src/app/paths/Paths.cpp
+++ b/linphone-app/src/app/paths/Paths.cpp
@@ -163,7 +163,7 @@ static inline QString getAppFactoryConfigFilePath () {
}
static inline QString getAppRootCaFilePath () {
- QString rootca = getAppPackageDataDirPath() + Constants::PathRootCa;
+ QString rootca = Constants::PathRootCa;
if(Paths::filePathExists(rootca.toStdString())){// Packaged
return rootca;
}
diff --git a/linphone-app/src/utils/Constants.hpp b/linphone-app/src/utils/Constants.hpp
index d79ea2b..be3b238 100644
--- a/linphone-app/src/utils/Constants.hpp
+++ b/linphone-app/src/utils/Constants.hpp
@@ -140,7 +140,7 @@ public:
static constexpr char PathConfig[] = "/linphonerc";
static constexpr char PathDatabase[] = "/linphone.db";
static constexpr char PathFactoryConfig[] = "/" EXECUTABLE_NAME "/linphonerc-factory";
- static constexpr char PathRootCa[] = "/linphone/rootca.pem";
+ static constexpr char PathRootCa[] = "/etc/pki/tls/cert.pem";
static constexpr char PathFriendsList[] = "/friends.db";
static constexpr char PathLimeDatabase[] = "/x3dh.c25519.sqlite3";
static constexpr char PathMessageHistoryList[] = "/message-history.db";
--
2.43.0