Asterisk - The Open Source Telephony Project GIT-master-754dea3
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Modules Pages
Public Member Functions | Data Fields
ast_sip_auth Struct Reference

#include <res_pjsip.h>

Collaboration diagram for ast_sip_auth:
Collaboration graph
[legend]

Public Member Functions

 SORCERY_OBJECT (details)
 

Data Fields

struct ast_string_field_mgr __field_mgr
 
struct ast_string_field_pool__field_mgr_pool
 
const ast_string_field auth_pass
 
const ast_string_field auth_user
 
const ast_string_field md5_creds
 
unsigned int nonce_lifetime
 
const ast_string_field oauth_clientid
 
const ast_string_field oauth_secret
 
struct ast_sip_auth_password_digestpassword_digests [PJSIP_AUTH_ALGORITHM_COUNT]
 
const ast_string_field realm
 
const ast_string_field refresh_token
 
struct pjsip_auth_algorithm_type_vector supported_algorithms_uac
 
struct pjsip_auth_algorithm_type_vector supported_algorithms_uas
 
enum ast_sip_auth_type type
 

Detailed Description

Definition at line 660 of file res_pjsip.h.

Member Function Documentation

◆ SORCERY_OBJECT()

SORCERY_OBJECT ( details  )

Sorcery ID of the auth is its name

Field Documentation

◆ __field_mgr

struct ast_string_field_mgr __field_mgr

Definition at line 681 of file res_pjsip.h.

◆ __field_mgr_pool

struct ast_string_field_pool* __field_mgr_pool

Identification for these credentials

Authentication username

Authentication password

Authentication credentials in MD5 format (hash of user:realm:pass)

Deprecated:
Use password_digests[PJSIP_AUTH_ALGORITHM_MD5] instead.

Refresh token to use for OAuth authentication

Client ID to use for OAuth authentication

Secret to use for OAuth authentication

Definition at line 681 of file res_pjsip.h.

◆ auth_pass

const ast_string_field auth_pass

◆ auth_user

const ast_string_field auth_user

◆ md5_creds

const ast_string_field md5_creds

Definition at line 681 of file res_pjsip.h.

◆ nonce_lifetime

unsigned int nonce_lifetime

The time period (in seconds) that a nonce may be reused

Definition at line 683 of file res_pjsip.h.

Referenced by check_nonce().

◆ oauth_clientid

const ast_string_field oauth_clientid

Definition at line 681 of file res_pjsip.h.

Referenced by auth_apply(), and fetch_google_access_token().

◆ oauth_secret

const ast_string_field oauth_secret

Definition at line 681 of file res_pjsip.h.

Referenced by auth_apply(), and fetch_google_access_token().

◆ password_digests

Array of pre-digested passwords indexed by pjsip_auth_algorithm_type

Definition at line 691 of file res_pjsip.h.

Referenced by ast_sip_auth_get_creds(), ast_sip_auth_is_algorithm_available(), auth_destroy(), check_algorithm(), md5cred_to_str(), password_digest_handler(), and password_digest_to_str().

◆ realm

const ast_string_field realm

◆ refresh_token

const ast_string_field refresh_token

Definition at line 681 of file res_pjsip.h.

Referenced by auth_apply(), and fetch_google_access_token().

◆ supported_algorithms_uac

struct pjsip_auth_algorithm_type_vector supported_algorithms_uac

Digest algorithms to support when UAC

Definition at line 687 of file res_pjsip.h.

Referenced by alloc_artificial_auth(), auth_alloc(), auth_apply(), auth_destroy(), get_creds_for_header(), uac_algorithms_handler(), and uac_algorithms_to_str().

◆ supported_algorithms_uas

struct pjsip_auth_algorithm_type_vector supported_algorithms_uas

Digest algorithms to send challenges for when UAS

Definition at line 689 of file res_pjsip.h.

Referenced by alloc_artificial_auth(), auth_alloc(), auth_apply(), auth_destroy(), digest_check_auth(), digest_lookup(), uas_algorithms_handler(), and uas_algorithms_to_str().

◆ type

enum ast_sip_auth_type type

Used to determine what to use when authenticating

Definition at line 685 of file res_pjsip.h.

Referenced by alloc_artificial_auth(), auth_apply(), auth_type_handler(), auth_type_to_str(), digest_lookup(), and Property::load().


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