mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-30 09:49:26 +00:00
Add a config parameter to avoid linphone to save authentication data
This commit is contained in:
parent
c757b8e4c1
commit
0ce5a5f7df
3 changed files with 4 additions and 2 deletions
|
|
@ -353,7 +353,7 @@ void linphone_core_add_auth_info(LinphoneCore *lc, const LinphoneAuthInfo *info)
|
|||
info->domain ? info->domain : "");
|
||||
}
|
||||
ms_list_free(l);
|
||||
write_auth_infos(lc);
|
||||
if(lc->sip_conf.save_auth_info) write_auth_infos(lc);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -373,7 +373,7 @@ void linphone_core_remove_auth_info(LinphoneCore *lc, const LinphoneAuthInfo *in
|
|||
if (r){
|
||||
lc->auth_info=ms_list_remove(lc->auth_info,r);
|
||||
linphone_auth_info_destroy(r);
|
||||
write_auth_infos(lc);
|
||||
if(lc->sip_conf.save_auth_info) write_auth_infos(lc);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -961,6 +961,7 @@ static void sip_config_read(LinphoneCore *lc)
|
|||
lc->sip_conf.vfu_with_info=lp_config_get_int(lc->config,"sip","vfu_with_info",1);
|
||||
linphone_core_set_sip_transport_timeout(lc, lp_config_get_int(lc->config, "sip", "transport_timeout", 63000));
|
||||
sal_set_supported_tags(lc->sal,lp_config_get_string(lc->config,"sip","supported","replaces, outbound"));
|
||||
lc->sip_conf.save_auth_info = lp_config_get_int(lc->config, "sip", "save_auth_info", 1);
|
||||
}
|
||||
|
||||
static void rtp_config_read(LinphoneCore *lc)
|
||||
|
|
|
|||
|
|
@ -583,6 +583,7 @@ typedef struct sip_config
|
|||
bool_t auto_net_state_mon;
|
||||
bool_t tcp_tls_keepalive;
|
||||
bool_t vfu_with_info; /*use to enable vfu request using sip info*/
|
||||
bool_t save_auth_info; // if true, auth infos will be write in the config file when they are added to the list
|
||||
} sip_config_t;
|
||||
|
||||
typedef struct rtp_config
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue