projects
/
shibboleth
/
cpp-xmltooling.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support alternate hash algorithms in helper routines.
[shibboleth/cpp-xmltooling.git]
/
xmltoolingtest
/
SecurityHelperTest.h
diff --git
a/xmltoolingtest/SecurityHelperTest.h
b/xmltoolingtest/SecurityHelperTest.h
index
e5812a6
..
3b7640c
100644
(file)
--- a/
xmltoolingtest/SecurityHelperTest.h
+++ b/
xmltoolingtest/SecurityHelperTest.h
@@
-96,6
+96,11
@@
public:
SecurityHelper::getDEREncoding(*certs[2], true), SecurityHelper::getDEREncoding(*key1.get(), true)
);
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<XSECCryptoX509>());
certs.clear();
}
for_each(certs.begin(), certs.end(), xmltooling::cleanup<XSECCryptoX509>());
certs.clear();
}