Minor refactoring: the fields `pktin' and `pktout' in the Ssh
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 24 Nov 2004 18:45:52 +0000 (18:45 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 24 Nov 2004 18:45:52 +0000 (18:45 +0000)
commitff3187f600cb2923cd42df948fc181c3bb26600b
tree0c36efc6114085b7045e008860cd8cdb63483a7f
parentea0716c6d898286350ebbe0036aef981418fe168
Minor refactoring: the fields `pktin' and `pktout' in the Ssh
structure have been retired. Now all Packet structures are
dynamically allocated. Each rdpkt function allocates one, and it's
freed after being used; and the packet construction functions
allocate them too, and they're freed by the send functions.

`pktin' and `pktout' were ugly. They were _morally_ still global
variables; even though they were replicated per SSH session to
comply with the Mac no-globals requirement, they weren't really in
the _spirit_ of `dynamically allocate your data'.

As a side effect of this change, the `pktout_blanks' and
`pktout_nblanks' fields in the Ssh structure have been moved into
the Packet structure.

git-svn-id: svn://svn.tartarus.org/sgt/putty@4898 cda61777-01e9-0310-a592-d414129be87e
ssh.c