summaryrefslogtreecommitdiffstats
path: root/lib/SimpleSAML/Metadata/SAMLParser.php
diff options
context:
space:
mode:
authorAndreas Åkre Solberg <andreas.solberg@uninett.no>2008-06-18 10:46:42 +0000
committerAndreas Åkre Solberg <andreas.solberg@uninett.no>2008-06-18 10:46:42 +0000
commit64b25be39e760cafaa704b8ec8e6e0927436f2ab (patch)
treeb59a96edf0ab796a448e2e5f3b0c1945d19e5d62 /lib/SimpleSAML/Metadata/SAMLParser.php
parent62bcb6959e84a3acf401a1cd60a0f5b3ae985dee (diff)
downloadsimplesamlphp-64b25be39e760cafaa704b8ec8e6e0927436f2ab.zip
simplesamlphp-64b25be39e760cafaa704b8ec8e6e0927436f2ab.tar.gz
simplesamlphp-64b25be39e760cafaa704b8ec8e6e0927436f2ab.tar.bz2
Removing requirement of X509Certificate in metadata for parsing entities (Shib 1.3 IdP)
git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@670 44740490-163a-0410-bde0-09ae8108e29a
Diffstat (limited to 'lib/SimpleSAML/Metadata/SAMLParser.php')
-rw-r--r--lib/SimpleSAML/Metadata/SAMLParser.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/SimpleSAML/Metadata/SAMLParser.php b/lib/SimpleSAML/Metadata/SAMLParser.php
index c0939f1..9f15e1c 100644
--- a/lib/SimpleSAML/Metadata/SAMLParser.php
+++ b/lib/SimpleSAML/Metadata/SAMLParser.php
@@ -423,7 +423,14 @@ class SimpleSAML_Metadata_SAMLParser {
$certData = base64_decode($key['X509Certificate']);
if($certData === FALSE) {
- throw new Exception('Unable to parse base64 encoded certificate data.');
+ break;
+ /*
+ * At 2008-06-18 we removed the requirement for certificate to be emedded in metadata. Instead
+ * of throwing an exception which caused the whole parsing to crash, we just skip adding the
+ * certificate fingerprint for this entity.
+ *
+ * throw new Exception('Unable to parse base64 encoded certificate data.');
+ */
}
$ret['certFingerprint'] = sha1($certData);