Made message signing in Cryptography use SHA512 as the message content for... #1

Closed
netkas wants to merge 421 commits from master into dev
Showing only changes of commit 1cab09b675 - Show all commits

View file

@ -71,6 +71,21 @@
return $this->username === ReservedUsernames::HOST->value && $this->domain === Configuration::getInstanceConfiguration()->getDomain();
}
/**
* Determines if the peer is external.
*
* @return bool True if the peer is external, false otherwise.
*/
public function isExternal(): bool
{
if($this->isHost())
{
return false;
}
return $this->username === ReservedUsernames::HOST->value;
}
/**
* Returns whether the peer requires authentication, for example, the anonymous user does not require authentication
*