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

saml:SP: Fix decryption of NameID received in logout request.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2616 44740490-163a-0410-bde0-09ae8108e29a
parent 781fda18
No related branches found
No related tags found
No related merge requests found
......@@ -266,7 +266,7 @@ class sspmod_saml_Message {
* @param SimpleSAML_Configuration $dstMetadata The metadata of the recipient (SP).
* @return XMLSecurityKey The decryption key.
*/
private static function getDecryptionKey(SimpleSAML_Configuration $srcMetadata,
public static function getDecryptionKey(SimpleSAML_Configuration $srcMetadata,
SimpleSAML_Configuration $dstMetadata) {
$sharedKey = $srcMetadata->getString('sharedkey', NULL);
......
......@@ -64,7 +64,7 @@ if ($message instanceof SAML2_LogoutResponse) {
if ($message->isNameIdEncrypted()) {
try {
$key = self::getDecryptionKey($idpMetadata, $spMetadata);
$key = sspmod_saml_Message::getDecryptionKey($idpMetadata, $spMetadata);
} catch (Exception $e) {
throw new SimpleSAML_Error_Exception('Error decrypting NameID: ' . $e->getMessage());
}
......
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