mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-19 12:08:05 -05:00
Add some more commented-out diagnostics for ssh1
[originally from svn r713]
This commit is contained in:
parent
e41344c544
commit
f543b08ca5
12
ssh.c
12
ssh.c
@ -392,6 +392,12 @@ next_packet:
|
|||||||
|
|
||||||
if (cipher)
|
if (cipher)
|
||||||
cipher->decrypt(pktin.data, st->biglen);
|
cipher->decrypt(pktin.data, st->biglen);
|
||||||
|
#if 0
|
||||||
|
debug(("Got packet len=%d pad=%d\r\n", st->len, st->pad));
|
||||||
|
for (st->i = 0; st->i < st->biglen; st->i++)
|
||||||
|
debug((" %02x", (unsigned char)pktin.data[st->i]));
|
||||||
|
debug(("\r\n"));
|
||||||
|
#endif
|
||||||
|
|
||||||
pktin.type = pktin.data[st->pad];
|
pktin.type = pktin.data[st->pad];
|
||||||
pktin.body = pktin.data + st->pad + 1;
|
pktin.body = pktin.data + st->pad + 1;
|
||||||
@ -599,6 +605,12 @@ static void s_wrpkt(void) {
|
|||||||
PUT_32BIT(pktout.data+biglen, crc);
|
PUT_32BIT(pktout.data+biglen, crc);
|
||||||
PUT_32BIT(pktout.data, len);
|
PUT_32BIT(pktout.data, len);
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
debug(("Sending packet len=%d\r\n", biglen+4));
|
||||||
|
for (i = 0; i < biglen+4; i++)
|
||||||
|
debug((" %02x", (unsigned char)pktout.data[i]));
|
||||||
|
debug(("\r\n"));
|
||||||
|
#endif
|
||||||
if (cipher)
|
if (cipher)
|
||||||
cipher->encrypt(pktout.data+4, biglen);
|
cipher->encrypt(pktout.data+4, biglen);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user