X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-xmltooling.git;a=blobdiff_plain;f=xmltoolingtest%2FSecurityHelperTest.h;h=6d57690015f024e0263e931a938610e66d4618f1;hp=70e451b8d31119fcba6da7f5f1cd5cf432948342;hb=2b4a6cd70522f955d101f73a08fe3d685b7877c5;hpb=ef331b0a0a5090d9e2ce53fb40835acea0764a7c diff --git a/xmltoolingtest/SecurityHelperTest.h b/xmltoolingtest/SecurityHelperTest.h index 70e451b..6d57690 100644 --- a/xmltoolingtest/SecurityHelperTest.h +++ b/xmltoolingtest/SecurityHelperTest.h @@ -32,6 +32,7 @@ public: void tearDown() { for_each(certs.begin(), certs.end(), xmltooling::cleanup()); + certs.clear(); } void testKeysFromFiles() { @@ -87,6 +88,11 @@ public: SecurityHelper::getDEREncoding(*certs[2]), SecurityHelper::getDEREncoding(*key1.get()) ); + TSM_ASSERT_EQUALS( + "Certificate and its key produced different hashed encodings", + SecurityHelper::getDEREncoding(*certs[2], true), SecurityHelper::getDEREncoding(*key1.get(), true) + ); + for_each(certs.begin(), certs.end(), xmltooling::cleanup()); certs.clear(); }