Add MockChallengeResponseKey and additional composite key component test

This commit is contained in:
Janek Bevendorff authored and Jonathan White committed 2018-03-01 19:26:18 -05:00
1 parent 6f6a63f5e9
commit e6c19fdcb1
9 files changed
+178 -16

No files matched your search

+1 -1
View File
@@ -83,7 +83,7 @@ bool YkChallengeResponseKey::challenge(const QByteArray& challenge, unsigned ret
}
// if challenge failed, retry to detect YubiKeys in the event the YubiKey was un-plugged and re-plugged
if (retries > 0 && YubiKey::instance()->init() != true) {
if (retries > 0 && !YubiKey::instance()->init()) {
continue;
}