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

Contents of /trunk/grid-mw-security/ees/src/app/eef_test.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1588 - (show annotations) (download) (as text)
Wed Mar 24 16:09:24 2010 UTC (12 years, 6 months ago) by aramv
File MIME type: text/x-chdr
File size: 933 byte(s)
Moved main.c to eef_test.c
1 #include "eef_library.h"
2 #include "eef_aos.h"
3
4 #define NUMBER_OF_ALLOWED_POLICIES 0
5
6 int main (int argc, char* argv[]){
7 char* config_file;
8 char* names_of_allowed_policies[NUMBER_OF_ALLOWED_POLICIES] = {"world_domination", "trying_to_read_lcmaps_parser_code"};
9 if(argc > 1){
10 config_file = argv[1];
11 } else {
12 config_file = "examples/example_1.pdl";
13 }
14
15 printf("Parsing config file %s\n", config_file);
16
17 if(EEF_Init(config_file, NULL, NUMBER_OF_ALLOWED_POLICIES, names_of_allowed_policies) == EES_FAILURE){
18 eef_log(LOG_ERR, "Failed to parse config file (%s), exiting...", config_file);
19 } else {
20
21 eef_log(LOG_INFO, "Modules path: %s\n", get_modules_path());
22 /*setObligation("test", "foobar");*/
23 if(EEF_Run() == EES_FAILURE){
24 eef_log(LOG_ERR, "Failed to load and initialize all plugins in config file (%s), exiting...", config_file);
25 }
26 }
27 aos_dump_argslist();
28 EEF_Term();
29 return 0;
30 }

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