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
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}