When downloading resident keys from a FIDO token, pass back the
authordjm <djm@openbsd.org>
Thu, 28 Oct 2021 02:54:18 +0000 (02:54 +0000)
committerdjm <djm@openbsd.org>
Thu, 28 Oct 2021 02:54:18 +0000 (02:54 +0000)
commit991d5a20294de1b735884f205bb7889f8b7703d5
tree9495c4d59fc8655ac0ee394e680114ef5f35ad7a
parentc560a3013de646bd90183a1403a989fa5cf15533
When downloading resident keys from a FIDO token, pass back the
user ID that was used when the key was created and append it to
the filename the key is written to (if it is not the default).

Avoids keys being clobbered if the user created multiple
resident keys with the same application string but different
user IDs.

feedback Pedro Martelletto; ok markus

NB. increments SSH_SK_VERSION_MAJOR
usr.bin/ssh/sk-api.h
usr.bin/ssh/sk-usbhid.c
usr.bin/ssh/ssh-add.c
usr.bin/ssh/ssh-keygen.c
usr.bin/ssh/ssh-sk-client.c
usr.bin/ssh/ssh-sk-helper.c
usr.bin/ssh/ssh-sk.c
usr.bin/ssh/ssh-sk.h