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/09/06 13:46:16 UTC

svn commit: r573227 - /webservices/rampart/trunk/c/src/util/rampart_sec_header_processor.c

Author: manjula
Date: Thu Sep  6 04:46:16 2007
New Revision: 573227

URL: http://svn.apache.org/viewvc?rev=573227&view=rev
Log:
Impreved error handling in timestamp processing.

Modified:
    webservices/rampart/trunk/c/src/util/rampart_sec_header_processor.c

Modified: webservices/rampart/trunk/c/src/util/rampart_sec_header_processor.c
URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/c/src/util/rampart_sec_header_processor.c?rev=573227&r1=573226&r2=573227&view=diff
==============================================================================
--- webservices/rampart/trunk/c/src/util/rampart_sec_header_processor.c (original)
+++ webservices/rampart/trunk/c/src/util/rampart_sec_header_processor.c Thu Sep  6 04:46:16 2007
@@ -145,6 +145,7 @@
         if(rampart_context_is_include_timestamp(rampart_context,env))
         {
             AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "[rampart][shp] Timestamp is not in the message");
+            rampart_create_fault_envelope(env, RAMPART_FAULT_FAILED_AUTHENTICATION, "Timestamp is not in the message ", RAMPART_FAULT_IN_TIMESTAMP, msg_ctx);
             return AXIS2_FAILURE;
         }else{
             return AXIS2_SUCCESS;
@@ -153,6 +154,7 @@
     else if(!rampart_context_is_include_timestamp(rampart_context,env))
     {
         AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "[rampart][shp] Timestamp should not be in the message.");
+        rampart_create_fault_envelope(env, RAMPART_FAULT_FAILED_AUTHENTICATION, "Timestamp should not be in the message ", RAMPART_FAULT_IN_TIMESTAMP, msg_ctx);
         return AXIS2_FAILURE;
     }
     else