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

View file

@ -286,8 +286,14 @@
return; return;
} }
// Check if the session is awaiting a DHE exchange, forbidden if not
$session = $clientRequest->getSession(); $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) if($session->getState() !== SessionState::AWAITING_DHE)
{ {
self::returnError(403, StandardError::FORBIDDEN, 'Bad request: The session is not awaiting a DHE exchange'); self::returnError(403, StandardError::FORBIDDEN, 'Bad request: The session is not awaiting a DHE exchange');