More debugging in Magicsig class verify method

This commit is contained in:
Mikael Nordfeldth 2014-05-05 17:48:21 +02:00
parent 2ce1b77314
commit 960baae1d1

View File

@ -198,6 +198,7 @@ class Magicsig extends Managed_DataObject
// parse components // parse components
if (!preg_match('/RSA\.([^\.]+)\.([^\.]+)(.([^\.]+))?/', $text, $matches)) { if (!preg_match('/RSA\.([^\.]+)\.([^\.]+)(.([^\.]+))?/', $text, $matches)) {
common_debug('Magicsig error: RSA key not found in provided string.');
return false; return false;
} }
@ -214,6 +215,8 @@ class Magicsig extends Managed_DataObject
$magic_sig->loadKey($mod, $private_exp, 'private'); $magic_sig->loadKey($mod, $private_exp, 'private');
} }
common_debug('Magicsig success: Public exponent from provided string: '.var_export($mod,true));
return $magic_sig; return $magic_sig;
} }