From b839cab22cb2fe691b2187c28a404272c8d68c8d Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Mon, 7 Mar 2011 13:24:19 +0000 Subject: [PATCH] SAML2: Log encryption/decryption of NameID in LogoutRequest and Assertiion. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2746 44740490-163a-0410-bde0-09ae8108e29a --- lib/SAML2/Assertion.php | 1 + lib/SAML2/LogoutRequest.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib/SAML2/Assertion.php b/lib/SAML2/Assertion.php index 740c6a835..11a5434d5 100644 --- a/lib/SAML2/Assertion.php +++ b/lib/SAML2/Assertion.php @@ -624,6 +624,7 @@ class SAML2_Assertion implements SAML2_SignedElement { } $nameId = SAML2_Utils::decryptElement($this->encryptedNameId, $key); + SimpleSAML_Utilities::debugMessage($nameId, 'decrypt'); $this->nameId = SAML2_Utils::parseNameId($nameId); $this->encryptedNameId = NULL; diff --git a/lib/SAML2/LogoutRequest.php b/lib/SAML2/LogoutRequest.php index ea3790d69..1fd7b8543 100644 --- a/lib/SAML2/LogoutRequest.php +++ b/lib/SAML2/LogoutRequest.php @@ -99,6 +99,7 @@ class SAML2_LogoutRequest extends SAML2_Request { SAML2_Utils::addNameId($root, $this->nameId); $nameId = $root->firstChild; + SimpleSAML_Utilities::debugMessage($nameId, 'encrypt'); /* Encrypt the NameID. */ $enc = new XMLSecEnc(); @@ -127,6 +128,7 @@ class SAML2_LogoutRequest extends SAML2_Request { } $nameId = SAML2_Utils::decryptElement($this->encryptedNameId, $key); + SimpleSAML_Utilities::debugMessage($nameId, 'decrypt'); $this->nameId = SAML2_Utils::parseNameId($nameId); $this->encryptedNameId = NULL; -- GitLab