mirror of
https://github.com/libssh2/libssh2.git
synced 2025-07-31 00:03:08 +03:00
Initially the libssh2 code was indented with tabs of 4 spaces. Some of
the recent commits converted the tabs to 4 spaces, which matched the initial indent size. Other commits converted the tabs to 8 spaces, this didn't match. All the code has been converted to 4 space indents. No changes to line lengths or actual code was performed. This is in preperation to my up coming non-blocking work so my commits should only be code changes and line lengths in the code I am working on.
This commit is contained in:
@ -69,8 +69,7 @@ int _libssh2_rsa_new(libssh2_rsa_ctx **rsa,
|
|||||||
(*rsa)->n = BN_new();
|
(*rsa)->n = BN_new();
|
||||||
BN_bin2bn(ndata, nlen, (*rsa)->n);
|
BN_bin2bn(ndata, nlen, (*rsa)->n);
|
||||||
|
|
||||||
if (ddata)
|
if (ddata) {
|
||||||
{
|
|
||||||
(*rsa)->d = BN_new();
|
(*rsa)->d = BN_new();
|
||||||
BN_bin2bn(ddata, dlen, (*rsa)->d);
|
BN_bin2bn(ddata, dlen, (*rsa)->d);
|
||||||
|
|
||||||
|
@ -286,7 +286,7 @@ static inline int libssh2_packet_x11_open(LIBSSH2_SESSION *session,
|
|||||||
failure_code = 4; /* SSH_OPEN_RESOURCE_SHORTAGE */
|
failure_code = 4; /* SSH_OPEN_RESOURCE_SHORTAGE */
|
||||||
}
|
}
|
||||||
|
|
||||||
x11_exit:
|
x11_exit:
|
||||||
p = packet;
|
p = packet;
|
||||||
*(p++) = SSH_MSG_CHANNEL_OPEN_FAILURE;
|
*(p++) = SSH_MSG_CHANNEL_OPEN_FAILURE;
|
||||||
libssh2_htonu32(p, sender_channel); p += 4;
|
libssh2_htonu32(p, sender_channel); p += 4;
|
||||||
@ -422,7 +422,7 @@ int libssh2_packet_add(LIBSSH2_SESSION *session, unsigned char *data, size_t dat
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#ifdef LIBSSH2DEBUG
|
#ifdef LIBSSH2DEBUG
|
||||||
{
|
{
|
||||||
unsigned long stream_id = 0;
|
unsigned long stream_id = 0;
|
||||||
|
|
||||||
if (data[0] == SSH_MSG_CHANNEL_EXTENDED_DATA) {
|
if (data[0] == SSH_MSG_CHANNEL_EXTENDED_DATA) {
|
||||||
@ -430,7 +430,7 @@ int libssh2_packet_add(LIBSSH2_SESSION *session, unsigned char *data, size_t dat
|
|||||||
}
|
}
|
||||||
|
|
||||||
_libssh2_debug(session, LIBSSH2_DBG_CONN, "%d bytes received for channel %lu/%lu stream #%lu", (int)(datalen - data_head), channel->local.id, channel->remote.id, stream_id);
|
_libssh2_debug(session, LIBSSH2_DBG_CONN, "%d bytes received for channel %lu/%lu stream #%lu", (int)(datalen - data_head), channel->local.id, channel->remote.id, stream_id);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if ((channel->remote.extended_data_ignore_mode == LIBSSH2_CHANNEL_EXTENDED_DATA_IGNORE) && (data[0] == SSH_MSG_CHANNEL_EXTENDED_DATA)) {
|
if ((channel->remote.extended_data_ignore_mode == LIBSSH2_CHANNEL_EXTENDED_DATA_IGNORE) && (data[0] == SSH_MSG_CHANNEL_EXTENDED_DATA)) {
|
||||||
/* Pretend we didn't receive this */
|
/* Pretend we didn't receive this */
|
||||||
|
Reference in New Issue
Block a user