when enrolling a resident key on a security token, check if a
authordjm <djm@openbsd.org>
Wed, 20 Jul 2022 03:29:14 +0000 (03:29 +0000)
committerdjm <djm@openbsd.org>
Wed, 20 Jul 2022 03:29:14 +0000 (03:29 +0000)
commit4fe478777c5270c9ccf20be306a9ccd158cb5b24
tree283ed788007b1b9c8766b9fea400342d1b6c9e14
parentd58b15ee11068500b115d35d4c18950be43fcecc
when enrolling a resident key on a security token, check if a
credential with matching application and user ID strings already
exists. if so, prompt the user for confirmation before overwriting
the credential.

patch from Pedro Martelletto via GHPR329

NB. cranks SSH_SK_VERSION_MAJOR, so any third-party FIDO middleware
implementations will need to adjust
usr.bin/ssh/sk-api.h
usr.bin/ssh/sk-usbhid.c
usr.bin/ssh/ssh-keygen.c
usr.bin/ssh/ssh-sk.c