/[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 1344 by aramv, Tue Jan 5 10:21:22 2010 UTC revision 1345 by aramv, Thu Jan 7 16:38:30 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"};
10      aos_context_t* context;
11      aos_attribute_t* attribute;
12    
13    if(argc > 1){    if(argc > 1){
14      config_file = argv[1];      config_file = argv[1];
# Line 20  int main (int argc, char* argv[]){ Line 22  int main (int argc, char* argv[]){
22      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);
23    } else {    } else {
24      /*eef_log(LOG_INFO, "Modules path: %s\n", get_modules_path());*/      /*eef_log(LOG_INFO, "Modules path: %s\n", get_modules_path());*/
25      setObligation("test", "foobar");      /*setObligation("test", "foobar");*/
26        context = createContext(OBLIGATION);
27        addContext(context);
28        attribute = createAttribute();
29        setAttributeId(attribute, "my_pemstring");
30        setAttributeValue(attribute, "test", strlen("test"));
31        addAttribute(context, attribute);
32      if(EEF_Run() == EES_FAILURE){      if(EEF_Run() == EES_FAILURE){
33        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);
34      }      }

Legend:
Removed from v.1344  
changed lines
  Added in v.1345

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