[cpp-opensaml] branch master updated: Remove old c14n API dependencies.
Scott Cantor
cantor.2 at osu.edu
Wed Dec 13 16:51:14 EST 2017
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch master
in repository cpp-opensaml.
View the commit online:
http://git.shibboleth.net/view/?p=cpp-opensaml.git;a=commit;h=335ffbd804f7c762de621867e72dd311ef1f8d15
The following commit(s) were added to refs/heads/master by this push:
new 335ffbd Remove old c14n API dependencies.
335ffbd is described below
commit 335ffbd804f7c762de621867e72dd311ef1f8d15
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Dec 13 16:51:09 2017 -0500
Remove old c14n API dependencies.
---
saml/signature/SignatureProfileValidator.cpp | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/saml/signature/SignatureProfileValidator.cpp b/saml/signature/SignatureProfileValidator.cpp
index 90af549..5bc0ebb 100644
--- a/saml/signature/SignatureProfileValidator.cpp
+++ b/saml/signature/SignatureProfileValidator.cpp
@@ -93,13 +93,10 @@ void SignatureProfileValidator::validateSignature(const Signature& sigObj) const
if (dynamic_cast<const DSIGTransformEnvelope*>(t)) {
valid=true;
}
- else {
- const DSIGTransformC14n* ct = dynamic_cast<const DSIGTransformC14n*>(t);
- if (!ct || ct->getCanonicalizationMethod() == CANON_NONE) {
- valid = false;
- Category::getInstance(SAML_LOGCAT ".SignatureProfileValidator").error("signature contained an invalid transform");
- break;
- }
+ else if (!dynamic_cast<const DSIGTransformC14n*>(t)) {
+ Category::getInstance(SAML_LOGCAT ".SignatureProfileValidator").error("signature contained an invalid transform");
+ valid = false;
+ break;
}
}
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list