From 960baae1d1741d0851c6ccfbf20dc0e1baa4f293 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Mon, 5 May 2014 17:48:21 +0200 Subject: [PATCH] More debugging in Magicsig class verify method --- plugins/OStatus/classes/Magicsig.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/OStatus/classes/Magicsig.php b/plugins/OStatus/classes/Magicsig.php index c07a082495..753ce90c10 100644 --- a/plugins/OStatus/classes/Magicsig.php +++ b/plugins/OStatus/classes/Magicsig.php @@ -198,6 +198,7 @@ class Magicsig extends Managed_DataObject // parse components if (!preg_match('/RSA\.([^\.]+)\.([^\.]+)(.([^\.]+))?/', $text, $matches)) { + common_debug('Magicsig error: RSA key not found in provided string.'); return false; } @@ -214,6 +215,8 @@ class Magicsig extends Managed_DataObject $magic_sig->loadKey($mod, $private_exp, 'private'); } + common_debug('Magicsig success: Public exponent from provided string: '.var_export($mod,true)); + return $magic_sig; } -- 2.39.5