diff options
author | djm@openbsd.org <djm@openbsd.org> | 2020-01-23 05:54:34 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2020-01-23 05:56:17 +0100 |
commit | e027c044c796f3a01081a91bee55741204283f28 (patch) | |
tree | 46126936d0c3a69b431141d4f985d8ca8c1d407b /sshsig.h | |
parent | upstream: Check for and warn about StrictModes permission problems. ok tb@ (diff) | |
download | openssh-e027c044c796f3a01081a91bee55741204283f28.tar.xz openssh-e027c044c796f3a01081a91bee55741204283f28.zip |
upstream: missing header change from previous; spotted by dtucker@
OpenBSD-Commit-ID: 321ce74c0a5bbd0f02fa3f20cb5cf2a952c6b96f
Diffstat (limited to 'sshsig.h')
-rw-r--r-- | sshsig.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 */ |