simon-svn: putty: simon

tartarus-commits at lists.tartarus.org tartarus-commits at lists.tartarus.org
Wed Nov 24 18:45:52 GMT 2004


SVN root:       svn://ixion.tartarus.org/main
Changes by:     simon
Revision:       4898
Date:           2004-11-24 18:45:52 +0000 (Wed, 24 Nov 2004)

Log message (14 lines):
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.

Modified files:
U   putty/ssh.c

Links:
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi/putty/ssh.c?rev=4898&r1=4897&r2=4898



More information about the tartarus-commits mailing list