axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manj...@apache.org
Subject svn commit: r538570 - /webservices/axis2/scratch/c/neethi/rampart/src/handlers/rampart_in_handler.c
Date Wed, 16 May 2007 12:45:47 GMT
Author: manjula
Date: Wed May 16 05:45:46 2007
New Revision: 538570

URL: http://svn.apache.org/viewvc?view=rev&rev=538570
Log:
Neglecting sec_header checking when transport binding.

Modified:
    webservices/axis2/scratch/c/neethi/rampart/src/handlers/rampart_in_handler.c

Modified: webservices/axis2/scratch/c/neethi/rampart/src/handlers/rampart_in_handler.c
URL: http://svn.apache.org/viewvc/webservices/axis2/scratch/c/neethi/rampart/src/handlers/rampart_in_handler.c?view=diff&rev=538570&r1=538569&r2=538570
==============================================================================
--- webservices/axis2/scratch/c/neethi/rampart/src/handlers/rampart_in_handler.c (original)
+++ webservices/axis2/scratch/c/neethi/rampart/src/handlers/rampart_in_handler.c Wed May 16
05:45:46 2007
@@ -109,14 +109,25 @@
     }
     AXIS2_LOG_TRACE(env->log, AXIS2_LOG_SI, "SOAP header found");
 
-    sec_node = rampart_get_security_token(env, msg_ctx, soap_header);
-    
-    if(!sec_node)
+    rampart_context = rampart_neethi_build_configuration(env, msg_ctx, AXIS2_TRUE);
+
+    if(!rampart_context)
     {
-        AXIS2_LOG_INFO(env->log, 
-		    "[rampart][rampart_in_handler] No security header element.");
+        AXIS2_LOG_INFO(env->log, "[rampart][rampart_in_handler] ramaprt_context creation
failed.");
         return AXIS2_FAILURE;
     }
+    
+    if((rampart_context_get_binding_type(rampart_context,env)) != RP_BINDING_TRANSPORT)
+    {
+        sec_node = rampart_get_security_token(env, msg_ctx, soap_header);
+    
+        if(!sec_node)
+        {
+            AXIS2_LOG_INFO(env->log, 
+		        "[rampart][rampart_in_handler] No security header element.");
+            return AXIS2_FAILURE;
+        }
+    }
 
     status = rampart_set_security_processed_results_property(env, msg_ctx);
     
@@ -125,16 +136,16 @@
         AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, 
 				"[rampart][rampart_in_handler] Unable to set the security processed results");
     }
-    rampart_context = rampart_neethi_build_configuration(env, msg_ctx, AXIS2_TRUE);
+    /*rampart_context = rampart_neethi_build_configuration(env, msg_ctx, AXIS2_TRUE);*/
 
 /*  rampart_context = rampart_engine_init(env,msg_ctx,AXIS2_TRUE);*/
-
+/*
     if(!rampart_context)
     {        
         AXIS2_LOG_INFO(env->log, "[rampart][rampart_in_handler] ramaprt_context creation
failed.");
         return AXIS2_FAILURE;
     }
-
+*/
     status = rampart_shp_process_message(env, msg_ctx, rampart_context, 
 						soap_envelope, sec_node);
     



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message