From fc0fe717882eefca7a423fe241f40ce66fd93272 Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tvdijen@gmail.com> Date: Wed, 25 Sep 2019 12:14:50 +0200 Subject: [PATCH] Use getter-methods --- modules/saml/lib/Message.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/saml/lib/Message.php b/modules/saml/lib/Message.php index 0d5ab93e7..9d5c9275d 100644 --- a/modules/saml/lib/Message.php +++ b/modules/saml/lib/Message.php @@ -768,7 +768,7 @@ class Message $clientCert = str_replace(["\r", "\n", " "], '', $matches[1]); $keyInfo = []; - foreach ($scd->info as $thing) { + foreach ($scd->getInfo() as $thing) { if ($thing instanceof KeyInfo) { $keyInfo[] = $thing; } @@ -780,7 +780,7 @@ class Message } $x509data = []; - foreach ($keyInfo[0]->info as $thing) { + foreach ($keyInfo[0]->getInfo() as $thing) { if ($thing instanceof X509Data) { $x509data[] = $thing; } @@ -792,7 +792,7 @@ class Message } $x509cert = []; - foreach ($x509data[0]->data as $thing) { + foreach ($x509data[0]->getData() as $thing) { if ($thing instanceof X509Certificate) { $x509cert[] = $thing; } @@ -803,7 +803,7 @@ class Message continue; } - $HoKCertificate = $x509cert[0]->certificate; + $HoKCertificate = $x509cert[0]->getCertificate(); if ($HoKCertificate !== $clientCert) { $lastError = 'Provided client certificate does not match the certificate bound to the '. 'Holder-of-Key assertion'; -- GitLab