ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kausha...@apache.org
Subject svn commit: r585067 - in /webservices/axis2/trunk/c/neethi: include/rp_defines.h include/rp_rampart_config.h src/secpolicy/builder/rampart_config_builder.c src/secpolicy/model/rampart_config.c
Date Tue, 16 Oct 2007 07:45:21 GMT
Author: kaushalye
Date: Tue Oct 16 00:45:20 2007
New Revision: 585067

URL: http://svn.apache.org/viewvc?rev=585067&view=rev
Log:
replay detection module configuration added. (patch for RAMPARTC-35 https://issues.apache.org/jira/secure/attachment/12367800/replay_detection_neethi.patch)

Modified:
    webservices/axis2/trunk/c/neethi/include/rp_defines.h
    webservices/axis2/trunk/c/neethi/include/rp_rampart_config.h
    webservices/axis2/trunk/c/neethi/src/secpolicy/builder/rampart_config_builder.c
    webservices/axis2/trunk/c/neethi/src/secpolicy/model/rampart_config.c

Modified: webservices/axis2/trunk/c/neethi/include/rp_defines.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/neethi/include/rp_defines.h?rev=585067&r1=585066&r2=585067&view=diff
==============================================================================
--- webservices/axis2/trunk/c/neethi/include/rp_defines.h (original)
+++ webservices/axis2/trunk/c/neethi/include/rp_defines.h Tue Oct 16 00:45:20 2007
@@ -188,6 +188,7 @@
 #define RP_PRIVATE_KEY "PrivateKey"
 #define RP_TIME_TO_LIVE "TimeToLive"
 #define RP_RD "ReplayDetection"
+#define RP_RD_MODULE "ReplayDetectionModule"
 
 #define RP_SP_NS "http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"
 #define RP_SECURITY_NS "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"

Modified: webservices/axis2/trunk/c/neethi/include/rp_rampart_config.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/neethi/include/rp_rampart_config.h?rev=585067&r1=585066&r2=585067&view=diff
==============================================================================
--- webservices/axis2/trunk/c/neethi/include/rp_rampart_config.h (original)
+++ webservices/axis2/trunk/c/neethi/include/rp_rampart_config.h Tue Oct 16 00:45:20 2007
@@ -86,6 +86,17 @@
         axis2_char_t * authenticate_module);
 
     AXIS2_EXTERN axis2_char_t *AXIS2_CALL
+    rp_rampart_config_get_replay_detector(
+        rp_rampart_config_t * rampart_config,
+        const axutil_env_t * env);
+
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
+    rp_rampart_config_set_replay_detector(
+        rp_rampart_config_t * rampart_config,
+        const axutil_env_t * env,
+        axis2_char_t * replay_detector);
+
+    AXIS2_EXTERN axis2_char_t *AXIS2_CALL
     rp_rampart_config_get_password_type(
         rp_rampart_config_t * rampart_config,
         const axutil_env_t * env);

Modified: webservices/axis2/trunk/c/neethi/src/secpolicy/builder/rampart_config_builder.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/neethi/src/secpolicy/builder/rampart_config_builder.c?rev=585067&r1=585066&r2=585067&view=diff
==============================================================================
--- webservices/axis2/trunk/c/neethi/src/secpolicy/builder/rampart_config_builder.c (original)
+++ webservices/axis2/trunk/c/neethi/src/secpolicy/builder/rampart_config_builder.c Tue Oct
16 00:45:20 2007
@@ -154,6 +154,20 @@
         else
             return AXIS2_FAILURE;
     }
+    else if (axutil_strcmp(local_name, RP_RD_MODULE) == 0)
+    {
+        if (rp_match_rampart_config_qname
+            (env, RP_RD_MODULE, node, element))
+        {
+            axis2_char_t *replay_detector = NULL;
+            replay_detector = axiom_element_get_text(element, env, node);
+            return rp_rampart_config_set_replay_detector(rampart_config,
+														 env,
+														 replay_detector);
+        }
+        else
+            return AXIS2_FAILURE;
+    }
     else if (axutil_strcmp(local_name, RP_PASSWORD_TYPE) == 0)
     {
         if (rp_match_rampart_config_qname(env, RP_PASSWORD_TYPE, node, element))

Modified: webservices/axis2/trunk/c/neethi/src/secpolicy/model/rampart_config.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/neethi/src/secpolicy/model/rampart_config.c?rev=585067&r1=585066&r2=585067&view=diff
==============================================================================
--- webservices/axis2/trunk/c/neethi/src/secpolicy/model/rampart_config.c (original)
+++ webservices/axis2/trunk/c/neethi/src/secpolicy/model/rampart_config.c Tue Oct 16 00:45:20
2007
@@ -24,6 +24,7 @@
     axis2_char_t *encryption_user;
     axis2_char_t *password_callback_class;
     axis2_char_t *authenticate_module;
+    axis2_char_t *replay_detector;
     axis2_char_t *password_type;
     axis2_char_t *time_to_live;
     axis2_char_t *receiver_certificate_file;
@@ -57,6 +58,7 @@
     rampart_config->receiver_certificate_file = NULL;
     rampart_config->certificate_file = NULL;
     rampart_config->authenticate_module = NULL;
+    rampart_config->replay_detector = NULL;
     rampart_config->password_type = NULL;
     rampart_config->time_to_live = NULL;
     rampart_config->rd_val = NULL;
@@ -179,6 +181,28 @@
     return AXIS2_SUCCESS;
 }
 
+AXIS2_EXTERN axis2_char_t *AXIS2_CALL
+rp_rampart_config_get_replay_detector(
+    rp_rampart_config_t * rampart_config,
+    const axutil_env_t * env)
+{
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+
+    return rampart_config->replay_detector;
+}
+
+AXIS2_EXTERN axis2_status_t AXIS2_CALL
+rp_rampart_config_set_replay_detector(
+    rp_rampart_config_t * rampart_config,
+    const axutil_env_t * env,
+    axis2_char_t * replay_detector)
+{
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, replay_detector, AXIS2_FAILURE);
+
+    rampart_config->replay_detector = replay_detector;
+    return AXIS2_SUCCESS;
+}
 AXIS2_EXTERN axis2_char_t *AXIS2_CALL
 rp_rampart_config_get_password_type(
     rp_rampart_config_t * rampart_config,



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