mirror of
https://github.com/libssh2/libssh2.git
synced 2025-08-10 06:23:02 +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:
@@ -425,7 +425,7 @@ int _libssh2_transport_read(LIBSSH2_SESSION * session)
|
|||||||
make the checks below work fine still */
|
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
|
/* read/use a whole big chunk into a temporary area stored in
|
||||||
the LIBSSH2_SESSION struct. We will decrypt data from that
|
the LIBSSH2_SESSION struct. We will decrypt data from that
|
||||||
|
Reference in New Issue
Block a user