]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - ssh.c
Loose end from r5031: the Kex panel should only be displayed in
[PuTTY.git] / ssh.c
diff --git a/ssh.c b/ssh.c
index de768d3d76455c0f5170afd4c82b9af49ef0f00f..f92975d994a6bf3688e10a3329bd093c0030e122 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -7860,6 +7860,16 @@ static int ssh_return_exitcode(void *handle)
         return (ssh->exitcode >= 0 ? ssh->exitcode : 0);
 }
 
+/*
+ * cfg_info for SSH is the currently running version of the
+ * protocol. (1 for 1; 2 for 2; 0 for not-decided-yet.)
+ */
+static int ssh_cfg_info(void *handle)
+{
+    Ssh ssh = (Ssh) handle;
+    return ssh->version;
+}
+
 /*
  * Gross hack: pscp will try to start SFTP but fall back to scp1 if
  * that fails. This variable is the means by which scp.c can reach
@@ -7887,5 +7897,6 @@ Backend ssh_backend = {
     ssh_provide_ldisc,
     ssh_provide_logctx,
     ssh_unthrottle,
+    ssh_cfg_info,
     22
 };