You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by ma...@apache.org on 2007/05/29 07:09:38 UTC

svn commit: r542413 - in /webservices/rampart/trunk/c: include/rampart_context.h src/util/rampart_context.c src/util/rampart_engine.c

Author: manjula
Date: Mon May 28 22:09:37 2007
New Revision: 542413

URL: http://svn.apache.org/viewvc?view=rev&rev=542413
Log:
Adding the replay detection seting to rampart_engine.

Modified:
    webservices/rampart/trunk/c/include/rampart_context.h
    webservices/rampart/trunk/c/src/util/rampart_context.c
    webservices/rampart/trunk/c/src/util/rampart_engine.c

Modified: webservices/rampart/trunk/c/include/rampart_context.h
URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/c/include/rampart_context.h?view=diff&rev=542413&r1=542412&r2=542413
==============================================================================
--- webservices/rampart/trunk/c/include/rampart_context.h (original)
+++ webservices/rampart/trunk/c/include/rampart_context.h Mon May 28 22:09:37 2007
@@ -78,10 +78,9 @@
     * Frees a rampart_context.
     * @rampart_context the rampart_context
     * @env pointer to environment struct
-    * @return AXIS2_SUCCESS on success else AXIS2_FAILURE. 
     */
 
-    AXIS2_EXTERN axis2_status_t AXIS2_CALL
+    AXIS2_EXTERN void AXIS2_CALL
     rampart_context_free(rampart_context_t *rampart_context,
                          const axutil_env_t *env);
 

Modified: webservices/rampart/trunk/c/src/util/rampart_context.c
URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/c/src/util/rampart_context.c?view=diff&rev=542413&r1=542412&r2=542413
==============================================================================
--- webservices/rampart/trunk/c/src/util/rampart_context.c (original)
+++ webservices/rampart/trunk/c/src/util/rampart_context.c Mon May 28 22:09:37 2007
@@ -172,7 +172,7 @@
     return rampart_context;
 }
 
-AXIS2_EXTERN axis2_status_t AXIS2_CALL
+AXIS2_EXTERN void AXIS2_CALL
 rampart_context_free(rampart_context_t *rampart_context,
                      const axutil_env_t *env)
 {
@@ -188,7 +188,7 @@
         AXIS2_FREE(env->allocator,rampart_context);
         rampart_context = NULL;
     }
-    return AXIS2_SUCCESS;
+    return;
 }
 
 

Modified: webservices/rampart/trunk/c/src/util/rampart_engine.c
URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/c/src/util/rampart_engine.c?view=diff&rev=542413&r1=542412&r2=542413
==============================================================================
--- webservices/rampart/trunk/c/src/util/rampart_engine.c (original)
+++ webservices/rampart/trunk/c/src/util/rampart_engine.c Mon May 28 22:09:37 2007
@@ -150,6 +150,10 @@
     if(status!=AXIS2_SUCCESS)
         return NULL;
 
+    status = rampart_context_set_rd_val_from_file(rampart_context,env);
+    if(status!=AXIS2_SUCCESS)
+        return NULL;
+
     status = rampart_context_set_password_type_from_file(rampart_context,env);
     if(status!=AXIS2_SUCCESS)
         return NULL;
@@ -170,6 +174,8 @@
         if(authn_provider)
             rampart_context_set_authn_provider(rampart_context,env,authn_provider);
     }
+    
+
     if(!axis2_msg_ctx_get_server_side(msg_ctx, env))
     {
         property = axutil_property_create_with_args(env, AXIS2_SCOPE_APPLICATION,