mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-25 23:05:21 +02:00
upstream: U2F tokens may return FIDO_ERR_USER_PRESENCE_REQUIRED when
probed to see if they own a key handle. Handle this case so the find_device() look can work for them. Reported by Michael Forney OpenBSD-Commit-ID: 2ccd5b30a6ddfe4dba228b7159bf168601bd9166
This commit is contained in:
parent
cf62307bc9
commit
01362cf7cb
@ -201,6 +201,10 @@ try_device(fido_dev_t *dev, const uint8_t *message, size_t message_len,
|
|||||||
}
|
}
|
||||||
r = fido_dev_get_assert(dev, assert, NULL);
|
r = fido_dev_get_assert(dev, assert, NULL);
|
||||||
skdebug(__func__, "fido_dev_get_assert: %s", fido_strerr(r));
|
skdebug(__func__, "fido_dev_get_assert: %s", fido_strerr(r));
|
||||||
|
if (r == FIDO_ERR_USER_PRESENCE_REQUIRED) {
|
||||||
|
/* U2F tokens may return this */
|
||||||
|
r = FIDO_OK;
|
||||||
|
}
|
||||||
out:
|
out:
|
||||||
fido_assert_free(&assert);
|
fido_assert_free(&assert);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user