Bypass xmltooling/signing bug by using a fresh document once the signature is added.
authorScott Cantor <cantor.2@osu.edu>
Thu, 15 Oct 2009 22:04:15 +0000 (22:04 +0000)
committerScott Cantor <cantor.2@osu.edu>
Thu, 15 Oct 2009 22:04:15 +0000 (22:04 +0000)
shibsp/handler/impl/MetadataGenerator.cpp

index c89e8ce..5941a5d 100644 (file)
@@ -397,7 +397,7 @@ pair<bool,long> MetadataGenerator::processMessage(
 
             // Sign while marshalling.
             vector<Signature*> sigs(1,sig);
-            prettyentity->marshall(prettydoc,&sigs,cred);
+            prettyentity->marshall((DOMDocument*)NULL,&sigs,cred);
             s << *prettyentity;
         }
         else {