mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
align rootca path for android
This commit is contained in:
parent
244edb9b71
commit
19acd4a53a
1 changed files with 1 additions and 4 deletions
|
|
@ -107,11 +107,7 @@ static LinphoneCore* configure_lc_from(LinphoneCoreVTable* v_table, const char*
|
|||
lc = linphone_core_new(v_table,NULL,*filepath!='\0' ? filepath : NULL,NULL);
|
||||
|
||||
sal_enable_test_features(lc->sal,TRUE);
|
||||
#ifndef ANDROID
|
||||
snprintf(rootcapath, sizeof(rootcapath), "%s/certificates/cn/cacert.pem", path);
|
||||
#else
|
||||
snprintf(rootcapath, sizeof(rootcapath), "%s/cacert.pem", path);
|
||||
#endif
|
||||
linphone_core_set_root_ca(lc,rootcapath);
|
||||
|
||||
sprintf(dnsuserhostspath, "%s/%s", path, userhostsfile);
|
||||
|
|
@ -525,6 +521,7 @@ void cunit_android_trace_handler(int level, const char *fmt, va_list args) {
|
|||
jclass cls = (*env)->GetObjectClass(env, current_obj);
|
||||
jmethodID method = (*env)->GetMethodID(env, cls, "printLog", "(ILjava/lang/String;)V");
|
||||
(*env)->CallVoidMethod(env, current_obj, method, javaLevel, javaString);
|
||||
(*env)->DeleteLocalRef(env,javaString);
|
||||
}
|
||||
|
||||
JNIEXPORT
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue