diff options
author | djm@openbsd.org <djm@openbsd.org> | 2021-01-26 00:49:30 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2021-01-26 12:21:48 +1100 |
commit | 3b44f2513cae89c920e8fe927b9bc910a1c8c65a (patch) | |
tree | c67b9a8583b9795bec5a5dd56f7a8556c8da2d5e /sshkey.h | |
parent | 1fe16fd61bb53944ec510882acc0491abd66ff76 (diff) | |
download | openssh-git-3b44f2513cae89c920e8fe927b9bc910a1c8c65a.tar.gz |
upstream: move check_host_cert() from sshconnect,c to sshkey.c and
refactor it to make it more generally usable and testable.
ok markus@
OpenBSD-Commit-ID: 536f489f5ff38808c1fa711ba58d4579b636f9e4
Diffstat (limited to 'sshkey.h')
-rw-r--r-- | sshkey.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: sshkey.h,v 1.48 2020/11/08 11:46:12 dtucker Exp $ */ +/* $OpenBSD: sshkey.h,v 1.49 2021/01/26 00:49:30 djm Exp $ */ /* * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. @@ -195,8 +195,10 @@ int sshkey_type_plain(int); int sshkey_to_certified(struct sshkey *); int sshkey_drop_cert(struct sshkey *); int sshkey_cert_copy(const struct sshkey *, struct sshkey *); -int sshkey_cert_check_authority(const struct sshkey *, int, int, +int sshkey_cert_check_authority(const struct sshkey *, int, int, int, const char *, const char **); +int sshkey_cert_check_host(const struct sshkey *, const char *, + int , const char *, const char **); size_t sshkey_format_cert_validity(const struct sshkey_cert *, char *, size_t) __attribute__((__bounded__(__string__, 2, 3))); int sshkey_check_cert_sigtype(const struct sshkey *, const char *); |