1
1

two variable types changes, made lines less than 80 columns

The two variable type changes are only to match type variable
fields actually read from the binary protocol.
Этот коммит содержится в:
Daniel Stenberg 2010-04-20 22:49:32 +02:00
родитель 1acca6e3ee
Коммит 28ef62be20

Просмотреть файл

@ -480,36 +480,36 @@ struct transportpacket
{ {
/* ------------- for incoming data --------------- */ /* ------------- for incoming data --------------- */
unsigned char buf[PACKETBUFSIZE]; unsigned char buf[PACKETBUFSIZE];
unsigned char init[5]; /* first 5 bytes of the incoming data stream, unsigned char init[5]; /* first 5 bytes of the incoming data stream,
still encrypted */ still encrypted */
int writeidx; /* at what array index we do the next write into int writeidx; /* at what array index we do the next write into
the buffer */ the buffer */
int readidx; /* at what array index we do the next read from int readidx; /* at what array index we do the next read from
the buffer */ the buffer */
int packet_length; /* the most recent packet_length as read from the uint32_t packet_length; /* the most recent packet_length as read from the
network data */ network data */
int padding_length; /* the most recent padding_length as read from the uint8_t padding_length; /* the most recent padding_length as read from the
network data */ network data */
int data_num; /* How much of the total package that has been read int data_num; /* How much of the total package that has been read
so far. */ so far. */
int total_num; /* How much a total package is supposed to be, in int total_num; /* How much a total package is supposed to be, in
number of bytes. A full package is number of bytes. A full package is
packet_length + padding_length + 4 + packet_length + padding_length + 4 +
mac_length. */ mac_length. */
unsigned char *payload; /* this is a pointer to a LIBSSH2_ALLOC() unsigned char *payload; /* this is a pointer to a LIBSSH2_ALLOC()
area to which we write decrypted data */ area to which we write decrypted data */
unsigned char *wptr; /* write pointer into the payload to where we unsigned char *wptr; /* write pointer into the payload to where we
are currently writing decrypted data */ are currently writing decrypted data */
/* ------------- for outgoing data --------------- */ /* ------------- for outgoing data --------------- */
unsigned char *outbuf; /* pointer to a LIBSSH2_ALLOC() area for the unsigned char *outbuf; /* pointer to a LIBSSH2_ALLOC() area for the
outgoing data */ outgoing data */
int ototal_num; /* size of outbuf in number of bytes */ int ototal_num; /* size of outbuf in number of bytes */
unsigned char *odata; /* original pointer to the data we stored in unsigned char *odata; /* original pointer to the data we stored in
outbuf */ outbuf */
size_t olen; /* original size of the data we stored in size_t olen; /* original size of the data we stored in
outbuf */ outbuf */
size_t osent; /* number of bytes already sent */ size_t osent; /* number of bytes already sent */
}; };
struct _LIBSSH2_PUBLICKEY struct _LIBSSH2_PUBLICKEY