]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Less verbose debugging (also don't log private keys)
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 3 Jun 2014 10:53:04 +0000 (12:53 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 3 Jun 2014 10:53:04 +0000 (12:53 +0200)
Magicsig private keys were logged. That's probably not a good thing.
MagicEnvelope full XML entries no longer spam the log either.

plugins/OStatus/classes/Magicsig.php
plugins/OStatus/lib/magicenvelope.php

index 2ee52dd347e583cde627ea0e106494dc69b5956b..289865a97f692eaad1fc4951e85302304cc9e4bb 100644 (file)
@@ -224,8 +224,6 @@ class Magicsig extends Managed_DataObject
      */
     public function loadKey($mod, $exp, $type = 'public')
     {
-        common_log(LOG_DEBUG, "Adding ".$type." key: (".$mod .', '. $exp .")");
-
         $rsa = new Crypt_RSA();
         $rsa->setSignatureMode(CRYPT_RSA_SIGNATURE_PKCS1);
         $rsa->setHash($this->getHash());
index 1d18d6934a49459bdbe928777577ca6904dc715c..4f240cc9b8c57070490b089faa6ea459e7a9057e 100644 (file)
@@ -188,7 +188,6 @@ class MagicEnvelope
         $xs->elementEnd('me:env');
 
         $string =  $xs->getString();
-        common_debug('MagicEnvelope XML: ' . $string);
         return $string;
     }