1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-20 02:42:09 +03:00

tidy-up: indentation fixes [ci skip]

This commit is contained in:
Viktor Szakats
2023-04-20 13:54:54 +00:00
parent 3c953c05d6
commit 2d7be5f5d8
2 changed files with 8 additions and 9 deletions

View File

@@ -3751,27 +3751,26 @@ static int kex_agree_methods(LIBSSH2_SESSION * session, unsigned char *data,
} }
if(kex_agree_crypt(session, &session->local, crypt_cs, crypt_cs_len) if(kex_agree_crypt(session, &session->local, crypt_cs, crypt_cs_len)
|| kex_agree_crypt(session, &session->remote, crypt_sc, || kex_agree_crypt(session, &session->remote, crypt_sc, crypt_sc_len)) {
crypt_sc_len)) {
return -1; return -1;
} }
/* This must happen after kex_agree_crypt since some MACs depend on the /* This must happen after kex_agree_crypt since some MACs depend on the
negotiated crypto method */ negotiated crypto method */
if(kex_agree_mac(session, &session->local, mac_cs, mac_cs_len) || if(kex_agree_mac(session, &session->local, mac_cs, mac_cs_len)
kex_agree_mac(session, &session->remote, mac_sc, mac_sc_len)) { || kex_agree_mac(session, &session->remote, mac_sc, mac_sc_len)) {
return -1; return -1;
} }
if(kex_agree_comp(session, &session->local, comp_cs, comp_cs_len) || if(kex_agree_comp(session, &session->local, comp_cs, comp_cs_len)
kex_agree_comp(session, &session->remote, comp_sc, comp_sc_len)) { || kex_agree_comp(session, &session->remote, comp_sc, comp_sc_len)) {
return -1; return -1;
} }
#if 0 #if 0
if(libssh2_kex_agree_lang(session, &session->local, lang_cs, lang_cs_len) if(libssh2_kex_agree_lang(session, &session->local, lang_cs, lang_cs_len)
|| libssh2_kex_agree_lang(session, &session->remote, lang_sc, || libssh2_kex_agree_lang(session, &session->remote, lang_sc,
lang_sc_len)) { lang_sc_len)) {
return -1; return -1;
} }
#endif #endif

View File

@@ -437,7 +437,7 @@ int _libssh2_transport_read(LIBSSH2_SESSION * session)
/* we can't act on anything less than blocksize, but this /* we can't act on anything less than blocksize, but this
check is only done for the initial block since once we have check is only done for the initial block since once we have
got the start of a block we can in fact deal with fractions got the start of a block we can in fact deal with fractions
*/ */
session->socket_block_directions |= session->socket_block_directions |=
LIBSSH2_SESSION_BLOCK_INBOUND; LIBSSH2_SESSION_BLOCK_INBOUND;
return LIBSSH2_ERROR_EAGAIN; return LIBSSH2_ERROR_EAGAIN;