summaryrefslogtreecommitdiffstats
path: root/sshsig.h
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2019-09-05 06:55:32 +0200
committerDamien Miller <djm@mindrot.org>2019-09-05 06:56:51 +0200
commitbab6feb01f9924758ca7129dba708298a53dde5f (patch)
tree5f9204d39f29dc9047a491401173847a6e7d8836 /sshsig.h
parentupstream: Call comma-separated lists as such to clarify semantics. (diff)
downloadopenssh-bab6feb01f9924758ca7129dba708298a53dde5f.tar.xz
openssh-bab6feb01f9924758ca7129dba708298a53dde5f.zip
upstream: expose allowed_signers options parsing code in header for
fuzzing rename to make more consistent with philosophically-similar auth options parsing API. OpenBSD-Commit-ID: 0c67600ef04187f98e2912ca57b60c22a8025b7c
Diffstat (limited to 'sshsig.h')
-rw-r--r--sshsig.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sshsig.h b/sshsig.h
index fc1d607b3..e3eeb601b 100644
--- a/sshsig.h
+++ b/sshsig.h
@@ -19,6 +19,7 @@
struct sshbuf;
struct sshkey;
+struct sshsigopt;
typedef int sshsig_signer(struct sshkey *, u_char **, size_t *,
const u_char *, size_t, const char *, u_int, void *);
@@ -81,4 +82,11 @@ int sshsig_dearmor(struct sshbuf *sig, struct sshbuf **out);
int sshsig_check_allowed_keys(const char *path, const struct sshkey *sign_key,
const char *principal, const char *ns);
+/* Parse zero or more allowed_keys signature options */
+struct sshsigopt *sshsigopt_parse(const char *opts,
+ const char *path, u_long linenum, const char **errstrp);
+
+/* Free signature options */
+void sshsigopt_free(struct sshsigopt *opts);
+
#endif /* SSHSIG_H */