Mercurial > hg > freeDiameter
changeset 264:a3b2cde34f7b
Advertize support for translated applications
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Mon, 19 Apr 2010 11:48:40 +0900 |
parents | c2a095f04e43 |
children | 9e10e3d72da3 |
files | extensions/app_radgw/rgwx_auth.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/extensions/app_radgw/rgwx_auth.c Fri Apr 16 18:00:43 2010 +0900 +++ b/extensions/app_radgw/rgwx_auth.c Mon Apr 19 11:48:40 2010 +0900 @@ -126,6 +126,7 @@ static int auth_conf_parse(char * conffile, struct rgwp_config ** state) { struct rgwp_config * new; + struct dict_object * app; TRACE_ENTRY("%p %p", conffile, state); CHECK_PARAMS( state ); @@ -198,6 +199,13 @@ CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "User-Name", &new->dict.User_Name, ENOENT) ); CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "User-Password", &new->dict.User_Password, ENOENT) ); + /* This plugin provides the following Diameter authentication applications support: */ + CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_APPLICATION, APPLICATION_BY_NAME, "Diameter Network Access Server Application", &app, ENOENT) ); + CHECK_FCT( fd_disp_app_support ( app, NULL, 1, 0 ) ); + + CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_APPLICATION, APPLICATION_BY_NAME, "Diameter Extensible Authentication Protocol (EAP) Application", &app, ENOENT) ); + CHECK_FCT( fd_disp_app_support ( app, NULL, 1, 0 ) ); + *state = new; return 0; }