mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 11:38:08 +00:00
fix liblinphone-tester for android
This commit is contained in:
parent
9633a35601
commit
0c4216948d
2 changed files with 8 additions and 1 deletions
|
|
@ -8,6 +8,7 @@ common_SRC_FILES := \
|
|||
register_tester.c \
|
||||
setup_tester.c \
|
||||
upnp_tester.c \
|
||||
eventapi_tester.c
|
||||
|
||||
# neon
|
||||
|
||||
|
|
|
|||
|
|
@ -96,6 +96,8 @@ static LinphoneCore* configure_lc_from(LinphoneCoreVTable* v_table, const char*
|
|||
char ringbackpath[256]={0};
|
||||
char rootcapath[256]={0};
|
||||
char dnsuserhostspath[256]={0};
|
||||
|
||||
if (path==NULL) path=".";
|
||||
|
||||
if (path && file){
|
||||
sprintf(filepath, "%s/%s", path, file);
|
||||
|
|
@ -105,7 +107,11 @@ static LinphoneCore* configure_lc_from(LinphoneCoreVTable* v_table, const char*
|
|||
lc = linphone_core_new(v_table,NULL,*filepath!='\0' ? filepath : NULL,NULL);
|
||||
|
||||
if (path){
|
||||
sprintf(rootcapath, "%s/certificates/cacert.pem", path);
|
||||
#ifndef ANDROID
|
||||
snprintf(rootcapath, sizeof(rootcapath), "%s/certificates/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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue