X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FLDSignature.php;h=b5a55ea3596f8b43dcaebca876c45bf028a30fa3;hb=311c1fdd81b24c1a9afd70a8213d4b79b118e0d2;hp=9762b837f3bca737269d4ca87f78d95d5f45f855;hpb=1de3960e267a8d298348fbca18cf1be1f6a20f7a;p=friendica.git diff --git a/src/Util/LDSignature.php b/src/Util/LDSignature.php index 9762b837f3..b5a55ea359 100644 --- a/src/Util/LDSignature.php +++ b/src/Util/LDSignature.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Util; @@ -6,7 +25,7 @@ use Friendica\Core\Logger; use Friendica\Model\APContact; /** - * @brief Implements JSON-LD signatures + * Implements JSON-LD signatures * * Ported from Osada: https://framagit.org/macgirvin/osada */ @@ -38,7 +57,7 @@ class LDSignature $dhash = self::hash(self::signableData($data)); $x = Crypto::rsaVerify($ohash . $dhash, base64_decode($data['signature']['signatureValue']), $pubkey); - Logger::log('LD-verify: ' . intval($x)); + Logger::notice('LD-verify', ['verified' => (int)$x, 'actor' => $profile['url']]); if (empty($x)) { return false;