1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-08-08 19:02:07 +03:00

transport: check ETM on remote end when receiving (#1332)

We should check if encrypt-then-MAC feature is enabled in remote end's
configuration.

Fixes #1331
This commit is contained in:
Josef Cejka
2024-03-28 23:38:47 +01:00
committed by GitHub
parent 00e2a07e82
commit bde10825f1

View File

@@ -425,7 +425,7 @@ int _libssh2_transport_read(LIBSSH2_SESSION * session)
make the checks below work fine still */
}
etm = encrypted && session->local.mac ? session->local.mac->etm : 0;
etm = encrypted && session->remote.mac ? session->remote.mac->etm : 0;
/* read/use a whole big chunk into a temporary area stored in
the LIBSSH2_SESSION struct. We will decrypt data from that