int pad, len, biglen, i;
int pad, biglen, i;
static int s_wrpkt_prepare(Ssh ssh){    int pad, len, biglen, i;    unsigned long crc;    ssh->pktout.body[-1] = ssh->pktout.type;    if (ssh->logctx)	log_packet(ssh->logctx, PKT_OUTGOING, ssh->pktout.type,		   ssh1_pkt_type(ssh->pktout.type),		   ssh->pktout.body, ssh->pktout.length);    if (ssh->v1_compressing) {	unsigned char *compblk;	int complen;	zlib_compress_block(ssh->cs_comp_ctx,			    ssh->pktout.body - 1, ssh->pktout.length + 1,			    &compblk, &complen);	ssh1_pktout_size(ssh, complen - 1);	memcpy(ssh->pktout.body - 1, compblk, complen);	sfree(compblk);    }    len = ssh->pktout.length + 5;	       /* type and CRC */    pad = 8 - (len % 8);    biglen = len + pad;    for (i = 0; i < pad; i++)	ssh->pktout.data[i + 4] = random_byte();    crc = crc32(ssh->pktout.data + 4, biglen - 4);    PUT_32BIT(ssh->pktout.data + biglen, crc);    PUT_32BIT(ssh->pktout.data, len);    if (ssh->cipher)	ssh->cipher->encrypt(ssh->v1_cipher_ctx, ssh->pktout.data + 4, biglen);    return biglen + 4;}