auth_diameter/authorize.h File Reference

#include "diameter_msg.h"
#include "../../parser/digest/digest_parser.h"
#include "../../parser/hf.h"
#include "../../pvar.h"
#include "../../str.h"
#include "../auth/api.h"
#include "defs.h"

Include dependency graph for auth_diameter/authorize.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int authorize (struct sip_msg *msg, pv_elem_t *realm, int hftype)
auth_result_t diam_pre_auth (struct sip_msg *m, str *realm, int hftype, struct hdr_field **h)
int diameter_authorize (struct hdr_field *cred, str *p_method, struct sip_uri uri, struct sip_uri ruri, unsigned int m_id, rd_buf_t *response)
int find_credentials (struct sip_msg *m, str *realm, int hftype, struct hdr_field **h)
int get_realm (struct sip_msg *m, int hftype, struct sip_uri *u)
int get_uri (struct sip_msg *m, str **uri)
int send_resp (struct sip_msg *_m, int _code, str *_reason, char *_hdr, int _hdr_len)
 Create a response with given code and reason phrase.
int srv_response (struct sip_msg *msg, rd_buf_t *rb, int hftype)


Function Documentation

int authorize ( struct sip_msg msg,
pv_elem_t realm,
int  hftype 
)

auth_result_t diam_pre_auth ( struct sip_msg m,
str realm,
int  hftype,
struct hdr_field **  h 
)

int diameter_authorize ( struct hdr_field cred,
str p_method,
struct sip_uri  uri,
struct sip_uri  ruri,
unsigned int  m_id,
rd_buf_t response 
)

int find_credentials ( struct sip_msg m,
str realm,
int  hftype,
struct hdr_field **  h 
)

int get_realm ( struct sip_msg m,
int  hftype,
struct sip_uri u 
)

int get_uri ( struct sip_msg m,
str **  uri 
)

int send_resp ( struct sip_msg m,
int  code,
str reason,
char *  hdr,
int  hdr_len 
)

Create a response with given code and reason phrase.

Create a response with given code and reason phrase Optionally add new headers specified in _hdr

Parameters:
_m SIP message
_code response code
_reason reason string
_hdr header to add
_hdr_len header length
Returns:
1 if reply could be sended, -1 on failure

Definition at line 96 of file auth/common.c.

References add_lump_rpl(), LM_ERR, LUMP_RPL_HDR, sl_binds::send_reply, and slb.

Referenced by authorize(), challenge(), diam_pre_auth(), pre_auth(), and srv_response().

int srv_response ( struct sip_msg msg,
rd_buf_t rb,
int  hftype 
)


Generated on Thu May 17 12:00:35 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6