summaryrefslogtreecommitdiff
path: root/ssh-sk.h
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2019-12-30 09:21:16 +0000
committerDamien Miller <djm@mindrot.org>2019-12-30 20:58:19 +1100
commit14cea36df397677b8f8568204300ef654114fd76 (patch)
tree4c9b0bf5108df396f8d9eaff576537e7c9cc50e9 /ssh-sk.h
parent2fe05fcb4a2695f190b4fcf27770b655586ab349 (diff)
upstream: resident keys support in SK API
Adds a sk_load_resident_keys() function to the security key API that accepts a security key provider and a PIN and returns a list of keys. Implement support for this in the usbhid middleware. feedback and ok markus@ OpenBSD-Commit-ID: 67e984e4e87f4999ce447a6178c4249a9174eff0
Diffstat (limited to 'ssh-sk.h')
-rw-r--r--ssh-sk.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/ssh-sk.h b/ssh-sk.h
index 4d667884e..1afe839db 100644
--- a/ssh-sk.h
+++ b/ssh-sk.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh-sk.h,v 1.6 2019/12/13 19:09:10 djm Exp $ */ 1/* $OpenBSD: ssh-sk.h,v 1.7 2019/12/30 09:21:16 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2019 Google LLC 3 * Copyright (c) 2019 Google LLC
4 * 4 *
@@ -45,5 +45,14 @@ int sshsk_sign(const char *provider_path, struct sshkey *key,
45 u_char **sigp, size_t *lenp, const u_char *data, size_t datalen, 45 u_char **sigp, size_t *lenp, const u_char *data, size_t datalen,
46 u_int compat); 46 u_int compat);
47 47
48/*
49 * Enumerates and loads all SSH-compatible resident keys from a security
50 * key.
51 *
52 * Returns 0 on success or a ssherr.h error code on failure.
53 */
54int sshsk_load_resident(const char *provider_path, const char *pin,
55 struct sshkey ***keysp, size_t *nkeysp);
56
48#endif /* _SSH_SK_H */ 57#endif /* _SSH_SK_H */
49 58