Add a warning in case any of the slots are not configured

This commit is contained in:
2024-12-08 23:15:55 +05:30 committed by GitHub
parent f71cca4eba
commit 27febd942e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -151,6 +151,7 @@ YubiKey::KeyMap YubiKeyInterfaceUSB::findValidKeys()
auto config = (slot == 1 ? CONFIG1_VALID : CONFIG2_VALID);
if (!(ykds_touch_level(st) & config)) {
// Slot is not configured
qWarning("YubiKey slot %d is not configured for %s", slot, serial);
continue;
}
// Don't actually challenge a YubiKey Neo or below, they always require button press