Merge remote-tracking branch 'origin/master' into develop
# Conflicts: # src/core/Group.cpp
This commit is contained in:
@@ -50,7 +50,7 @@ QByteArray YkChallengeResponseKey::rawKey() const
|
||||
*/
|
||||
bool YkChallengeResponseKey::challenge(const QByteArray& challenge)
|
||||
{
|
||||
return this->challenge(challenge, 1);
|
||||
return this->challenge(challenge, 2);
|
||||
}
|
||||
|
||||
bool YkChallengeResponseKey::challenge(const QByteArray& challenge, unsigned retries)
|
||||
@@ -70,8 +70,8 @@ bool YkChallengeResponseKey::challenge(const QByteArray& challenge, unsigned ret
|
||||
|
||||
QEventLoop loop;
|
||||
QFutureWatcher<YubiKey::ChallengeResult> watcher;
|
||||
watcher.setFuture(future);
|
||||
connect(&watcher, SIGNAL(finished()), &loop, SLOT(quit()));
|
||||
watcher.setFuture(future);
|
||||
loop.exec();
|
||||
|
||||
if (m_blocking) {
|
||||
|
||||
@@ -154,7 +154,7 @@ YubiKey::ChallengeResult YubiKey::challenge(int slot, bool mayBlock, const QByte
|
||||
QByteArray paddedChallenge = challenge;
|
||||
|
||||
// ensure that YubiKey::init() succeeded
|
||||
if (m_yk == NULL) {
|
||||
if (!init()) {
|
||||
m_mutex.unlock();
|
||||
return ERROR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user