Add an error message in case of invalid signature.

This commit is contained in:
Andrius Štikonas 2018-04-13 14:26:44 +03:00
parent 231bfbd331
commit a6100aaa37
1 changed files with 1 additions and 0 deletions

View File

@ -245,6 +245,7 @@ void ExternalCommandHelper::exit(const QByteArray& signature)
request.setNum(++m_Counter);
QByteArray hash = QCryptographicHash::hash(request, QCryptographicHash::Sha512);
if (!m_publicKey.verifyMessage(hash, signature, QCA::EMSA3_Raw)) {
qCritical() << xi18n("Invalid cryptographic signature");
return;
}