Changeset 516:1c2f5ee38039 in freeDiameter for extensions/app_radgw/rgw.h
- Timestamp:
- Aug 27, 2010, 10:59:51 AM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/app_radgw/rgw.h
r403 r516 58 58 /* The message has a valid Message-Authenticator attribute */ 59 59 unsigned valid_mac :1; 60 61 /* The message has a valid NAS-IP(v6)-Address (1) and/or NAS-Identifier (2) attribute */62 unsigned valid_nas_info :2;63 60 }; 64 61 … … 67 64 int rgw_msg_parse(unsigned char * buf, size_t len, struct rgw_radius_msg_meta ** msg); 68 65 void rgw_msg_dump(struct rgw_radius_msg_meta * msg); 69 int rgw_msg_auth_check(struct rgw_radius_msg_meta * msg, struct rgw_client * cli, uint8_t * req_auth);70 int rgw_msg_create_base(struct rgw_client * cli, struct msg ** diam);71 int rgw_msg_init(void);72 66 73 67 /* Local RADIUS server(s) configuration */ … … 97 91 98 92 /* Clients management */ 99 int rgw_clients_add( struct sockaddr * ip_port, unsigned char ** key, size_t keylen ); 93 enum rgw_cli_type { RGW_CLI_NAS, RGW_CLI_PXY }; 94 int rgw_clients_auth_check(struct rgw_radius_msg_meta * msg, struct rgw_client * cli, uint8_t * req_auth); 95 int rgw_clients_add( struct sockaddr * ip_port, unsigned char ** key, size_t keylen, enum rgw_cli_type type ); 100 96 int rgw_clients_getkey(struct rgw_client * cli, unsigned char **key, size_t *key_len); 97 int rgw_clients_gettype(struct rgw_client * cli, enum rgw_cli_type *type); 101 98 int rgw_clients_search(struct sockaddr * ip_port, struct rgw_client ** ref); 102 99 int rgw_clients_check_dup(struct rgw_radius_msg_meta **msg, struct rgw_client *cli); 103 int rgw_clients_c heck_origin(struct rgw_radius_msg_meta *msg, struct rgw_client *cli);100 int rgw_clients_create_origin(struct rgw_radius_msg_meta *msg, struct rgw_client * cli, struct msg ** diam); 104 101 int rgw_client_finish_send(struct radius_msg ** msg, struct rgw_radius_msg_meta * req, struct rgw_client * cli); 105 102 void rgw_clients_dispose(struct rgw_client ** ref); 106 103 void rgw_clients_dump(void); 104 int rgw_clients_init(void); 107 105 void rgw_clients_fini(void); 108 106 int rgw_client_session_add(struct rgw_client * cli, struct session *sess, char * dest_realm, char * dest_host, application_id_t appid);
Note: See TracChangeset
for help on using the changeset viewer.