/[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 524 by aramv, Tue Jun 30 13:03:07 2009 UTC revision 525 by aramv, Wed Jul 15 08:55:01 2009 UTC
# Line 1  Line 1 
1  #include "nextgen.h"  #include "nextgen.h"
2  #include "aos.h"  #include "aos.h"
3  #include "ees_config.h"  #include "ees_config.h"
4    #include "pdl.h"
5  #include <string.h>  #include <string.h>
6  #include <stdlib.h>  #include <stdlib.h>
7  #include <stdio.h>  #include <stdio.h>
# Line 16  int main (void){ Line 17  int main (void){
17          int _fd = 0;          int _fd = 0;
18          char *_string = NULL;          char *_string = NULL;
19          char *file = "/home/aczid/.globus/usercert.pem";          char *file = "/home/aczid/.globus/usercert.pem";
20          struct stat _stat;          char *config_file = "/home/aczid/example_1.pdl";
21      struct stat _stat;
22      if(pdl_init(config_file) == NG_SUCCESS){
23        yyparse();
24        if(pdl_term() == NG_FAILURE) {
25          printf("PDL failed\n");
26        } else {
27          printf("PDL failed\n");
28        }
29      }
30    
31          printf("Modules dir: %s\n", MODULE_DIR);          printf("Modules dir: %s\n", MODULE_DIR);
32                    
# Line 57  int main (void){ Line 67  int main (void){
67    
68    AOS_set_string("my_pemstring", _string);    AOS_set_string("my_pemstring", _string);
69    
70    NG_Run("plugin_a");    /*NG_Run("plugin_a");*/
71    NG_Run("plugin_b");    /*NG_Run("plugin_b");*/
72    
73          /*ng_log(LOG_ERR, "My PEM string: %s\n", (char*) AOS_get_value_by_label("my_pemstring"));*/          /*ng_log(LOG_ERR, "My PEM string: %s\n", (char*) AOS_get_value_by_label("my_pemstring"));*/
74    

Legend:
Removed from v.524  
changed lines
  Added in v.525

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