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 mi...@apache.org on 2008/06/03 13:32:07 UTC

svn commit: r662745 - /webservices/rampart/trunk/c/src/util/rampart_encryption.c

Author: milinda
Date: Tue Jun  3 04:32:06 2008
New Revision: 662745

URL: http://svn.apache.org/viewvc?rev=662745&view=rev
Log:
Fixing encrypting length problem associated with Security Policy sample 15.

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

Modified: webservices/rampart/trunk/c/src/util/rampart_encryption.c
URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/c/src/util/rampart_encryption.c?rev=662745&r1=662744&r2=662745&view=diff
==============================================================================
--- webservices/rampart/trunk/c/src/util/rampart_encryption.c (original)
+++ webservices/rampart/trunk/c/src/util/rampart_encryption.c Tue Jun  3 04:32:06 2008
@@ -299,7 +299,7 @@
                    oxs_buffer_get_size(key_buf, env), OXS_KEY_USAGE_NONE);
             rampart_context_set_encryption_session_key(rampart_context, env, session_key);
         }
-        if(token_type == RP_PROPERTY_SAML_TOKEN)
+        else if(token_type == RP_PROPERTY_SAML_TOKEN)
         {			
 			session_key = rampart_saml_token_get_session_key(saml, env);
 			if (!session_key)