1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-03 04:22:47 -05:00

Move verify_ssh_manual_host_key into sshcommon.c

This is essentially trivial, because the only thing it needed from the
Ssh structure was the Conf. So the version in sshcommon.c just takes
an actual Conf as an argument, and now it doesn't need access to the
big structure definition any more.
This commit is contained in:
Simon Tatham
2018-09-24 14:15:32 +01:00
parent 43767fff04
commit 96622d17a3
3 changed files with 61 additions and 55 deletions

3
ssh.h
View File

@ -1349,3 +1349,6 @@ int first_in_commasep_string(char const *needle, char const *haystack,
int haylen);
int in_commasep_string(char const *needle, char const *haystack, int haylen);
void add_to_commasep(strbuf *buf, const char *data);
int verify_ssh_manual_host_key(
Conf *conf, const char *fingerprint, ssh_key *key);