#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>#include <netdb.h>#include "../../sr_module.h"#include "../../error.h"#include "../../dprint.h"#include "../../pvar.h"#include "../../mem/mem.h"#include "../sl/sl_api.h"#include "diameter_msg.h"#include "auth_diameter.h"#include "authorize.h"#include "tcp_comm.h"

Go to the source code of this file.
Functions | |
| static int | auth_fixup (void **param, int param_no) |
| int | diameter_is_user_in (struct sip_msg *_msg, char *group, char *_s2) |
| int | diameter_proxy_authorize (struct sip_msg *_msg, char *_realm, char *_s2) |
| int | diameter_www_authorize (struct sip_msg *_msg, char *_realm, char *_s2) |
| static int | group_fixup (void **param, int param_no) |
| static int | mod_child_init (int r) |
| static int | mod_init (void) |
Variables | |
| static cmd_export_t | cmds [] |
| char * | diameter_client_host = "localhost" |
| int | diameter_client_port = 3000 |
| struct module_exports | exports |
| static param_export_t | params [] |
| rd_buf_t * | rb |
| MODULE_VERSION struct sl_binds | slb |
| int | use_domain = 0 |
| static int auth_fixup | ( | void ** | param, | |
| int | param_no | |||
| ) | [static] |
Definition at line 172 of file auth_diameter.c.
References E_OUT_OF_MEM, _str::len, LM_ERR, pv_parse_format(), _str::s, and s.
| int diameter_is_user_in | ( | struct sip_msg * | _msg, | |
| char * | group, | |||
| char * | _s2 | |||
| ) |
Definition at line 95 of file user_in.c.
References AA_REQUEST, AAA_APP_NASREQ, AAA_CONN_CLOSED, AAA_ERR_SUCCESS, AAA_NO_CONNECTION, AAA_USER_IN_GROUP, AAAAddAVPToMessage(), AAABuildMsgBuffer(), AAACreateAVP(), AAAFreeAVP(), AAAFreeMessage(), AAAInMessage(), AAAPrintMessage(), sip_msg::authorization, AVP_Destination_Realm, AVP_DUPLICATE_DATA, AVP_Service_Type, AVP_SIP_MSGID, AVP_User_Group, AVP_User_Name, diameter_client_host, diameter_client_port, domain, get_authorized_cred(), get_from_uri(), GET_RURI, get_to_uri(), sip_uri::host, sip_msg::id, init_mytcp(), _str::len, LM_DBG, LM_ERR, LM_NOTICE, NULL, parse_uri(), hdr_field::parsed, pkg_malloc, sip_msg::proxy_auth, rb, dig_cred::realm, _str::s, SERVICE_LEN, SIP_GROUP_CHECK, sockfd, tcp_send_recv(), to_body::uri, use_domain, username::user, sip_uri::user, user, and dig_cred::username.
| int diameter_proxy_authorize | ( | struct sip_msg * | _msg, | |
| char * | _realm, | |||
| char * | _s2 | |||
| ) |
| int diameter_www_authorize | ( | struct sip_msg * | _msg, | |
| char * | _realm, | |||
| char * | _s2 | |||
| ) |
| static int group_fixup | ( | void ** | param, | |
| int | param_no | |||
| ) | [static] |
Definition at line 214 of file auth_diameter.c.
References E_UNSPEC, _str::len, LM_ERR, pkg_malloc, _str::s, and s.
| static int mod_child_init | ( | int | r | ) | [static] |
Definition at line 135 of file auth_diameter.c.
References rd_buf::buf, rd_buf::chall, diameter_client_host, diameter_client_port, init_mytcp(), LM_DBG, pkg_malloc, and sockfd.
| static int mod_init | ( | void | ) | [static] |
cmd_export_t cmds[] [static] |
Definition at line 78 of file auth_diameter.c.
| char* diameter_client_host = "localhost" |
Definition at line 69 of file auth_diameter.c.
Referenced by child_init(), diameter_authorize(), diameter_is_user_in(), and mod_child_init().
| int diameter_client_port = 3000 |
Definition at line 70 of file auth_diameter.c.
Referenced by child_init(), diameter_authorize(), diameter_is_user_in(), and mod_child_init().
| struct module_exports exports |
Definition at line 103 of file auth_diameter.c.
param_export_t params[] [static] |
Definition at line 92 of file auth_diameter.c.
Definition at line 73 of file auth_diameter.c.
Referenced by _reply_light(), authorize(), diameter_is_user_in(), and extract_allowed_headers().
SL binds
Definition at line 55 of file auth_diameter.c.
| int use_domain = 0 |
Use domain in is_user_in
Definition at line 71 of file auth_diameter.c.
1.5.6