Diff

Differences From Artifact [28ddf91e89]:

To Artifact [e5a9a50a19]:


282
283
284
285
286
287
288




289
290
291
292
293
294
295
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299







+
+
+
+







    int remotever;

    pktout = sftp_pkt_init(SSH_FXP_INIT);
    sftp_pkt_adduint32(pktout, SFTP_PROTO_VERSION);
    sftp_send(pktout);

    pktin = sftp_recv();
    if (!pktin) {
	fxp_internal_error("could not connect");
	return 0;
    }
    if (pktin->type != SSH_FXP_VERSION) {
	fxp_internal_error("did not receive FXP_VERSION");
	return 0;
    }
    remotever = sftp_pkt_getuint32(pktin);
    if (remotever > SFTP_PROTO_VERSION) {
	fxp_internal_error("remote protocol is more advanced than we support");