https://issues.shibboleth.net/jira/browse/CPPOST-67
[shibboleth/cpp-opensaml.git] / saml / signature / ContentReference.cpp
index 320daac..e430fb4 100644 (file)
@@ -69,6 +69,7 @@ ContentReference::~ContentReference()
 void ContentReference::createReferences(DSIGSignature* sig)
 {
     DSIGReference* ref = nullptr;
+    sig->setIdByAttributeName(false);
     const XMLCh* id=m_signableObject.getXMLID();
     if (!id || !*id)
         ref=sig->createReference(&chNull, m_digest ? m_digest : DSIGConstants::s_unicodeStrURISHA1);  // whole doc reference