/[pdpsoft]/trunk/grid-mw-security/ees/plugin_examples/example_plugin/src/example_plugin.c
ViewVC logotype

Diff of /trunk/grid-mw-security/ees/plugin_examples/example_plugin/src/example_plugin.c

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

revision 1344 by aramv, Wed Dec 9 16:41:47 2009 UTC revision 1345 by aramv, Thu Jan 7 16:38:30 2010 UTC
# Line 49  EES_PL_RC plugin_initialize(int argc, ch Line 49  EES_PL_RC plugin_initialize(int argc, ch
49  #else  #else
50      printf("Read %ld bytes from file '%s'\n", (long int) _stat.st_size, cert_file);      printf("Read %ld bytes from file '%s'\n", (long int) _stat.st_size, cert_file);
51  #endif  #endif
52      setObligation("my_pemstring", _string);      /*setObligation("my_pemstring", _string);*/
53      return EES_PL_SUCCESS;      return EES_PL_SUCCESS;
54    }    }
55    
# Line 60  EES_PL_RC plugin_run(){ Line 60  EES_PL_RC plugin_run(){
60          eef_log(LOG_ERR, "Getting 'pemstring'\n");          eef_log(LOG_ERR, "Getting 'pemstring'\n");
61          eef_log(LOG_ERR, "my_pemstring: %s\n", getObligation("my_pemstring"));          eef_log(LOG_ERR, "my_pemstring: %s\n", getObligation("my_pemstring"));
62          eef_log(LOG_ERR, "Setting 'pemstring' leeg\n");          eef_log(LOG_ERR, "Setting 'pemstring' leeg\n");
63    setObligation("my_pemstring", "Leeggehaald\n");    /*setObligation("my_pemstring", "Leeggehaald\n");*/
64    setObligation("foo", "barbaz");    /*setObligation("foo", "barbaz");*/
65          return EES_PL_SUCCESS;          return EES_PL_SUCCESS;
66  }  }
67    

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

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