#include <string.h>
#include "../../dprint.h"
#include "../../parser/parse_from.h"
#include "../../parser/parse_to.h"
#include "../../parser/parse_uri.h"
#include "../../data_lump_rpl.h"
#include "auth_mod.h"
#include "common.h"

Go to the source code of this file.
Functions | |
| int | get_realm (struct sip_msg *_m, hdr_types_t _hftype, struct sip_uri **_u) |
| Return parsed To or From, host part of the parsed uri is realm. | |
| 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. | |
Definition in file auth/common.c.
| int get_realm | ( | struct sip_msg * | _m, | |
| hdr_types_t | _hftype, | |||
| struct sip_uri ** | _u | |||
| ) |
Return parsed To or From, host part of the parsed uri is realm.
| _m | SIP message | |
| _hftype | header field type | |
| _u | SIP URI |
Definition at line 54 of file auth/common.c.
References HDR_AUTHORIZATION_T, HDR_TO_F, _str::len, LM_ERR, sip_uri::method, NULL, parse_from_header(), parse_from_uri(), parse_headers(), parse_to_uri(), REQ_LINE, _str::s, and sip_msg::to.
Referenced by challenge(), diam_pre_auth(), and pre_auth().
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
| _m | SIP message | |
| _code | response code | |
| _reason | reason string | |
| _hdr | header to add | |
| _hdr_len | header length |
Definition at line 96 of file auth/common.c.
Referenced by authorize(), challenge(), diam_pre_auth(), pre_auth(), and srv_response().
1.5.6