Made message signing in Cryptography use SHA512 as the message content for... #1
2 changed files with 4 additions and 4 deletions
|
@ -73,12 +73,12 @@
|
||||||
return $this->requestBody;
|
return $this->requestBody;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getClientName(): string
|
public function getClientName(): ?string
|
||||||
{
|
{
|
||||||
return $this->clientName;
|
return $this->clientName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getClientVersion(): string
|
public function getClientVersion(): ?string
|
||||||
{
|
{
|
||||||
return $this->clientVersion;
|
return $this->clientVersion;
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,14 +81,14 @@
|
||||||
private static function handleInitiateSession(ClientRequest $clientRequest): void
|
private static function handleInitiateSession(ClientRequest $clientRequest): void
|
||||||
{
|
{
|
||||||
|
|
||||||
if(!isset($requestHeaders[StandardHeaders::CLIENT_NAME->value]))
|
if(!$clientRequest->getClientName())
|
||||||
{
|
{
|
||||||
http_response_code(400);
|
http_response_code(400);
|
||||||
print('Missing required header: ' . StandardHeaders::CLIENT_NAME->value);
|
print('Missing required header: ' . StandardHeaders::CLIENT_NAME->value);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($requestHeaders[StandardHeaders::CLIENT_VERSION->value]))
|
if(!$clientRequest->getClientVersion())
|
||||||
{
|
{
|
||||||
http_response_code(400);
|
http_response_code(400);
|
||||||
print('Missing required header: ' . StandardHeaders::CLIENT_VERSION->value);
|
print('Missing required header: ' . StandardHeaders::CLIENT_VERSION->value);
|
||||||
|
|
Loading…
Add table
Reference in a new issue