diff options
Diffstat (limited to 'sshsig.h')
-rw-r--r-- | sshsig.h | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -22,7 +22,7 @@ struct sshkey; | |||
22 | struct sshsigopt; | 22 | struct sshsigopt; |
23 | 23 | ||
24 | typedef int sshsig_signer(struct sshkey *, u_char **, size_t *, | 24 | typedef int sshsig_signer(struct sshkey *, u_char **, size_t *, |
25 | const u_char *, size_t, const char *, u_int, void *); | 25 | const u_char *, size_t, const char *, const char *, u_int, void *); |
26 | 26 | ||
27 | /* Buffer-oriented API */ | 27 | /* Buffer-oriented API */ |
28 | 28 | ||
@@ -32,8 +32,9 @@ typedef int sshsig_signer(struct sshkey *, u_char **, size_t *, | |||
32 | * out is populated with the detached signature, or NULL on failure. | 32 | * out is populated with the detached signature, or NULL on failure. |
33 | */ | 33 | */ |
34 | int sshsig_signb(struct sshkey *key, const char *hashalg, | 34 | int sshsig_signb(struct sshkey *key, const char *hashalg, |
35 | const struct sshbuf *message, const char *sig_namespace, | 35 | const char *sk_provider, const struct sshbuf *message, |
36 | struct sshbuf **out, sshsig_signer *signer, void *signer_ctx); | 36 | const char *sig_namespace, struct sshbuf **out, |
37 | sshsig_signer *signer, void *signer_ctx); | ||
37 | 38 | ||
38 | /* | 39 | /* |
39 | * Verifies that a detached signature is valid and optionally returns key | 40 | * Verifies that a detached signature is valid and optionally returns key |
@@ -52,8 +53,8 @@ int sshsig_verifyb(struct sshbuf *signature, | |||
52 | * out is populated with the detached signature, or NULL on failure. | 53 | * out is populated with the detached signature, or NULL on failure. |
53 | */ | 54 | */ |
54 | int sshsig_sign_fd(struct sshkey *key, const char *hashalg, | 55 | int sshsig_sign_fd(struct sshkey *key, const char *hashalg, |
55 | int fd, const char *sig_namespace, struct sshbuf **out, | 56 | const char *sk_provider, int fd, const char *sig_namespace, |
56 | sshsig_signer *signer, void *signer_ctx); | 57 | struct sshbuf **out, sshsig_signer *signer, void *signer_ctx); |
57 | 58 | ||
58 | /* | 59 | /* |
59 | * Verifies that a detached signature over a file is valid and optionally | 60 | * Verifies that a detached signature over a file is valid and optionally |