diff options
author | djm@openbsd.org <djm@openbsd.org> | 2019-12-30 09:19:52 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2019-12-30 20:57:58 +1100 |
commit | 4532bd01d57ee13c3ca881eceac1bf9da96a4d7e (patch) | |
tree | 8d28ff7b3344eb6db167c609372ad804c05a81fd /ssh-keygen.c | |
parent | 3e60d18fba1b502c21d64fc7e81d80bcd08a2092 (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 'ssh-keygen.c')
-rw-r--r-- | ssh-keygen.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c index 447810fb1..48342c09d 100644 --- a/ssh-keygen.c +++ b/ssh-keygen.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh-keygen.c,v 1.376 2019/12/30 03:30:09 djm Exp $ */ | 1 | /* $OpenBSD: ssh-keygen.c,v 1.377 2019/12/30 09:19:52 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -3135,6 +3135,8 @@ main(int argc, char **argv) | |||
3135 | fatal("Missing security key flags"); | 3135 | fatal("Missing security key flags"); |
3136 | if (strcasecmp(optarg, "no-touch-required") == 0) | 3136 | if (strcasecmp(optarg, "no-touch-required") == 0) |
3137 | sk_flags &= ~SSH_SK_USER_PRESENCE_REQD; | 3137 | sk_flags &= ~SSH_SK_USER_PRESENCE_REQD; |
3138 | else if (strcasecmp(optarg, "resident") == 0) | ||
3139 | sk_flags |= SSH_SK_RESIDENT_KEY; | ||
3138 | else { | 3140 | else { |
3139 | ull = strtoull(optarg, &ep, 0); | 3141 | ull = strtoull(optarg, &ep, 0); |
3140 | if (*ep != '\0') | 3142 | if (*ep != '\0') |