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 aa70a83c26 - Show all commits

View file

@ -37,7 +37,7 @@
{ {
if(!PeerInformationManager::fieldExists($request->getPeer(), $fieldName)) if(!PeerInformationManager::fieldExists($request->getPeer(), $fieldName))
{ {
return $rpcRequest->produceError(StandardError::FORBIDDEN, 'The information field does not exist'); return $rpcRequest->produceResponse(false);
} }
} }
catch(DatabaseOperationException $e) catch(DatabaseOperationException $e)
@ -45,6 +45,7 @@
throw new StandardRpcException('Failed to check if the information field exists', StandardError::INTERNAL_SERVER_ERROR, $e); throw new StandardRpcException('Failed to check if the information field exists', StandardError::INTERNAL_SERVER_ERROR, $e);
} }
// Prevent the removal of required fields
switch($fieldName) switch($fieldName)
{ {
case InformationFieldName::DISPLAY_NAME: case InformationFieldName::DISPLAY_NAME: