Add an error message in case of invalid signature.
This commit is contained in:
parent
231bfbd331
commit
a6100aaa37
|
@ -245,6 +245,7 @@ void ExternalCommandHelper::exit(const QByteArray& signature)
|
||||||
request.setNum(++m_Counter);
|
request.setNum(++m_Counter);
|
||||||
QByteArray hash = QCryptographicHash::hash(request, QCryptographicHash::Sha512);
|
QByteArray hash = QCryptographicHash::hash(request, QCryptographicHash::Sha512);
|
||||||
if (!m_publicKey.verifyMessage(hash, signature, QCA::EMSA3_Raw)) {
|
if (!m_publicKey.verifyMessage(hash, signature, QCA::EMSA3_Raw)) {
|
||||||
|
qCritical() << xi18n("Invalid cryptographic signature");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue