ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kausha...@apache.org
Subject svn commit: r583687 - /webservices/axis2/trunk/c/neethi/src/secpolicy/builder/secpolicy_builder.c
Date Thu, 11 Oct 2007 06:20:20 GMT
Author: kaushalye
Date: Wed Oct 10 23:20:19 2007
New Revision: 583687

URL: http://svn.apache.org/viewvc?rev=583687&view=rev
Log:
Processing SYMMETRIC BINDING assertion in a policy file

Modified:
    webservices/axis2/trunk/c/neethi/src/secpolicy/builder/secpolicy_builder.c

Modified: webservices/axis2/trunk/c/neethi/src/secpolicy/builder/secpolicy_builder.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/neethi/src/secpolicy/builder/secpolicy_builder.c?rev=583687&r1=583686&r2=583687&view=diff
==============================================================================
--- webservices/axis2/trunk/c/neethi/src/secpolicy/builder/secpolicy_builder.c (original)
+++ webservices/axis2/trunk/c/neethi/src/secpolicy/builder/secpolicy_builder.c Wed Oct 10
23:20:19 2007
@@ -123,6 +123,23 @@
                                       RP_PROPERTY_ASYMMETRIC_BINDING);
                 rp_secpolicy_set_binding(secpolicy, env, binding);
             }
+            else if (type == ASSERTION_TYPE_SYMMETRIC_BINDING)
+            {
+                rp_property_t *binding = NULL;
+                rp_symmetric_binding_t *symmetric_binding = NULL;
+
+                symmetric_binding =
+                    (rp_symmetric_binding_t *)
+                    neethi_assertion_get_value(assertion, env);
+                if (!symmetric_binding)
+                {
+                    return AXIS2_FAILURE;
+                }
+                binding = rp_property_create(env);
+                rp_property_set_value(binding, env, symmetric_binding,
+                                      RP_PROPERTY_SYMMETRIC_BINDING);
+                rp_secpolicy_set_binding(secpolicy, env, binding);
+            }
             else if (type == ASSERTION_TYPE_SUPPORTING_TOKENS)
             {
                 rp_supporting_tokens_t *supporting_tokens = NULL;



---------------------------------------------------------------------
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