Show YubiKey message from MainWindow to ensure it's always shown when a challenge is generated

This commit is contained in:
Janek Bevendorff
2017-02-24 17:27:27 +01:00
parent d6c48a5cf1
commit b10cb1c83c
7 changed files with 17 additions and 32 deletions

View File

@@ -20,6 +20,7 @@
#include "core/Tools.h"
#include "crypto/CryptoHash.h"
#include "crypto/Random.h"
#include "gui/MainWindow.h"
#include <QFile>
#include <QXmlStreamReader>
@@ -32,6 +33,9 @@ YkChallengeResponseKey::YkChallengeResponseKey(int slot, bool blocking)
: m_slot(slot),
m_blocking(blocking)
{
connect(this, SIGNAL(userInteractionRequired()), KEEPASSXC_MAIN_WINDOW, SLOT(showYubiKeyPopup()));
connect(this, SIGNAL(userConfirmed()), KEEPASSXC_MAIN_WINDOW, SLOT(hideYubiKeyPopup()));
}
QByteArray YkChallengeResponseKey::rawKey() const