diff options
Diffstat (limited to 'sshsig.h')
-rw-r--r-- | sshsig.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -1,3 +1,4 @@ | |||
1 | /* $OpenBSD: sshsig.h,v 1.9 2020/08/31 00:17:41 djm Exp $ */ | ||
1 | /* | 2 | /* |
2 | * Copyright (c) 2019 Google LLC | 3 | * Copyright (c) 2019 Google LLC |
3 | * | 4 | * |
@@ -23,7 +24,8 @@ struct sshsigopt; | |||
23 | struct sshkey_sig_details; | 24 | struct sshkey_sig_details; |
24 | 25 | ||
25 | typedef int sshsig_signer(struct sshkey *, u_char **, size_t *, | 26 | typedef int sshsig_signer(struct sshkey *, u_char **, size_t *, |
26 | const u_char *, size_t, const char *, const char *, u_int, void *); | 27 | const u_char *, size_t, const char *, const char *, const char *, |
28 | u_int, void *); | ||
27 | 29 | ||
28 | /* Buffer-oriented API */ | 30 | /* Buffer-oriented API */ |
29 | 31 | ||
@@ -33,7 +35,7 @@ typedef int sshsig_signer(struct sshkey *, u_char **, size_t *, | |||
33 | * out is populated with the detached signature, or NULL on failure. | 35 | * out is populated with the detached signature, or NULL on failure. |
34 | */ | 36 | */ |
35 | int sshsig_signb(struct sshkey *key, const char *hashalg, | 37 | int sshsig_signb(struct sshkey *key, const char *hashalg, |
36 | const char *sk_provider, const struct sshbuf *message, | 38 | const char *sk_provider, const char *sk_pin, const struct sshbuf *message, |
37 | const char *sig_namespace, struct sshbuf **out, | 39 | const char *sig_namespace, struct sshbuf **out, |
38 | sshsig_signer *signer, void *signer_ctx); | 40 | sshsig_signer *signer, void *signer_ctx); |
39 | 41 | ||
@@ -54,7 +56,8 @@ int sshsig_verifyb(struct sshbuf *signature, | |||
54 | * out is populated with the detached signature, or NULL on failure. | 56 | * out is populated with the detached signature, or NULL on failure. |
55 | */ | 57 | */ |
56 | int sshsig_sign_fd(struct sshkey *key, const char *hashalg, | 58 | int sshsig_sign_fd(struct sshkey *key, const char *hashalg, |
57 | const char *sk_provider, int fd, const char *sig_namespace, | 59 | const char *sk_provider, const char *sk_pin, |
60 | int fd, const char *sig_namespace, | ||
58 | struct sshbuf **out, sshsig_signer *signer, void *signer_ctx); | 61 | struct sshbuf **out, sshsig_signer *signer, void *signer_ctx); |
59 | 62 | ||
60 | /* | 63 | /* |