Differences From Artifact [022ada4fd6]:
- File ssh.c — part of check-in [48c3c19745] at 2003-03-29 10:14:26 on branch trunk — Introduced wrapper macros snew(), snewn() and sresize() for the malloc functions, which automatically cast to the same type they're allocating the size of. Should prevent any future errors involving mallocing the size of the wrong structure type, and will also make life easier if we ever need to turn the PuTTY core code from real C into C++-friendly C. I haven't touched the Mac frontend in this checkin because I couldn't compile or test it. (user: simon size: 191570)
To Artifact [6c30adc632]:
- File ssh.c — part of check-in [8f705367ec] at 2003-03-29 17:05:36 on branch trunk — In a couple of places, snewn() was being asked for an array of char which was then assigned to an unsigned char * variabe. This fixes that. (user: ben size: 191579)
| ︙ | |||
4980 4981 4982 4983 4984 4985 4986 | 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 | - + |
*
* followed by everything so far placed in the
* outgoing packet.
*/
sigdata_len = ssh->pktout.length - 5 + 4 + 20;
if (ssh->remote_bugs & BUG_SSH2_PK_SESSIONID)
sigdata_len -= 4;
|
| ︙ |