]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - putty.h
Add have_ssh_host_key() and use it to influence algorithm selection.
[PuTTY.git] / putty.h
diff --git a/putty.h b/putty.h
index 22ec67b79829f97f6afcac2aad95c518af0ebb61..9d4aa739a3384e2ecd27918a352642cf19bc96fe 100644 (file)
--- a/putty.h
+++ b/putty.h
@@ -1197,6 +1197,11 @@ void pgp_fingerprints(void);
 int verify_ssh_host_key(void *frontend, char *host, int port,
                         const char *keytype, char *keystr, char *fingerprint,
                         void (*callback)(void *ctx, int result), void *ctx);
+/*
+ * have_ssh_host_key() just returns true if a key of that type is
+ * already chached and false otherwise.
+ */
+int have_ssh_host_key(const char *host, int port, const char *keytype);
 /*
  * askalg has the same set of return values as verify_ssh_host_key.
  */