Migrate to xmlsec 1.3 release, shrink a few headers.
[shibboleth/cpp-xmltooling.git] / xmltoolingtest / SignatureTest.h
index c50b86f..c1ca7ec 100644 (file)
@@ -17,6 +17,7 @@
 #include "XMLObjectBaseTestCase.h"\r
 \r
 #include <xmltooling/signature/CredentialResolver.h>\r
+#include <xmltooling/signature/KeyInfo.h>\r
 #include <xmltooling/signature/SignatureValidator.h>\r
 \r
 #include <fstream>\r
@@ -135,11 +136,10 @@ public:
         for_each(m_resolver->getCertificates().begin(),m_resolver->getCertificates().end(),bind1st(_addcert(),x509Data));\r
         sig->setKeyInfo(keyInfo);\r
         \r
-        // Signing context for the whole document.\r
-        vector<Signature*> sigs(1,sig);\r
         DOMElement* rootElement = NULL;\r
         try {\r
-            rootElement=sxObject->marshall((DOMDocument*)NULL,&sigs);\r
+            rootElement=sxObject->marshall((DOMDocument*)NULL);\r
+            sig->sign();\r
         }\r
         catch (XMLToolingException& e) {\r
             TS_TRACE(e.what());\r