From e027c044c796f3a01081a91bee55741204283f28 Mon Sep 17 00:00:00 2001 From: "djm@openbsd.org" Date: Thu, 23 Jan 2020 04:54:34 +0000 Subject: upstream: missing header change from previous; spotted by dtucker@ OpenBSD-Commit-ID: 321ce74c0a5bbd0f02fa3f20cb5cf2a952c6b96f --- sshsig.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sshsig.h') diff --git a/sshsig.h b/sshsig.h index 386c8b5d7..939e3dfe0 100644 --- a/sshsig.h +++ b/sshsig.h @@ -92,4 +92,14 @@ struct sshsigopt *sshsigopt_parse(const char *opts, /* Free signature options */ void sshsigopt_free(struct sshsigopt *opts); +/* Get public key from signature */ +int +sshsig_get_pubkey(struct sshbuf *signature, struct sshkey **pubkey); + +/* Find principal in allowed_keys file, given a sshkey. Returns + * 0 on success. + */ +int sshsig_find_principal(const char *path, const struct sshkey *sign_key, + char **principal); + #endif /* SSHSIG_H */ -- cgit v1.2.3