]> sjero.net Git - linphone/commitdiff
TLS certificates' issue on MacOSX fixed
authorSylvain Berfini <Sylvain.Berfini@belledonne-communications.com>
Thu, 13 Oct 2011 09:23:24 +0000 (11:23 +0200)
committerSylvain Berfini <Sylvain.Berfini@belledonne-communications.com>
Thu, 13 Oct 2011 09:23:24 +0000 (11:23 +0200)
coreapi/linphonecore.c

index e8c159a12de94412104a0084065c02ac85fbd607..898253f72db8304fab35d2bbb66107a5c923d7d4 100644 (file)
@@ -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);