/[pdpsoft]/trunk/grid-mw-security/ees/src/app/main.c
ViewVC logotype

Diff of /trunk/grid-mw-security/ees/src/app/main.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1351 by aramv, Thu Jan 7 16:38:30 2010 UTC revision 1352 by aramv, Fri Jan 8 17:32:05 2010 UTC
# Line 7  Line 7 
7  int main (int argc, char* argv[]){  int main (int argc, char* argv[]){
8    char* config_file;    char* config_file;
9    char* names_of_allowed_policies[NUMBER_OF_ALLOWED_POLICIES] = {"world_domination", "trying_to_read_lcmaps_parser_code"};    char* names_of_allowed_policies[NUMBER_OF_ALLOWED_POLICIES] = {"world_domination", "trying_to_read_lcmaps_parser_code"};
   aos_context_t* context;  
   aos_attribute_t* attribute;  
   
10    if(argc > 1){    if(argc > 1){
11      config_file = argv[1];      config_file = argv[1];
12    } else {    } else {
# Line 21  int main (int argc, char* argv[]){ Line 18  int main (int argc, char* argv[]){
18          if(EEF_Init(config_file, NULL, NUMBER_OF_ALLOWED_POLICIES, names_of_allowed_policies) == EES_FAILURE){          if(EEF_Init(config_file, NULL, NUMBER_OF_ALLOWED_POLICIES, names_of_allowed_policies) == EES_FAILURE){
19      eef_log(LOG_ERR, "Failed to parse config file (%s), exiting...", config_file);      eef_log(LOG_ERR, "Failed to parse config file (%s), exiting...", config_file);
20    } else {    } else {
21    
22      /*eef_log(LOG_INFO, "Modules path: %s\n", get_modules_path());*/      /*eef_log(LOG_INFO, "Modules path: %s\n", get_modules_path());*/
23      /*setObligation("test", "foobar");*/      /*setObligation("test", "foobar");*/
     context = createContext(OBLIGATION);  
     addContext(context);  
     attribute = createAttribute();  
     setAttributeId(attribute, "my_pemstring");  
     setAttributeValue(attribute, "test", strlen("test"));  
     addAttribute(context, attribute);  
24      if(EEF_Run() == EES_FAILURE){      if(EEF_Run() == EES_FAILURE){
25        eef_log(LOG_ERR, "Failed to load and initialize all plugins in config file (%s), exiting...", config_file);        eef_log(LOG_ERR, "Failed to load and initialize all plugins in config file (%s), exiting...", config_file);
26      }      }

Legend:
Removed from v.1351  
changed lines
  Added in v.1352

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28