Commit 0ce5a5f7 authored by François Grisez's avatar François Grisez

Add a config parameter to avoid linphone to save authentication data

parent c757b8e4
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment