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

saml: Fix certFingerprint validation.

r2509 introduces a couple of errors, which caused certFingerprint
validation to fail. This commit fixes those errors.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2528 44740490-163a-0410-bde0-09ae8108e29a
parent d3d07d9b
No related branches found
No related tags found
No related merge requests found
...@@ -144,7 +144,7 @@ class sspmod_saml_Message { ...@@ -144,7 +144,7 @@ class sspmod_saml_Message {
} }
} elseif ($srcMetadata->hasValue('certFingerprint')) { } elseif ($srcMetadata->hasValue('certFingerprint')) {
$certFingerPrint = $srcMetadata->getArrayizeString('certFingerprint'); $certFingerprint = $srcMetadata->getArrayizeString('certFingerprint');
foreach ($certFingerprint as &$fp) { foreach ($certFingerprint as &$fp) {
$fp = strtolower(str_replace(':', '', $fp)); $fp = strtolower(str_replace(':', '', $fp));
} }
...@@ -163,7 +163,7 @@ class sspmod_saml_Message { ...@@ -163,7 +163,7 @@ class sspmod_saml_Message {
SimpleSAML_Logger::debug('Found ' . count($certificates) . ' certificates in ' . get_class($element)); SimpleSAML_Logger::debug('Found ' . count($certificates) . ' certificates in ' . get_class($element));
} }
$pemCert = self::findCertificate($certFingerprints, $certificates); $pemCert = self::findCertificate($certFingerprint, $certificates);
$pemKeys = array($pemCert); $pemKeys = array($pemCert);
} else { } else {
/* Attempt CA validation. */ /* Attempt CA validation. */
......
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