From f4692392a4e24c8b685a191a54acf608772c98de Mon Sep 17 00:00:00 2001 From: Danmei Chen Date: Tue, 4 Dec 2018 12:51:31 +0100 Subject: [PATCH] set root ca (need be removed when merging with master --- Classes/LinphoneManager.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index 8656d1a02..fa225a499 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -2067,6 +2067,8 @@ void popup_link_account_cb(LinphoneAccountCreator *creator, LinphoneAccountCreat linphone_core_reload_ms_plugins(theLinphoneCore, NULL); [self migrationAllPost]; + /* set the CA file no matter what, since the remote provisioning could be hitting an HTTPS server */ + linphone_core_set_root_ca(theLinphoneCore, [LinphoneManager bundleFile:@"rootca.pem"].UTF8String); linphone_core_set_user_certificates_path(theLinphoneCore, [LinphoneManager cacheDirectory].UTF8String); /* The core will call the linphone_iphone_configuring_status_changed callback when the remote provisioning is loaded