Add const cast for older xmlsec.
authorScott Cantor <cantor.2@osu.edu>
Tue, 14 Sep 2010 02:03:47 +0000 (02:03 +0000)
committerScott Cantor <cantor.2@osu.edu>
Tue, 14 Sep 2010 02:03:47 +0000 (02:03 +0000)
saml/signature/ContentReference.cpp

index 127dbbd..a40fbc6 100644 (file)
@@ -96,7 +96,7 @@ void ContentReference::createReferences(DSIGSignature* sig)
         }
         if (!prefixes.empty()) {
             prefixes.erase(prefixes.begin() + prefixes.size() - 1);
-            c14n->setInclusiveNamespaces(prefixes.c_str());
+            c14n->setInclusiveNamespaces(const_cast<XMLCh*>(prefixes.c_str()));
         }
     }
 }