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

Closed
netkas wants to merge 421 commits from master into dev
2 changed files with 3 additions and 1 deletions
Showing only changes of commit 8d6675915a - Show all commits

View file

@ -7,6 +7,7 @@
use Socialbox\Abstracts\Method; use Socialbox\Abstracts\Method;
use Socialbox\Enums\ReservedUsernames; use Socialbox\Enums\ReservedUsernames;
use Socialbox\Enums\StandardError; use Socialbox\Enums\StandardError;
use Socialbox\Exceptions\Standard\MissingRpcArgumentException;
use Socialbox\Exceptions\Standard\StandardRpcException; use Socialbox\Exceptions\Standard\StandardRpcException;
use Socialbox\Interfaces\SerializableInterface; use Socialbox\Interfaces\SerializableInterface;
use Socialbox\Objects\ClientRequest; use Socialbox\Objects\ClientRequest;
@ -25,7 +26,7 @@
// Check if the required 'peer' parameter is set. // Check if the required 'peer' parameter is set.
if(!$rpcRequest->containsParameter('peer')) if(!$rpcRequest->containsParameter('peer'))
{ {
return $rpcRequest->produceError(StandardError::RPC_INVALID_ARGUMENTS, "Missing 'peer' parameter"); throw new MissingRpcArgumentException('peer');
} }
// Parse the peer address // Parse the peer address

View file

@ -6,6 +6,7 @@
use Socialbox\Classes\StandardMethods\AddressBook\AddressBookAddContact; use Socialbox\Classes\StandardMethods\AddressBook\AddressBookAddContact;
use Socialbox\Classes\StandardMethods\AddressBook\AddressBookDeleteContact; use Socialbox\Classes\StandardMethods\AddressBook\AddressBookDeleteContact;
use Socialbox\Classes\StandardMethods\AddressBook\AddressBookGetContacts; use Socialbox\Classes\StandardMethods\AddressBook\AddressBookGetContacts;
use Socialbox\Classes\StandardMethods\AddressBook\AddressBookTrustSignature;
use Socialbox\Classes\StandardMethods\AddressBook\AddressBookUpdateRelationship; use Socialbox\Classes\StandardMethods\AddressBook\AddressBookUpdateRelationship;
use Socialbox\Classes\StandardMethods\Core\GetAllowedMethods; use Socialbox\Classes\StandardMethods\Core\GetAllowedMethods;
use Socialbox\Classes\StandardMethods\Core\GetSessionState; use Socialbox\Classes\StandardMethods\Core\GetSessionState;