mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-04-28 13:56:21 +00:00
Use /usr/share/linphone/rootca.pem if there is no /etc/ssl/certs directory on linux
This commit is contained in:
parent
4a0443364f
commit
fa1c36dddb
1 changed files with 6 additions and 0 deletions
|
|
@ -867,7 +867,13 @@ static void certificates_config_read(LinphoneCore *lc)
|
||||||
{
|
{
|
||||||
const char *rootca;
|
const char *rootca;
|
||||||
#ifdef __linux
|
#ifdef __linux
|
||||||
|
struct stat sb;
|
||||||
rootca=lp_config_get_string(lc->config,"sip","root_ca", "/etc/ssl/certs");
|
rootca=lp_config_get_string(lc->config,"sip","root_ca", "/etc/ssl/certs");
|
||||||
|
if (stat("/etc/ssl/certs", &sb) != 0 || !S_ISDIR(sb.st_mode))
|
||||||
|
{
|
||||||
|
ms_warning("/etc/ssl/certs not found, using %s instead", ROOT_CA_FILE);
|
||||||
|
rootca=lp_config_get_string(lc->config,"sip","root_ca", ROOT_CA_FILE);
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
rootca=lp_config_get_string(lc->config,"sip","root_ca", ROOT_CA_FILE);
|
rootca=lp_config_get_string(lc->config,"sip","root_ca", ROOT_CA_FILE);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue