summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/ssh-sk.c
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2020-08-27 01:07:52 +0000
committerDamien Miller <djm@cvs.openbsd.org>2020-08-27 01:07:52 +0000
commit8e8462bb1ff95883d75fa1e2b3a5e4452671a554 (patch)
tree63ebde0ca0cee0793e244ab73701c35c2e91b575 /usr.bin/ssh/ssh-sk.c
parent81f7985adc76c9d3a95d80cb3717bcb54f906e79 (diff)
major rework of FIDO token selection logic
When PINs are in use and multiple FIDO tokens are attached to a host, we cannot just blast requests at all attached tokens with the PIN specified as this will cause the per-token PIN failure counter to increment. If this retry counter hits the token's limit (usually 3 attempts), then the token will lock itself and render all (web and SSH) of its keys invalid. We don't want this. So this reworks the key selection logic for the specific case of multiple keys being attached. When multiple keys are attached and the operation requires a PIN, then the user must touch the key that they wish to use first in order to identify it. This may require multiple touches, but only if there are multiple keys attached AND (usually) the operation requires a PIN. The usual case of a single key attached should be unaffected. Work by Pedro Martelletto; ok myself and markus@
Diffstat (limited to 'usr.bin/ssh/ssh-sk.c')
0 files changed, 0 insertions, 0 deletions