[cpp-opensaml COMMIT] in /branches/REL_2: msbuild/Versions.props samlsign/samlsign.cpp

noreply at shibboleth.net noreply at shibboleth.net
Sun May 5 20:52:56 EDT 2013


Author: scantor
Date: Sun May  5 20:52:56 2013
New Revision: 765

URL: http://svn.shibboleth.net/view/cpp-opensaml?rev=765&view=rev
Log:
https://issues.shibboleth.net/jira/browse/CPPOST-86

Modified:
    branches/REL_2/msbuild/Versions.props
    branches/REL_2/samlsign/samlsign.cpp

Modified: branches/REL_2/msbuild/Versions.props
URL: http://svn.shibboleth.net/view/cpp-opensaml/branches/REL_2/msbuild/Versions.props?rev=765&r1=764&r2=765&view=diff
==============================================================================
Binary files - no diff available.

Modified: branches/REL_2/samlsign/samlsign.cpp
URL: http://svn.shibboleth.net/view/cpp-opensaml/branches/REL_2/samlsign/samlsign.cpp?rev=765&r1=764&r2=765&view=diff
==============================================================================
--- branches/REL_2/samlsign/samlsign.cpp (original)
+++ branches/REL_2/samlsign/samlsign.cpp Sun May  5 20:52:56 2013
@@ -363,15 +363,15 @@
 
             // Attach new signature.
             Signature* sig = SignatureBuilder::buildSignature();
-            if (alg_param) {
-                auto_ptr_XMLCh alg(alg_param);
+            signable->setSignature(sig);
+            auto_ptr_XMLCh alg(alg_param);
+            if (alg.get()) {
                 sig->setSignatureAlgorithm(alg.get());
             }
-            if (dig_param) {
-            	auto_ptr_XMLCh dig(dig_param);
+            auto_ptr_XMLCh dig(dig_param);
+            if (dig.get()) {
             	dynamic_cast<opensaml::ContentReference*>(sig->getContentReference())->setDigestAlgorithm(dig.get());
             }
-            signable->setSignature(sig);
 
             // Sign response while re-marshalling.
             vector<Signature*> sigs(1,sig);



More information about the commits mailing list