version 1.4, 2019/10/31 21:23:19 |
version 1.5, 2019/11/25 00:51:37 |
|
|
struct sshbuf; |
struct sshbuf; |
struct sshkey; |
struct sshkey; |
struct sshsigopt; |
struct sshsigopt; |
|
struct sshkey_sig_details; |
|
|
typedef int sshsig_signer(struct sshkey *, u_char **, size_t *, |
typedef int sshsig_signer(struct sshkey *, u_char **, size_t *, |
const u_char *, size_t, const char *, const char *, u_int, void *); |
const u_char *, size_t, const char *, const char *, u_int, void *); |
|
|
*/ |
*/ |
int sshsig_verifyb(struct sshbuf *signature, |
int sshsig_verifyb(struct sshbuf *signature, |
const struct sshbuf *message, const char *sig_namespace, |
const struct sshbuf *message, const char *sig_namespace, |
struct sshkey **sign_keyp); |
struct sshkey **sign_keyp, struct sshkey_sig_details **sig_details); |
|
|
/* File/FD-oriented API */ |
/* File/FD-oriented API */ |
|
|
|
|
* Returns 0 on success or a negative SSH_ERR_* error code on failure. |
* Returns 0 on success or a negative SSH_ERR_* error code on failure. |
*/ |
*/ |
int sshsig_verify_fd(struct sshbuf *signature, int fd, |
int sshsig_verify_fd(struct sshbuf *signature, int fd, |
const char *sig_namespace, struct sshkey **sign_keyp); |
const char *sig_namespace, struct sshkey **sign_keyp, |
|
struct sshkey_sig_details **sig_details); |
|
|
/* Utility functions */ |
/* Utility functions */ |
|
|