X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/fbcc43d3b38755e6ec17ef189ce6ccad44c81be8..c0aa8967c26a4c261588e80cd06eefa80ee1b8d6:/mac/macstore.c diff --git a/mac/macstore.c b/mac/macstore.c index 7643c548..74fa8d97 100644 --- a/mac/macstore.c +++ b/mac/macstore.c @@ -602,6 +602,15 @@ void write_random_seed(void *data, int len) return; } +/* + * This host key cache uses a file in the PuTTY Preferences folder and + * stores keys as individual TEXT resources in the resource fork of + * that file. This has two problems. Firstly, a resource fork can + * contain no more than 2727 resources. Secondly, the Resource + * Manager uses a linear search to find a particular resource, which + * could make having lots of host keys quite slow. + */ + int verify_host_key(const char *hostname, int port, const char *keytype, const char *key) { @@ -716,8 +725,6 @@ void store_host_key(const char *hostname, int port, sfree(resname); } - - /* * Emacs magic: * Local Variables: