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/05/04 11:53:17 UTC

svn commit: r535142 - in /webservices/rampart/tags/c/0.90/c: rampart-bindist.sh src/util/rampart_timestamp_token.c

Author: kaushalye
Date: Fri May  4 02:53:16 2007
New Revision: 535142

URL: http://svn.apache.org/viewvc?view=rev&rev=535142
Log:
Sync with trunk

Modified:
    webservices/rampart/tags/c/0.90/c/rampart-bindist.sh
    webservices/rampart/tags/c/0.90/c/src/util/rampart_timestamp_token.c

Modified: webservices/rampart/tags/c/0.90/c/rampart-bindist.sh
URL: http://svn.apache.org/viewvc/webservices/rampart/tags/c/0.90/c/rampart-bindist.sh?view=diff&rev=535142&r1=535141&r2=535142
==============================================================================
--- webservices/rampart/tags/c/0.90/c/rampart-bindist.sh (original)
+++ webservices/rampart/tags/c/0.90/c/rampart-bindist.sh Fri May  4 02:53:16 2007
@@ -54,6 +54,9 @@
 cp -r samples/secpolicy/* $BIN_DIR/samples/secpolicy/
 cp -r $AXIS2C_HOME/bin/samples/rampart/* $BIN_DIR/samples/
 cp -r $AXIS2C_HOME/services/sec_echo $BIN_DIR/samples/server/
+cp samples/server/sec_echo/services.xml $BIN_DIR/samples/server/sec_echo/services.xml
+cp samples/secpolicy/scenario7/client-outgoing-secpolicy.xml $BIN_DIR/samples/server/sec_echo/outgoing-secpolicy.xml
+cp samples/secpolicy/scenario7/client-incoming-secpolicy.xml $BIN_DIR/samples/server/sec_echo/incoming-secpolicy.xml
 
 echo "Copy headers"
 cp include/*.h $BIN_DIR/include

Modified: webservices/rampart/tags/c/0.90/c/src/util/rampart_timestamp_token.c
URL: http://svn.apache.org/viewvc/webservices/rampart/tags/c/0.90/c/src/util/rampart_timestamp_token.c?view=diff&rev=535142&r1=535141&r2=535142
==============================================================================
--- webservices/rampart/tags/c/0.90/c/src/util/rampart_timestamp_token.c (original)
+++ webservices/rampart/tags/c/0.90/c/src/util/rampart_timestamp_token.c Fri May  4 02:53:16 2007
@@ -138,8 +138,8 @@
     rampart_set_security_processed_result(env, msg_ctx,RAMPART_SPR_TS_CREATED, created_val);
     /*Check whether created is less than current time or not*/
     current_val = rampart_generate_time(env, 0);
-    validity = rampart_compare_date_time(env, created_val, current_val);
-    if (validity == AXIS2_FAILURE)
+    validity = rampart_compare_date_time(env, current_val, created_val);
+    if (validity == AXIS2_SUCCESS)
     {
         AXIS2_LOG_INFO(env->log, "[rampart][ts]Timestamp not valid: Created time is not valid");
         return AXIS2_FAILURE;