Author: kaushalye
Date: Fri Nov 16 07:14:35 2007
New Revision: 595693

URL: http://svn.apache.org/viewvc?rev=595693&view=rev
Log:
If the signature is encrypted, add that info to the security processed results.


Modified:
    webservices/rampart/trunk/c/include/rampart_constants.h
    webservices/rampart/trunk/c/src/util/rampart_sec_header_processor.c

Modified: webservices/rampart/trunk/c/include/rampart_constants.h
URL: 
http://svn.apache.org/viewvc/webservices/rampart/trunk/c/include/rampart_constants.h?rev=595693&r1=595692&r2=595693&view=diff
==============================================================================
--- webservices/rampart/trunk/c/include/rampart_constants.h (original)
+++ webservices/rampart/trunk/c/include/rampart_constants.h Fri Nov 16 07:14:35 
2007
@@ -131,6 +131,7 @@
 #define RAMPART_SPR_ENC_CHECKED "SPR_ENC_Checked"
 #define RAMPART_SPR_SIG_VALUE "SPR_Sig_Val"
 #define RAMPART_SPR_SIG_VERIFIED "SPR_Sig_Verified"
+#define RAMPART_SPR_SIG_ENCRYPTED "SPR_Sig_Encrypted"
 
 #define RAMPART_YES "YES"
 #define RAMPART_NO "NO"

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=595693&r1=595692&r2=595693&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 Fri Nov 
16 07:14:35 2007
@@ -597,7 +597,10 @@
             asym_ctx = NULL;
             return AXIS2_FAILURE;
         }
-
+        /*Check if the signture is encrypted*/
+        if(0 == axutil_strcmp( OXS_NODE_SIGNATURE , 
axiom_util_get_localname(decrypted_node, env))){
+            rampart_set_security_processed_result(env, msg_ctx, 
RAMPART_SPR_SIG_ENCRYPTED, RAMPART_YES);
+        }
         /*Free*/
         oxs_ctx_free(ctx, env);
         ctx = NULL;
@@ -798,6 +801,10 @@
                         rampart_create_fault_envelope(env, 
RAMPART_FAULT_FAILED_CHECK,
                                           "Data decryption failed", 
RAMPART_FAULT_IN_ENCRYPTED_DATA, msg_ctx);
                         return AXIS2_FAILURE;
+                }
+                /*Check if the signture is encrypted*/
+                if(0 == axutil_strcmp( OXS_NODE_SIGNATURE , 
axiom_util_get_localname(decrypted_node, env))){
+                    rampart_set_security_processed_result(env, msg_ctx, 
RAMPART_SPR_SIG_ENCRYPTED, RAMPART_YES);
                 }
 
                 /*Free*/


Reply via email to