https://issues.shibboleth.net/jira/browse/CPPOST-36
[shibboleth/cpp-opensaml.git] / saml / signature / ContentReference.cpp
index fc71f1b..3f2674f 100644 (file)
@@ -48,7 +48,7 @@ void ContentReference::createReferences(DSIGSignature* sig)
     DSIGReference* ref=NULL;
     const XMLCh* id=m_signableObject.getXMLID();
     if (!id || !*id)
-        ref=sig->createReference(&chNull);  // whole doc reference
+        ref=sig->createReference(&chNull, m_digest ? m_digest : DSIGConstants::s_unicodeStrURISHA1);  // whole doc reference
     else {
         XMLCh* buf=new XMLCh[XMLString::stringLen(id) + 2];
         buf[0]=chPound;