summaryrefslogtreecommitdiff
path: root/sk-api.h
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2019-12-30 09:19:52 +0000
committerDamien Miller <djm@mindrot.org>2019-12-30 20:57:58 +1100
commit4532bd01d57ee13c3ca881eceac1bf9da96a4d7e (patch)
tree8d28ff7b3344eb6db167c609372ad804c05a81fd /sk-api.h
parent3e60d18fba1b502c21d64fc7e81d80bcd08a2092 (diff)
upstream: basic support for generating FIDO2 resident keys
"ssh-keygen -t ecdsa-sk|ed25519-sk -x resident" will generate a device-resident key. feedback and ok markus@ OpenBSD-Commit-ID: 8e1b3c56a4b11d85047bd6c6c705b7eef4d58431
Diffstat (limited to 'sk-api.h')
-rw-r--r--sk-api.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sk-api.h b/sk-api.h
index 5ada30a3d..5947e0ed7 100644
--- a/sk-api.h
+++ b/sk-api.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: sk-api.h,v 1.2 2019/11/12 19:32:30 markus Exp $ */ 1/* $OpenBSD: sk-api.h,v 1.3 2019/12/30 09:19:52 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2019 Google LLC 3 * Copyright (c) 2019 Google LLC
4 * 4 *
@@ -25,6 +25,8 @@
25 25
26/* Flags */ 26/* Flags */
27#define SSH_SK_USER_PRESENCE_REQD 0x01 27#define SSH_SK_USER_PRESENCE_REQD 0x01
28#define SSH_SK_USER_VERIFICATION_REQD 0x04
29#define SSH_SK_RESIDENT_KEY 0x20
28 30
29/* Algs */ 31/* Algs */
30#define SSH_SK_ECDSA 0x00 32#define SSH_SK_ECDSA 0x00