Пример #1
0
static void process_auth_requested(void *sal, belle_sip_auth_event_t *auth_event) {
	SalAuthInfo* auth_info = sal_auth_info_create(auth_event);
	((Sal*)sal)->callbacks.auth_requested(sal,auth_info);
	belle_sip_auth_event_set_passwd(auth_event,(const char*)auth_info->password);
	belle_sip_auth_event_set_ha1(auth_event,(const char*)auth_info->ha1);
	belle_sip_auth_event_set_userid(auth_event,(const char*)auth_info->userid);
	sal_auth_info_delete(auth_info);
	return;
}
Пример #2
0
static void process_auth_requested(void *sal, belle_sip_auth_event_t *event) {
	SalAuthInfo* auth_info = sal_auth_info_create(event);
	((Sal*)sal)->callbacks.auth_requested(sal,auth_info);
	belle_sip_auth_event_set_passwd(event,(const char*)auth_info->password);
	belle_sip_auth_event_set_ha1(event,(const char*)auth_info->ha1);
	belle_sip_auth_event_set_userid(event,(const char*)auth_info->userid);
	belle_sip_auth_event_set_signing_key(event,(belle_sip_signing_key_t *)auth_info->key);
	belle_sip_auth_event_set_client_certificates_chain(event,(belle_sip_certificates_chain_t* )auth_info->certificates);
	sal_auth_info_delete(auth_info);
}