#include "../../mem/mem.h"#include "../../dprint.h"#include "../../usr_avp.h"#include "../../radius.h"#include "../../ut.h"#include "../auth/api.h"#include "sterman.h"#include "authrad_mod.h"#include "extra.h"#include <stdlib.h>#include <string.h>

Go to the source code of this file.
Defines | |
| #define | ADD_EXTRA_AVPAIR(_attrs, _attr, _val, _len) |
Functions | |
| static int | add_cisco_vsa (VALUE_PAIR **send, struct sip_msg *msg) |
| static int | extract_avp (VALUE_PAIR *vp, unsigned short *flags, int_str *name, int_str *value) |
| static int | generate_avps (VALUE_PAIR *received) |
| int | radius_authorize_sterman (struct sip_msg *_msg, dig_cred_t *_cred, str *_method, str *_user) |
Variables | |
| static str | val_arr [MAX_EXTRA] |
| #define ADD_EXTRA_AVPAIR | ( | _attrs, | |||
| _attr, | |||||
| _val, | |||||
| _len | ) |
Definition at line 52 of file sterman.c.
Referenced by radius_authorize_sterman(), radius_does_uri_user_exist(), radius_does_uri_user_host_exist(), radius_is_user_in(), radius_load_callee_avps(), and radius_load_caller_avps().
| static int add_cisco_vsa | ( | VALUE_PAIR ** | send, | |
| struct sip_msg * | msg | |||
| ) | [static] |
Definition at line 181 of file sterman.c.
References A_CISCO_AVPAIR, attrs, hdr_field::body, sip_msg::callid, HDR_CALLID_F, _str::len, LM_ERR, NULL, parse_headers(), pkg_free, pkg_malloc, rh, and _str::s.
Referenced by radius_authorize_sterman().
| static int extract_avp | ( | VALUE_PAIR * | vp, | |
| unsigned short * | flags, | |||
| int_str * | name, | |||
| int_str * | value | |||
| ) | [inline, static] |
Definition at line 70 of file sterman.c.
References AVP_NAME_STR, AVP_VAL_STR, _str::len, LM_DBG, LM_ERR, int_str::n, int_str::s, _str::s, and str2int().
Referenced by generate_avps().
| static int generate_avps | ( | VALUE_PAIR * | received | ) | [static] |
Definition at line 150 of file sterman.c.
References A_SIP_AVP, add_avp(), attrs, AVP_NAME_STR, AVP_VAL_STR, extract_avp(), _str::len, LM_DBG, LM_ERR, int_str::n, stat_mod_elem_::name, _str::s, and int_str::s.
| int radius_authorize_sterman | ( | struct sip_msg * | _msg, | |
| dig_cred_t * | _cred, | |||
| str * | _method, | |||
| str * | _user | |||
| ) |
Definition at line 224 of file sterman.c.
References A_CISCO_AVPAIR, A_DIGEST_BODY_DIGEST, A_DIGEST_CNONCE, A_DIGEST_METHOD, A_DIGEST_NONCE, A_DIGEST_NONCE_COUNT, A_DIGEST_QOP, A_DIGEST_REALM, A_DIGEST_RESPONSE, A_DIGEST_URI, A_DIGEST_USER_NAME, A_MAX, A_SERVICE_TYPE, A_SIP_URI_USER, A_USER_NAME, add_cisco_vsa(), ADD_EXTRA_AVPAIR, attrs, auth_extra, dig_cred::cnonce, username::domain, extra2strar(), generate_avps(), GET_RURI, isflagset(), len, _str::len, LM_DBG, LM_ERR, dig_cred::nc, dig_cred::nonce, NULL, dig_cred::opaque, pkg_free, pkg_malloc, dig_cred::qop, QOP_AUTH, QOP_AUTHINT, qp::qop_parsed, dig_cred::realm, dig_cred::response, rh, s, _str::s, service, SIP_PORT, dig_cred::uri, use_ruri_flag, username::user, user, dig_cred::username, val::v, V_SIP_SESSION, vals, and username::whole.
Referenced by authorize().
1.5.6