/[pdpsoft]/trunk/grid-mw-security/ees/src/eics/http.c
ViewVC logotype

Diff of /trunk/grid-mw-security/ees/src/eics/http.c

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

revision 1753 by aramv, Wed Jun 2 09:42:06 2010 UTC revision 1754 by aramv, Thu Jun 10 16:35:55 2010 UTC
# Line 29  int extractRequestSubjectToAOS (const xa Line 29  int extractRequestSubjectToAOS (const xa
29    
30      if (count > 0)      if (count > 0)
31      {      {
32          rewindContexts(NULL);
33        if((aos_context = getNextContext(SUBJECT, NULL)) == NULL){        if((aos_context = getNextContext(SUBJECT, NULL)) == NULL){
34          if((aos_context = createContext (SUBJECT)) == NULL){          if((aos_context = createContext (SUBJECT)) == NULL){
35            return 1;            return 1;
# Line 106  int extractRequestActionToAOS (const xac Line 107  int extractRequestActionToAOS (const xac
107    
108      if (count > 0)      if (count > 0)
109      {      {
110          rewindContexts(NULL);
111        if((aos_context = getNextContext(ACTION, NULL)) == NULL){        if((aos_context = getNextContext(ACTION, NULL)) == NULL){
112          if((aos_context = createContext (ACTION)) == NULL){          if((aos_context = createContext (ACTION)) == NULL){
113            return 1;            return 1;
# Line 258  int extractRequestEnvironmentToAOS (cons Line 260  int extractRequestEnvironmentToAOS (cons
260    
261      if (count > 0)      if (count > 0)
262      {      {
263          rewindContexts(NULL);
264        if((aos_context = getNextContext(ENVIRONMENT, NULL)) == NULL){        if((aos_context = getNextContext(ENVIRONMENT, NULL)) == NULL){
265          if((aos_context = createContext (ENVIRONMENT)) == NULL){          if((aos_context = createContext (ENVIRONMENT)) == NULL){
266            return 1;            return 1;
# Line 365  int constructResponse (xacml_response_t Line 368  int constructResponse (xacml_response_t
368    while((context = getNextContext(OBLIGATION, NULL)) != NULL){    while((context = getNextContext(OBLIGATION, NULL)) != NULL){
369      rewindAttributes(context);      rewindAttributes(context);
370      obligation_id = getContextObligationId(context),      obligation_id = getContextObligationId(context),
                   printf("Context obligation id: %s\n", obligation_id);  
371      xacml_obligation_init(&tmp_obligation,      xacml_obligation_init(&tmp_obligation,
372                            obligation_id,                            obligation_id,
373                            XACML_EFFECT_Permit);                            XACML_EFFECT_Permit);
374      /*printf("Obligation: %s at %p", obligation_id, tmp_obligation);*/      /*printf("Obligation: %s at %p", obligation_id, tmp_obligation);*/
375      EEF_log(LOG_DEBUG, "Obligation %s", obligation_id);      /*EEF_log(LOG_DEBUG, "Obligation %s", obligation_id);*/
376      while((attribute = getNextAttribute(context)) != NULL){      while((attribute = getNextAttribute(context)) != NULL){
377        attribute_name = getAttributeId(attribute);        attribute_name = getAttributeId(attribute);
378        attribute_value = getAttributeValueAsString(attribute);        attribute_value = getAttributeValueAsString(attribute);

Legend:
Removed from v.1753  
changed lines
  Added in v.1754

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