diff options
Diffstat (limited to 'sshsig.h')
-rw-r--r-- | sshsig.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -23,7 +23,8 @@ struct sshsigopt; | |||
23 | struct sshkey_sig_details; | 23 | struct sshkey_sig_details; |
24 | 24 | ||
25 | typedef int sshsig_signer(struct sshkey *, u_char **, size_t *, | 25 | typedef int sshsig_signer(struct sshkey *, u_char **, size_t *, |
26 | const u_char *, size_t, const char *, const char *, u_int, void *); | 26 | const u_char *, size_t, const char *, const char *, const char *, |
27 | u_int, void *); | ||
27 | 28 | ||
28 | /* Buffer-oriented API */ | 29 | /* Buffer-oriented API */ |
29 | 30 | ||
@@ -33,7 +34,7 @@ typedef int sshsig_signer(struct sshkey *, u_char **, size_t *, | |||
33 | * out is populated with the detached signature, or NULL on failure. | 34 | * out is populated with the detached signature, or NULL on failure. |
34 | */ | 35 | */ |
35 | int sshsig_signb(struct sshkey *key, const char *hashalg, | 36 | int sshsig_signb(struct sshkey *key, const char *hashalg, |
36 | const char *sk_provider, const struct sshbuf *message, | 37 | const char *sk_provider, const char *sk_pin, const struct sshbuf *message, |
37 | const char *sig_namespace, struct sshbuf **out, | 38 | const char *sig_namespace, struct sshbuf **out, |
38 | sshsig_signer *signer, void *signer_ctx); | 39 | sshsig_signer *signer, void *signer_ctx); |
39 | 40 | ||
@@ -54,7 +55,8 @@ int sshsig_verifyb(struct sshbuf *signature, | |||
54 | * out is populated with the detached signature, or NULL on failure. | 55 | * out is populated with the detached signature, or NULL on failure. |
55 | */ | 56 | */ |
56 | int sshsig_sign_fd(struct sshkey *key, const char *hashalg, | 57 | int sshsig_sign_fd(struct sshkey *key, const char *hashalg, |
57 | const char *sk_provider, int fd, const char *sig_namespace, | 58 | const char *sk_provider, const char *sk_pin, |
59 | int fd, const char *sig_namespace, | ||
58 | struct sshbuf **out, sshsig_signer *signer, void *signer_ctx); | 60 | struct sshbuf **out, sshsig_signer *signer, void *signer_ctx); |
59 | 61 | ||
60 | /* | 62 | /* |