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
58bf466a
Commit
58bf466a
authored
Jun 30, 2015
by
Gautier Pelloux-Prayer
Browse files
call_tester.c: create user certificates at the right place before using it
parent
254f7755
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
tester/call_tester.c
tester/call_tester.c
+8
-4
No files found.
tester/call_tester.c
View file @
58bf466a
...
...
@@ -1795,8 +1795,10 @@ void video_call_base_2(LinphoneCoreManager* pauline,LinphoneCoreManager* marie,
}
if
(mode==LinphoneMediaEncryptionDTLS)
{
/* for DTLS we must access certificates or at least have a directory to store them */
marie->lc->user_certificates_path
=
ms_strdup_printf("%s/certificates/marie",
bc_tester_read_dir_prefix)
;
pauline->lc->user_certificates_path
=
ms_strdup_printf("%s/certificates/pauline",
bc_tester_read_dir_prefix)
;
marie->lc->user_certificates_path
=
ms_strdup_printf("%s/certificates-marie",
bc_tester_writable_dir_prefix)
;
pauline->lc->user_certificates_path
=
ms_strdup_printf("%s/certificates-pauline",
bc_tester_writable_dir_prefix)
;
belle_sip_mkdir(marie->lc->user_certificates_path)
;
belle_sip_mkdir(pauline->lc->user_certificates_path)
;
}
linphone_core_set_media_encryption(marie->lc,mode)
;
...
...
@@ -2506,8 +2508,10 @@ void call_base_with_configfile(LinphoneMediaEncryption mode, bool_t enable_video
linphone_core_set_media_encryption(marie->lc,mode)
;
linphone_core_set_media_encryption(pauline->lc,mode)
;
if
(mode==LinphoneMediaEncryptionDTLS)
{
/* for DTLS we must access certificates or at least have a directory to store them */
marie->lc->user_certificates_path
=
ms_strdup_printf("%s/certificates/marie",
bc_tester_read_dir_prefix)
;
pauline->lc->user_certificates_path
=
ms_strdup_printf("%s/certificates/pauline",
bc_tester_read_dir_prefix)
;
marie->lc->user_certificates_path
=
ms_strdup_printf("%s/certificates-marie",
bc_tester_writable_dir_prefix)
;
pauline->lc->user_certificates_path
=
ms_strdup_printf("%s/certificates-pauline",
bc_tester_writable_dir_prefix)
;
belle_sip_mkdir(marie->lc->user_certificates_path)
;
belle_sip_mkdir(pauline->lc->user_certificates_path)
;
}
linphone_core_set_firewall_policy(marie->lc,policy)
;
...
...
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