diff options
| author | 2019-12-13 19:09:10 +0000 | |
|---|---|---|
| committer | 2019-12-13 19:09:10 +0000 | |
| commit | 4852100a8107fd6df1ba08ea17696d3c031d25a2 (patch) | |
| tree | cc7e417615db584e67c9b8e6fa35a2269ffac8c1 /usr.bin/ssh/ssh-sk.h | |
| parent | occuring -> occurring (diff) | |
| download | wireguard-openbsd-4852100a8107fd6df1ba08ea17696d3c031d25a2.tar.xz wireguard-openbsd-4852100a8107fd6df1ba08ea17696d3c031d25a2.zip | |
use ssh-sk-helper for all security key signing operations
This extracts and refactors the client interface for ssh-sk-helper
from ssh-agent and generalises it for use by the other programs.
This means that most OpenSSH tools no longer need to link against
libfido2 or directly interact with /dev/uhid*
requested by, feedback and ok markus@
Diffstat (limited to 'usr.bin/ssh/ssh-sk.h')
| -rw-r--r-- | usr.bin/ssh/ssh-sk.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.bin/ssh/ssh-sk.h b/usr.bin/ssh/ssh-sk.h index bb593160a0b..4d667884ec2 100644 --- a/usr.bin/ssh/ssh-sk.h +++ b/usr.bin/ssh/ssh-sk.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-sk.h,v 1.5 2019/11/12 19:31:45 markus Exp $ */ +/* $OpenBSD: ssh-sk.h,v 1.6 2019/12/13 19:09:10 djm Exp $ */ /* * Copyright (c) 2019 Google LLC * @@ -21,9 +21,6 @@ struct sshbuf; struct sshkey; -/* Version of protocol between ssh-agent and ssh-sk-helper */ -#define SSH_SK_HELPER_VERSION 1 - /* * Enroll (generate) a new security-key hosted private key of given type * via the specified provider middleware. @@ -44,7 +41,7 @@ int sshsk_enroll(int type, const char *provider_path, const char *application, * * Returns 0 on success or a ssherr.h error code on failure. */ -int sshsk_sign(const char *provider_path, const struct sshkey *key, +int sshsk_sign(const char *provider_path, struct sshkey *key, u_char **sigp, size_t *lenp, const u_char *data, size_t datalen, u_int compat); |
