From: Mikael Nordfeldth Date: Mon, 5 May 2014 15:48:21 +0000 (+0200) Subject: More debugging in Magicsig class verify method X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=960baae1d1741d0851c6ccfbf20dc0e1baa4f293;p=quix0rs-gnu-social.git More debugging in Magicsig class verify method --- 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; }