Less verbose debugging (also don't log private keys)
Magicsig private keys were logged. That's probably not a good thing. MagicEnvelope full XML entries no longer spam the log either.
This commit is contained in:
parent
aaef11077d
commit
d350a20e1f
@ -224,8 +224,6 @@ class Magicsig extends Managed_DataObject
|
|||||||
*/
|
*/
|
||||||
public function loadKey($mod, $exp, $type = 'public')
|
public function loadKey($mod, $exp, $type = 'public')
|
||||||
{
|
{
|
||||||
common_log(LOG_DEBUG, "Adding ".$type." key: (".$mod .', '. $exp .")");
|
|
||||||
|
|
||||||
$rsa = new Crypt_RSA();
|
$rsa = new Crypt_RSA();
|
||||||
$rsa->setSignatureMode(CRYPT_RSA_SIGNATURE_PKCS1);
|
$rsa->setSignatureMode(CRYPT_RSA_SIGNATURE_PKCS1);
|
||||||
$rsa->setHash($this->getHash());
|
$rsa->setHash($this->getHash());
|
||||||
|
@ -188,7 +188,6 @@ class MagicEnvelope
|
|||||||
$xs->elementEnd('me:env');
|
$xs->elementEnd('me:env');
|
||||||
|
|
||||||
$string = $xs->getString();
|
$string = $xs->getString();
|
||||||
common_debug('MagicEnvelope XML: ' . $string);
|
|
||||||
return $string;
|
return $string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user