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 4 additions and 4 deletions
Showing only changes of commit d2119df824 - Show all commits

View file

@ -73,12 +73,12 @@
return $this->requestBody;
}
public function getClientName(): string
public function getClientName(): ?string
{
return $this->clientName;
}
public function getClientVersion(): string
public function getClientVersion(): ?string
{
return $this->clientVersion;
}

View file

@ -81,14 +81,14 @@
private static function handleInitiateSession(ClientRequest $clientRequest): void
{
if(!isset($requestHeaders[StandardHeaders::CLIENT_NAME->value]))
if(!$clientRequest->getClientName())
{
http_response_code(400);
print('Missing required header: ' . StandardHeaders::CLIENT_NAME->value);
return;
}
if(!isset($requestHeaders[StandardHeaders::CLIENT_VERSION->value]))
if(!$clientRequest->getClientVersion())
{
http_response_code(400);
print('Missing required header: ' . StandardHeaders::CLIENT_VERSION->value);