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/13 08:34:26 UTC

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

Author: milinda
Date: Thu Jun 12 23:34:26 2008
New Revision: 667379

URL: http://svn.apache.org/viewvc?rev=667379&view=rev
Log:
Fixed wrong if block in rampart sec header processor.

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=667379&r1=667378&r2=667379&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 Jun 12 23:34:26 2008
@@ -140,14 +140,14 @@
     int serial_num = -1;
     oxs_key_mgr_t *key_mgr = NULL;
     
-    if(rampart_context_get_receiver_certificate_file(rampart_ctx, env))
+    if((cert = rampart_context_get_receiver_certificate(rampart_ctx, env)))
     {
         /* In the client side, it is prefered to use certificate files instead 
          * of key store, because one client normally interact with only one
          * service. To handle this scenario, if we found reciever certificate file 
          * specified in rampart_context we directly call the get_reciever_certificate. 
          */
-        return rampart_context_get_receiver_certificate(rampart_ctx, env);
+        return cert;
     }
     
     issuer_serial_node = axiom_node_get_first_child(x509_data_node, env);