# HG changeset patch # User Sebastien Decugis # Date 1271645320 -32400 # Node ID a3b2cde34f7b949c5bf052b036789fd331352f7a # Parent c2a095f04e43b9218b22d1a2a8a563c4f6302a83 Advertize support for translated applications diff -r c2a095f04e43 -r a3b2cde34f7b extensions/app_radgw/rgwx_auth.c --- 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; }