Asterisk - The Open Source Telephony Project GIT-master-a358458
Data Fields
ast_sip_authenticator Struct Reference

An interchangeable way of handling digest authentication for SIP. More...

#include <res_pjsip.h>

Data Fields

enum ast_sip_check_auth_result(* check_authentication )(struct ast_sip_endpoint *endpoint, pjsip_rx_data *rdata, pjsip_tx_data *tdata)
 Check that an incoming request passes authentication. More...
 
int(* requires_authentication )(struct ast_sip_endpoint *endpoint, pjsip_rx_data *rdata)
 Check if a request requires authentication See ast_sip_requires_authentication for more details. More...
 

Detailed Description

An interchangeable way of handling digest authentication for SIP.

An authenticator is responsible for filling in the callbacks provided below. Each is called from a publicly available function in res_sip. The authenticator can use configuration or other local policy to determine whether authentication should take place and what credentials should be used when challenging and authenticating a request.

Definition at line 1247 of file res_pjsip.h.

Field Documentation

◆ check_authentication

enum ast_sip_check_auth_result(* check_authentication) (struct ast_sip_endpoint *endpoint, pjsip_rx_data *rdata, pjsip_tx_data *tdata)

Check that an incoming request passes authentication.

The tdata parameter is useful for adding information such as digest challenges.

Parameters
endpointThe endpoint sending the incoming request
rdataThe incoming request
tdataTentative outgoing request.

Definition at line 1252 of file res_pjsip.h.

Referenced by ast_sip_check_authentication().

◆ requires_authentication

int(* requires_authentication) (struct ast_sip_endpoint *endpoint, pjsip_rx_data *rdata)

Check if a request requires authentication See ast_sip_requires_authentication for more details.

Definition at line 1252 of file res_pjsip.h.

Referenced by ast_sip_requires_authentication().


The documentation for this struct was generated from the following file: