]> git.ipfire.org Git - thirdparty/openssh-portable.git/commit
upstream: Extends the SK API to accept a set of key/value options
authordjm@openbsd.org <djm@openbsd.org>
Mon, 6 Jan 2020 02:00:46 +0000 (02:00 +0000)
committerDamien Miller <djm@mindrot.org>
Mon, 6 Jan 2020 02:12:46 +0000 (13:12 +1100)
commitc312ca077cd2a6c15545cd6b4d34ee2f69289174
treeb8dd974c55dd0de351dfcbfc4f33fddb935a1c12
parent2ab335712d084d9ccaf3f53afc3fa9535329da87
upstream: Extends the SK API to accept a set of key/value options

for all operations. These are intended to future-proof the API a little by
making it easier to specify additional fields for without having to change
the API version for each.

At present, only two options are defined: one to explicitly specify
the device for an operation (rather than accepting the middleware's
autoselection) and another to specify the FIDO2 username that may
be used when generating a resident key. These new options may be
invoked at key generation time via ssh-keygen -O

This also implements a suggestion from Markus to avoid "int" in favour
of uint32_t for the algorithm argument in the API, to make implementation
of ssh-sk-client/helper a little easier.

feedback, fixes and ok markus@

OpenBSD-Commit-ID: 973ce11704609022ab36abbdeb6bc23c8001eabc
PROTOCOL.u2f
sk-api.h
sk-usbhid.c
ssh-add.c
ssh-keygen.1
ssh-keygen.c
ssh-sk-client.c
ssh-sk-helper.c
ssh-sk.c
ssh-sk.h