Skip to content
Snippets Groups Projects
Commit c33f241b authored by Olav Morken's avatar Olav Morken
Browse files

SAMLParser: Normalize fingerprint we validate against.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2320 44740490-163a-0410-bde0-09ae8108e29a
parent ed53d76c
No related branches found
No related tags found
No related merge requests found
......@@ -1162,6 +1162,9 @@ class SimpleSAML_Metadata_SAMLParser {
* @return TRUE if it was signed with the certificate with the given fingerprint, FALSE otherwise.
*/
public function validateFingerprint($fingerprint) {
assert('is_string($fingerprint)');
$fingerprint = strtolower(str_replace(":", "", $fingerprint));
foreach ($this->validators as $validator) {
foreach ($validator->getValidatingCertificates() as $cert) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment