set root ca (need be removed when merging with master

This commit is contained in:
Danmei Chen 2018-12-04 12:51:31 +01:00
parent 2beaf5db15
commit f4692392a4

View file

@ -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