Diff

Differences From Artifact [6ccabccf93]:

To Artifact [2dc8df3696]:


521
522
523
524
525
526
527

528
529
530
531
532
533
534
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535







+







static int ssh2_try_send(struct ssh_channel *c);
static void ssh2_add_channel_data(struct ssh_channel *c, char *buf, int len);
static void ssh_throttle_all(Ssh ssh, int enable, int bufsize);
static void ssh2_set_window(struct ssh_channel *c, unsigned newwin);
static int ssh_sendbuffer(void *handle);
static void ssh_do_close(Ssh ssh);
static unsigned long ssh_pkt_getuint32(Ssh ssh);
static int ssh2_pkt_getbool(Ssh ssh);
static void ssh_pkt_getstring(Ssh ssh, char **p, int *length);

struct rdpkt1_state_tag {
    long len, pad, biglen, to_read;
    unsigned long realcrc, gotcrc;
    unsigned char *p;
    int i;
1194
1195
1196
1197
1198
1199
1200

1201


1202
1203
1204
1205
1206
1207
1208
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212







+

+
+







      case SSH2_MSG_IGNORE:
	goto next_packet;
      case SSH2_MSG_DEBUG:
	{
	    /* log the debug message */
	    char *buf, *msg;
	    int msglen;
	    int always_display;

	    /* XXX maybe we should actually take notice of this */
            always_display = ssh2_pkt_getbool(ssh);
            ssh_pkt_getstring(ssh, &msg, &msglen);

            buf = dupprintf("Remote debug message: %.*s", msglen, msg);
	    logevent(buf);
            sfree(buf);
	}
        goto next_packet;