X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-xmltooling.git;a=blobdiff_plain;f=xmltoolingtest%2FSecurityHelperTest.h;h=3b7640c8f56531d3733ce81189ba14c3067fe481;hp=e5812a6ae93c7bed6709858860b3ab9a1c9f2b2d;hb=c4b9345c1dac797b6492ed5c1eb695236852fe24;hpb=41d10205744e6cc07f435efd29838384c54a6b03 diff --git a/xmltoolingtest/SecurityHelperTest.h b/xmltoolingtest/SecurityHelperTest.h index e5812a6..3b7640c 100644 --- a/xmltoolingtest/SecurityHelperTest.h +++ b/xmltoolingtest/SecurityHelperTest.h @@ -96,6 +96,11 @@ public: SecurityHelper::getDEREncoding(*certs[2], true), SecurityHelper::getDEREncoding(*key1.get(), true) ); + TSM_ASSERT_EQUALS( + "Certificate and its key produced different hashed encodings", + SecurityHelper::getDEREncoding(*certs[2], true, true, "SHA256"), SecurityHelper::getDEREncoding(*key1.get(), true, true, "SHA256") + ); + for_each(certs.begin(), certs.end(), xmltooling::cleanup()); certs.clear(); }