From a6100aaa37c06f229243db470303857240670230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Fri, 13 Apr 2018 14:26:44 +0300 Subject: [PATCH] Add an error message in case of invalid signature. --- src/util/externalcommandhelper.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/externalcommandhelper.cpp b/src/util/externalcommandhelper.cpp index 713167c..e1527d4 100644 --- a/src/util/externalcommandhelper.cpp +++ b/src/util/externalcommandhelper.cpp @@ -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; }