Diff

Differences From Artifact [9df4491921]:

To Artifact [2ea77d0cd3]:


948
949
950
951
952
953
954




955

956
957
958
959
960
961
962
948
949
950
951
952
953
954
955
956
957
958

959
960
961
962
963
964
965
966







+
+
+
+
-
+







    }

    *vsp = 0;
    sprintf(vlog, "Server version: %s", vstring);
    vlog[strcspn(vlog, "\r\n")] = '\0';
    logevent(vlog);

    /*
     * Server version "1.99" means we can choose whether we use v1
     * or v2 protocol. Choice is based on cfg.sshprot.
     */
    if (ssh_versioncmp(version, "2.0" /* FIXME: "1.99" */ ) >= 0) {
    if (ssh_versioncmp(version, cfg.sshprot == 1 ? "2.0" : "1.99") >= 0) {
        /*
         * This is a v2 server. Begin v2 protocol.
         */
        char *verstring = "SSH-2.0-PuTTY";
        SHA_Init(&exhash);
        /*
         * Hash our version string and their version string.