Made message signing in Cryptography use SHA512 as the message content for... #1
1 changed files with 7 additions and 1 deletions
|
@ -286,8 +286,14 @@
|
|||
return;
|
||||
}
|
||||
|
||||
// Check if the session is awaiting a DHE exchange, forbidden if not
|
||||
$session = $clientRequest->getSession();
|
||||
if($session === null)
|
||||
{
|
||||
self::returnError(404, StandardError::SESSION_NOT_FOUND, 'Session not found');
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if the session is awaiting a DHE exchange, forbidden if not
|
||||
if($session->getState() !== SessionState::AWAITING_DHE)
|
||||
{
|
||||
self::returnError(403, StandardError::FORBIDDEN, 'Bad request: The session is not awaiting a DHE exchange');
|
||||
|
|
Loading…
Add table
Reference in a new issue