|
Lines 450-455
congreet(int s)
Link Here
|
| 450 |
*cp = '\0'; |
450 |
*cp = '\0'; |
| 451 |
if ((c->c_ssh = ssh_packet_set_connection(NULL, s, s)) == NULL) |
451 |
if ((c->c_ssh = ssh_packet_set_connection(NULL, s, s)) == NULL) |
| 452 |
fatal("ssh_packet_set_connection failed"); |
452 |
fatal("ssh_packet_set_connection failed"); |
|
|
453 |
ssh_packet_set_timeout(c->c_ssh, timeout, 1); |
| 453 |
ssh_set_app_data(c->c_ssh, c); /* back link */ |
454 |
ssh_set_app_data(c->c_ssh, c); /* back link */ |
| 454 |
if (sscanf(buf, "SSH-%d.%d-%[^\n]\n", |
455 |
if (sscanf(buf, "SSH-%d.%d-%[^\n]\n", |
| 455 |
&remote_major, &remote_minor, remote_version) == 3) |
456 |
&remote_major, &remote_minor, remote_version) == 3) |