mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-01 01:46:23 +00:00
zrtp cache for linphonec
This commit is contained in:
parent
d304288421
commit
d963ea74af
1 changed files with 6 additions and 0 deletions
|
|
@ -160,6 +160,7 @@ LPC_AUTH_STACK auth_stack;
|
||||||
static int trace_level = 0;
|
static int trace_level = 0;
|
||||||
static char *logfile_name = NULL;
|
static char *logfile_name = NULL;
|
||||||
static char configfile_name[PATH_MAX];
|
static char configfile_name[PATH_MAX];
|
||||||
|
static char zrtpsecrets[PATH_MAX];
|
||||||
static const char *factory_configfile_name=NULL;
|
static const char *factory_configfile_name=NULL;
|
||||||
static char *sip_addr_to_call = NULL; /* for autocall */
|
static char *sip_addr_to_call = NULL; /* for autocall */
|
||||||
static int window_id = 0; /* 0=standalone window, or window id for embedding video */
|
static int window_id = 0; /* 0=standalone window, or window id for embedding video */
|
||||||
|
|
@ -667,6 +668,8 @@ linphonec_init(int argc, char **argv)
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
snprintf(configfile_name, PATH_MAX, "%s/.linphonerc",
|
snprintf(configfile_name, PATH_MAX, "%s/.linphonerc",
|
||||||
getenv("HOME"));
|
getenv("HOME"));
|
||||||
|
snprintf(zrtpsecrets, PATH_MAX, "%s/.linphone-zidcache",
|
||||||
|
getenv("HOME"));
|
||||||
#elif defined(_WIN32_WCE)
|
#elif defined(_WIN32_WCE)
|
||||||
strncpy(configfile_name,PACKAGE_DIR "\\linphonerc",PATH_MAX);
|
strncpy(configfile_name,PACKAGE_DIR "\\linphonerc",PATH_MAX);
|
||||||
mylogfile=fopen(PACKAGE_DIR "\\" "linphonec.log","w");
|
mylogfile=fopen(PACKAGE_DIR "\\" "linphonec.log","w");
|
||||||
|
|
@ -674,6 +677,8 @@ linphonec_init(int argc, char **argv)
|
||||||
#else
|
#else
|
||||||
snprintf(configfile_name, PATH_MAX, "%s/Linphone/linphonerc",
|
snprintf(configfile_name, PATH_MAX, "%s/Linphone/linphonerc",
|
||||||
getenv("APPDATA"));
|
getenv("APPDATA"));
|
||||||
|
snprintf(zrtpsecrets, PATH_MAX, "%s/Linphone/linphone-zidcache",
|
||||||
|
getenv("APPDATA"));
|
||||||
#endif
|
#endif
|
||||||
/* Handle configuration filename changes */
|
/* Handle configuration filename changes */
|
||||||
switch (handle_configfile_migration())
|
switch (handle_configfile_migration())
|
||||||
|
|
@ -728,6 +733,7 @@ linphonec_init(int argc, char **argv)
|
||||||
* Initialize linphone core
|
* Initialize linphone core
|
||||||
*/
|
*/
|
||||||
linphonec=linphone_core_new (&linphonec_vtable, configfile_name, factory_configfile_name, NULL);
|
linphonec=linphone_core_new (&linphonec_vtable, configfile_name, factory_configfile_name, NULL);
|
||||||
|
linphone_core_set_zrtp_secrets_file(linphonec,zrtpsecrets);
|
||||||
linphone_core_enable_video(linphonec,vcap_enabled,display_enabled);
|
linphone_core_enable_video(linphonec,vcap_enabled,display_enabled);
|
||||||
if (display_enabled && window_id != 0)
|
if (display_enabled && window_id != 0)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue