From ee75282fac7b9ff731b5bae9d3c1900e3f2f0b10 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Thu, 13 Oct 2011 11:23:24 +0200 Subject: [PATCH] TLS certificates' issue on MacOSX fixed --- coreapi/linphonecore.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index e8c159a12..898253f72 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -514,7 +514,11 @@ static void sip_config_read(LinphoneCore *lc) ms_free(contact); } +#ifdef HAVE_GTK_OSX + sal_root_ca(lc->sal, lp_config_get_string(lc->config,"sip","root_ca", "/opt/local/share/linphone/rootca.pem")); +#else sal_root_ca(lc->sal, lp_config_get_string(lc->config,"sip","root_ca", "/etc/ssl/certs")); +#endif tmp=lp_config_get_int(lc->config,"sip","guess_hostname",1); linphone_core_set_guess_hostname(lc,tmp);