Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
0c421694
Commit
0c421694
authored
Jun 19, 2013
by
Simon Morlat
Browse files
fix liblinphone-tester for android
parent
9633a356
Changes
2
Hide whitespace changes
Inline
Side-by-side
build/android/liblinphone_tester.mk
View file @
0c421694
...
...
@@ -8,6 +8,7 @@ common_SRC_FILES := \
register_tester.c
\
setup_tester.c
\
upnp_tester.c
\
eventapi_tester.c
# neon
...
...
tester/liblinphone_tester.c
View file @
0c421694
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment