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 ka...@apache.org on 2007/06/04 09:28:42 UTC
svn commit: r544081 - in /webservices/rampart/trunk/c:
include/rampart_replay_detector.h src/util/rampart_replay_detector.c
Author: kaushalye
Date: Mon Jun 4 00:28:39 2007
New Revision: 544081
URL: http://svn.apache.org/viewvc?view=rev&rev=544081
Log:
Final cleanup code for replay detection module
Modified:
webservices/rampart/trunk/c/include/rampart_replay_detector.h
webservices/rampart/trunk/c/src/util/rampart_replay_detector.c
Modified: webservices/rampart/trunk/c/include/rampart_replay_detector.h
URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/c/include/rampart_replay_detector.h?view=diff&rev=544081&r1=544080&r2=544081
==============================================================================
--- webservices/rampart/trunk/c/include/rampart_replay_detector.h (original)
+++ webservices/rampart/trunk/c/include/rampart_replay_detector.h Mon Jun 4 00:28:39 2007
@@ -96,7 +96,10 @@
AXIS2_EXTERN axutil_linked_list_t *AXIS2_CALL
rampart_replay_detector_set_ll_db(const axutil_env_t *env,
axis2_ctx_t *ctx);
-
+
+ AXIS2_EXTERN axis2_status_t AXIS2_CALL
+ rampart_replay_detector_final_cleanup(const axutil_env_t *env,
+ axis2_msg_ctx_t* msg_ctx);
/*************************** Function macros **********************************/
#define RAMPART_REPLAY_DETECTOR_LOAD(replay_detector, env) \
((replay_detector)->ops->load(replay_detector, env))
Modified: webservices/rampart/trunk/c/src/util/rampart_replay_detector.c
URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/c/src/util/rampart_replay_detector.c?view=diff&rev=544081&r1=544080&r2=544081
==============================================================================
--- webservices/rampart/trunk/c/src/util/rampart_replay_detector.c (original)
+++ webservices/rampart/trunk/c/src/util/rampart_replay_detector.c Mon Jun 4 00:28:39 2007
@@ -229,6 +229,25 @@
return ll_db;
}
+AXIS2_EXTERN axis2_status_t AXIS2_CALL
+rampart_replay_detector_final_cleanup(const axutil_env_t *env,
+ axis2_msg_ctx_t* msg_ctx)
+{
+ axutil_linked_list_t *ll = NULL;
+ int count = 0;
+ int i = 0;
+
+ ll = rampart_replay_detector_get_ll_db(env, msg_ctx);
+ count = axutil_linked_list_size(ll, env);
+ for(i=0; i<count; i++){
+ axis2_char_t *tmp_id = NULL;
+
+ tmp_id = (axis2_char_t*)axutil_linked_list_get(ll, env, i);
+ AXIS2_FREE(env->allocator, tmp_id);
+ }
+ axutil_linked_list_free(ll, env);
+ return AXIS2_SUCCESS;
+}
AXIS2_EXTERN axis2_status_t AXIS2_CALL
rampart_replay_detector_with_linked_list(const axutil_env_t *env,