version 1.8, 2019/12/30 09:23:28 |
version 1.9, 2020/01/06 02:00:47 |
|
|
|
|
struct sshbuf; |
struct sshbuf; |
struct sshkey; |
struct sshkey; |
|
struct sk_option; |
|
|
/* Version of protocol expected from ssh-sk-helper */ |
/* Version of protocol expected from ssh-sk-helper */ |
#define SSH_SK_HELPER_VERSION 3 |
#define SSH_SK_HELPER_VERSION 4 |
|
|
/* ssh-sk-helper messages */ |
/* ssh-sk-helper messages */ |
#define SSH_SK_HELPER_ERROR 0 /* Only valid H->C */ |
#define SSH_SK_HELPER_ERROR 0 /* Only valid H->C */ |
|
|
* If successful and the attest_data buffer is not NULL then attestation |
* If successful and the attest_data buffer is not NULL then attestation |
* information is placed there. |
* information is placed there. |
*/ |
*/ |
int sshsk_enroll(int type, const char *provider_path, const char *application, |
int sshsk_enroll(int type, const char *provider_path, const char *device, |
uint8_t flags, const char *pin, struct sshbuf *challenge_buf, |
const char *application, const char *userid, uint8_t flags, |
|
const char *pin, struct sshbuf *challenge_buf, |
struct sshkey **keyp, struct sshbuf *attest); |
struct sshkey **keyp, struct sshbuf *attest); |
|
|
/* |
/* |
|
|
* |
* |
* Returns 0 on success or a ssherr.h error code on failure. |
* Returns 0 on success or a ssherr.h error code on failure. |
*/ |
*/ |
int sshsk_load_resident(const char *provider_path, const char *pin, |
int sshsk_load_resident(const char *provider_path, const char *device, |
struct sshkey ***keysp, size_t *nkeysp); |
const char *pin, struct sshkey ***keysp, size_t *nkeysp); |
|
|
#endif /* _SSH_SK_H */ |
#endif /* _SSH_SK_H */ |
|
|