https://issues.shibboleth.net/jira/browse/CPPOST-36
authorScott Cantor <cantor.2@osu.edu>
Thu, 15 Oct 2009 18:51:10 +0000 (18:51 +0000)
committerScott Cantor <cantor.2@osu.edu>
Thu, 15 Oct 2009 18:51:10 +0000 (18:51 +0000)
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;