public function verify(Profile $profile)
{
if ($this->alg != 'RSA-SHA256') {
- common_log(LOG_DEBUG, 'Salmon error: bad algorithm: '._ve($this->alg));
+ common_debug('Salmon error: bad algorithm: ' . _ve($this->alg));
return false;
}
if ($this->encoding != self::ENCODING) {
- common_log(LOG_DEBUG, 'Salmon error: bad encoding: '._ve($this->encoding));
+ common_debug('Salmon error: bad encoding: ' . _ve($this->encoding));
return false;
}
try {
$magicsig = $this->getKeyPair($profile, true); // Do discovery too if necessary
} catch (Exception $e) {
- common_log(LOG_DEBUG, "Salmon error: getKeyPair for profile id=={$profile->getID()}: "._ve($e->getMessage()));
+ common_debug("Salmon error: getKeyPair for profile id=={$profile->getID()}: " . _ve($e->getMessage()));
return false;
}