diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2020-08-27 01:06:20 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2020-08-27 01:06:20 +0000 |
commit | c6033e8945d214efd07c42b188f773dd96c8ca2e (patch) | |
tree | d3e4acabc6e5889f835bd94eeb46afbdf009f513 /usr.bin/ssh/krl.c | |
parent | cd21b93ed81739c03a33699c7f21be17cf524043 (diff) |
support for user-verified FIDO keys
FIDO2 supports a notion of "user verification" where the user is
required to demonstrate their identity to the token before particular
operations (e.g. signing). Typically this is done by authenticating
themselves using a PIN that has been set on the token.
This adds support for generating and using user verified keys where
the verification happens via PIN (other options might be added in the
future, but none are in common use now). Practically, this adds
another key generation option "verify-required" that yields a key that
requires a PIN before each authentication.
feedback markus@ and Pedro Martelletto; ok markus@
Diffstat (limited to 'usr.bin/ssh/krl.c')
-rw-r--r-- | usr.bin/ssh/krl.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/ssh/krl.c b/usr.bin/ssh/krl.c index 9a0f6981137..156a4397c65 100644 --- a/usr.bin/ssh/krl.c +++ b/usr.bin/ssh/krl.c @@ -14,7 +14,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $OpenBSD: krl.c,v 1.50 2020/04/03 05:48:57 djm Exp $ */ +/* $OpenBSD: krl.c,v 1.51 2020/08/27 01:06:18 djm Exp $ */ #include <sys/types.h> #include <sys/tree.h> @@ -810,9 +810,10 @@ ssh_krl_to_blob(struct ssh_krl *krl, struct sshbuf *buf, if ((r = sshbuf_put_u8(buf, KRL_SECTION_SIGNATURE)) != 0 || (r = sshkey_puts(sign_keys[i], buf)) != 0) goto out; - + /* XXX support sk-* keys */ if ((r = sshkey_sign(sign_keys[i], &sblob, &slen, - sshbuf_ptr(buf), sshbuf_len(buf), NULL, NULL, 0)) != 0) + sshbuf_ptr(buf), sshbuf_len(buf), NULL, NULL, + NULL, 0)) != 0) goto out; KRL_DBG(("%s: signature sig len %zu", __func__, slen)); if ((r = sshbuf_put_string(buf, sblob, slen)) != 0) |